作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (19): 253-255. doi: 10.3969/j.issn.1000-3428.2006.19.091

• 工程应用技术与实现 • 上一篇    下一篇

转轴编码器构成的智能仪器混合矩阵面板的实现

罗 明,余立民,倪 明,柴小丽   

  1. (华东计算技术研究所嵌入系统部,上海 200233)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-10-05 发布日期:2006-10-05

Realization of Matrix Panel of Intelligent Instrument Using Rotating Shaft Encoder

LUO Ming, YU Limin, NI Ming, CHAI Xiaoli   

  1. (Embedded System Dept., East China Institute of Computer Technology, Shanghai 200233)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-10-05 Published:2006-10-05

摘要: 介绍转轴编码器的原理,从而提出面板中按键和转轴编码器的混合矩阵连接方案。它具有电路简单、I/O资源占用少、软件实现容易的特点。通过定时中断扫描、基于向量的数据处理、基于FIFO的数据存取、基于时间记录的转轴编码器识别、软件去抖以及PS/2协议的软件实现等技术手段,实现该例的PS/2接口面板,其具有低成本、性能可靠稳定、响应及时、字符可加速输出等优点,并在高端智能仪器中得到很好的应用。

关键词: 转轴编码器, 定时中断扫描, 向量, FIFO堆栈, PS/2接口

Abstract: A matrix connection of the panel using buttons and rotating shaft encoders is developed after the principle of rotating shaft encoders is introduced. This type of connection is characteristic of simplified circuit, less I/O resource exhausting, ease of soft realization. Then, with the help of efficient soft method, for example, timing-interrupt scanning, vector-based data processing, FIFO-based data accessing, time-recording-based knob recognizing, soft debounce processing and soft realizing of PS/2 protocol, a PS/2 interfaced panel is realized, which is applied in advanced intelligent instrument with the strong points of low cost, high performance, in-time responding, speed-up output.

Key words: Rotating shaft encoder, Timing-interrupt scanning, Vector, FIFO stack, PS/2 interface