摘要
基于对PS/2接口协议和条码扫描器输出数据格式的认识,从触发方式和接收方式两个方面详细分析了单片机读取条码数据的原理与实现方法,同时给出了扫描码与ASCII码的转换程序设计。在应用中,给出了条码扫描器与MCU的接口电路及通行方案,并介绍了单片机对条码数据识别系统一种典型应用方法。
The PS/2 protocol and the data signal output style of bar code reader are discussed in this paper, On the basis of this, It detailed analyses the stripe code detect theory and realize methods of MCU in trigger mode and receive mode, also the design of conversion process between scanning code and ASCII code is given. In application, the circuit of interface and communication scheme between bar code reader interface and MCU are provided, It also introduces a typical utility of this system.
出处
《微计算机应用》
2008年第12期48-52,共5页
Microcomputer Applications
基金
石家庄经济学院学生科技基金项目(第XY200708号)