摘要
针对嵌入式系统硬件利用率的问题,提出一种基于优先级编码器的非编码矩阵键盘接口设计方案。该方案采用中断工作方式,并通过内部定时中断实现消抖、按键识别以及按键自动重复处理。使用74HC147进行了4×9非编码矩阵键盘的扩展,给出了硬件设计以及软件设计。这种键盘接口设计简单,提高了嵌入式处理器的效率和I/O端口的利用率。
Aimed at the hardware utilization for embedded systems,the design of priority encoder-based non-coding matrix keyboard interface was proposed.The design plan employed the interrupt service,the debouncing through internal timer interrupt,the key identification and the automatic processing.When extending the 4×9 non-coding matrix keyboard,the 74HC147 was used and the hardware and software designs were given.This simple keyboard interface improves the efficiency of embedded processor and I/O port.
出处
《化工自动化及仪表》
CAS
北大核心
2010年第4期93-95,共3页
Control and Instruments in Chemical Industry