嵌入式操作系统下“单键多态”的通用处理方法  被引量:1

General Method for Single Polymorphism in Embedded Operating System

在线阅读下载全文

作  者:张锡林 

机构地区:[1]广东省特种设备检测研究院珠海检测院,珠海519000

出  处:《单片机与嵌入式系统应用》2016年第8期30-32,36,共4页Microcontrollers & Embedded Systems

摘  要:介绍了一种在实时嵌入式操作系统平台上单键输入的通用处理方法。该方法通过监控按键的电平触发,配合操作系统内置的软定时器,高效实现了单个按键输入时去抖动、单按、双按、多按,以及纳秒延时长按的不同状态区分处理。该方法实现原理清晰简单,不占用微处理器运行时间,并且可移植到等其他类似的系统中(如μC/OS、FreeRTOS、trochili RTOS),具有较高的应用价值。In the paper,a general method of single input in the real-time embedded operating system is introduced. The method achieves a single key input to jitter, single click, double press,press and nano second long delay according to the different states of distinguishing and processing through monitoring the key level trigger and the soft timer built in the operating system. The implementation of the method is simple and clear without occupying the microprocessor running time, and can port to the other similar systems such as μC/OS, Freer TOS, trochili RTOS.

关 键 词:实时嵌入式系统 按键处理 GD32F207 ThreadX 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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