This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
中断无法嵌套使用。测试方法如下,程序在没有加入for(;;);循环时,代码运行完全正常,现在每个中断服务子程序的最后加入for(;;);再次运行,发现程序进入低级别的中断服务子程序后,就无法跳到高级别的中断服务子程序, 是什么原因?难道该芯片的中断是无法嵌套使用的吗?
代码示例:
interrupt void cpu_timer1_isr(void)
{
。。。。
for(;;);
}
interrupt void sciaRxIsr(void)
{
。。。
for(;;);
}
理论上SCIA的优先级要高于TIMER1的优先级,可是程序却一直在TIMER1中断子程序中跳不出来。请教各位大师,这是为什么?