文件名称:interrupt
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 17kb
- 下载次数:
- 0次
- 提 供 者:
- 咖*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写主程序,读取K0状态,当其与地端闭合时(P1.3为低电平)初始化为下降沿中断,反之,初始化为低电平中断,且发光二极管灭;编写中断服务程序,使图中的发光管闪烁5次,间隔250ms,即中断服务程序的执行时间为2.5秒,退出中断程序时,使发光管灭。-Write the main program, read K0 state, when its end is closed and the earth (P1.3 is low) is initialized to interrupt falling edge, on the contrary, is initialized to a LOW interrupt, destroy, and light-emitting diode preparation interrupt service routine, so figure the LED flashes 5 times at an interval 250ms, the interrupt service program execution time of 2.5 seconds, exit the interrupt program, the LED off.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验六 C语言与中断特性实验.doc
中断特性实验.txt
C语言.txt
中断特性实验.txt
C语言.txt