摘要
良好的人机操作界面是电子仪器和设备必备的。然而在实时应用的嵌入式系统中键盘软件设计有3个方面的问题,包括软件去抖动、等待按键抬起和连击处理。这3个问题都需要大延时,而直接的延时会大大破坏系统的实时性。本文针对上述问题给出具体解决方案,并以AVR单片机为例给出例程。
A good man-machine interface is essential to electronic instruments and equipments. However, there are three problems in the keyboard software design of embedded systems for real-time applications, including software method for dithering elimination, waiting for key release and multiple striking. Large delay is needed to address the problems, but direct delay impairs real-time performance. A specific solution is proposed aim at the problems, and an example routine based on AVR microcontroller is given.
出处
《单片机与嵌入式系统应用》
2010年第1期21-23,共3页
Microcontrollers & Embedded Systems
关键词
键盘
软件去抖动
等待按键抬起
连击处理
keyboard
elimination
waiting for key release
multiple striking