文件名称:7_2_Timer_Key_LED
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-07-25
- 文件大小:
- 92kb
- 下载次数:
- 0次
- 提 供 者:
- 林**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
WDT定时器设置为16ms中断。
在WDT中断,记录下最近两次的IO状态存在KEY_Now和 KEY_Past中。根据前高后低可判断按键按下,前低后高可判断按键松开。
事件处理函数P13_Onclick()根据按键状态切换LED 亮灭 。-WDT timer 16ms interrupt.
In the WDT interrupt, the presence of KEY_Now and KEY_Past record the last two IO state. According to the high to low can judge whether the button is pressed, the former low after the high judge the key is released.
The event handler (P13_Onclick) according to the key state switching LED light.
在WDT中断,记录下最近两次的IO状态存在KEY_Now和 KEY_Past中。根据前高后低可判断按键按下,前低后高可判断按键松开。
事件处理函数P13_Onclick()根据按键状态切换LED 亮灭 。-WDT timer 16ms interrupt.
In the WDT interrupt, the presence of KEY_Now and KEY_Past record the last two IO state. According to the high to low can judge whether the button is pressed, the former low after the high judge the key is released.
The event handler (P13_Onclick) according to the key state switching LED light.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
7_2_Timer_Key_LED\7_2_Timer_Key_LED.dep
.................\7_2_Timer_Key_LED.ewd
.................\7_2_Timer_Key_LED.ewp
.................\7_2_Timer_Key_LED.eww
.................\7_2_Timer_Key_LEDCustomSfr.sfr
.................\Debug\Exe\7_2_Timer_Key_LED.d43
.................\.....\Obj\7_2_Timer_Key_LED.pbd
.................\.....\...\7_2_Timer_Key_LED.pbd.browse
.................\.....\...\main.pbi
.................\.....\...\main.pbi.cout
.................\.....\...\main.r43
.................\main.c
.................\path.txt
.................\settings\7_2_Timer_Key_LED.cspy.bat
.................\........\7_2_Timer_Key_LED.dbgdt
.................\........\7_2_Timer_Key_LED.dni
.................\........\7_2_Timer_Key_LED.wsdt
.................\Debug\Exe
.................\.....\List
.................\.....\Obj
.................\Debug
.................\settings
7_2_Timer_Key_LED