11智能在线
新记
用外部中断使得每次中断让一个LED状态(亮灭)变化一次
如题所述
举报该文章
其他看法
第1个回答 2014-04-11
开关控制,函数是LED加减开关
第2个回答 2014-04-11
void ex1() interrupt 0//外部中断函数;
{
LED=~LED;
}
相似回答
大家正在搜
相关问题
C51单片机程序。利用外部中断INT0,INT1,当INT0...
求一个单片机外部中断程序,要求用按键模拟单片机外部中断输入源...
用外部中断,按一次键,两个LED灯点亮,再按一次,两个LED...
单片机用外部中断0实现:一个亮的LED灯,当按下按键后,闪烁...
51单片机通过外部中断和开关控制LED闪亮
修改程序,这是一个外部中断程序,控制两个LED灯的亮灭
1,,利用单片机的某个端口实现8个led灯依次亮. 2,利用...
当持续保持触发外部中断0,LED灯亮8秒后熄灭。若期间取消外...