检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张锡林
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.23