基于定时中断的实时按键任务处理设计  被引量:3

A Real-time Keystroke Task Processing Design Based on Timer Interruption

在线阅读下载全文

作  者:符潇天 黄明 彭召敏 张轩 崔进宝 FU Xiao-tian;HUANG Ming;PENG Zhao-min;ZHANG Xuan;CUI Jin-bao(North China University of Technology,College of Electronic and Information Engineering,Beijing 100144,China)

机构地区:[1]北方工业大学电子信息工程学院,北京100144

出  处:《工业技术创新》2018年第2期24-28,共5页Industrial Technology Innovation

摘  要:设计一种接收传感数据、转换、回传上位机的高速度、高质量实时按键任务处理方法。根据定时器抽样扫描设计思路,构建按键扫描逻辑框图,进而构建按键事件处理逻辑框图,在STM32、AVR单片机硬件环境和C语言软件环境下进行评测。在长按、短按各3组测试中,每组100次按键输入检测准确率为100%,有效规避了按键抖动和外部干扰。此外,对多按键识别中可能造成的逻辑错误特例进行了分析,给出了改进的时序图。该设计具有较大的应用优势。A high speed,high quality real-time keystroke task processing method which can receive sensor data,transform and return to the upper monitor is designed based on the single chip timer interruption.According to the design idea of timer sampled scanning,a logic diagram of keystroke scanning is established,and a logic diagram of keystroke event processing is further established.Evaluations are carried out in the hardware environment of STM32&AVR single chip and software environment of C language.In respective three groups of evaluations on long and short keystrokes,the detection accuracy rate of 100 key inputs in each group reaches 100%,which effectively avoids keystroke dithering and external interference.In addition,a special case of logical error that might be caused by multi-keystroke recognition is analyzed,and an improved sequence diagram is given,showing its high application advantage.

关 键 词:定时中断 实时按键 按键消抖 外部干扰 

分 类 号:TP302[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象