×

基于充放电原理的电容式触摸按键设计

消耗积分:10 | 格式:rar | 大小:1015 | 2010-11-24

百灵千岛酱

分享资料个

 为降低触摸按键的硬件成本, 设计了一种简易的触摸按键电路,其基本原理是通过检测RC回路的充放电时间来判断有无按键被按下,当未触碰按键时, 充放电时间维持不变;当触碰按键时,充放电时间改变。由MSP430单片机的每两个I/O引脚构成一个充放电回路对,并为按键充放电,充电时引脚检测上升沿中断, 放电时引脚检测下降沿中断,求出平均值,记录充放电时间。该方案仅需要1片单片机而无需其他专用检测电路,简单、可靠,且最有效地降低了硬件成本。
Abstract:
 To decrease the hardware cost of touch senor, a simple and easy touch sensor is designed. The basic principle is that the touch sensor is pressed or not can be judged by detecting the variation of charging/discharging period. The charging/discharging period is constant when no sensor-pad is pressed, as the finger touches the sensor-pad the charging/discharging period will be changed. Each two I/O pins of MSP430 composed a charging/discharging loop, and charge/discharge the sensor-pad. The rising edge interrupt is detected when charging the sensor-pad, and the falling edge interrupt is detected when discharging the sensor-pad. The mean time is calculated, and the charging/discharging period is recorded. This method only requires one MCU without any other special detection chips. This design is simple, reliable and reduces hardware costs effectively.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(1)
发评论
yuarvin 2013-02-03
0 回复 举报
下载来看看怎么样 收起回复

下载排行榜

全部1条评论

快来发表一下你的评论吧 !