c51 单片机中断函数 -
来源: 网络用户发布,如有版权联系网管删除 2018-09-06
[导读]以串口中断为例:如:voidserial()interrupt 4{}和voidserial_uart()interrupt 4{}两个函数的功能都是定义串口中断函数。函数名字不一样不重要,重要的是函数名字后面的interrupt 4(中断向量表地址)要正确。
以串口中断为例:
本文引用地址: http://www.21ic.com/app/mcu/201807/778403.htm
如:
voidserial()interrupt 4
{
}
和
voidserial_uart()interrupt 4
{
}
两个函数的功能都是定义串口中断函数。函数名字不一样不重要,重要的是函数名字后面的interrupt 4(中断向量表地址)要正确。
查看评论 回复