c51单片机中断函数
以串口中断为例:
如:
voidserial()interrupt 4
{
}
和
voidserial_uart()interrupt 4
{
}
两个函数的功能都是定义串口中断函数。函数名字不一样不重要,重要的是函数名字后面的interrupt 4(中断向量表地址)要正确。
关键词: c51单片机中断函
![](https://webstorage.eepw.com.cn/images/2014/m/wx.png)
加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码
关键词: c51单片机中断函
加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码