void 函数名(void) interrupt n using m
{
函数体语句
}
interrupt using 是C51中断服务程序引入关键字
只能用于C51中断服务程序逻辑
n是中断号
0 是外部中断0
1 是定时中断T0
2 是外部中断1
3 是定时中断T1
4 是串行中断
5 是定时器T2
m是寄存器组
0——3 4组
C51中的中断服务程序
最新推荐文章于 2023-12-25 11:22:08 发布