在CLA中断中加多一部分代码就无法响应CPU中断,代码如下:
__interrupt void Cla1Task1 ( void )
{
int i,j;
__mdebugstop();
if((CalIndex == 1)||(CalIndex == 2))
{
for(i=0;i<128;i++)
{
j++;
}
CalResult = CalIndex;
}
}
只要把红色部分代码注释掉就可以进入CPU的cla1Isr1中断,加上却不能进入;Cla1Task1此中断每次都可以进入。
请问是什么原因?