文件名称:interrupt
介绍说明--下载内容来自于网络,使用问题请自行百度
编写主程序,读取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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.