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.

CLA中断问题



在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此中断每次都可以进入。

请问是什么原因?