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.

关于中断嵌套



__interrupt void xint1_isr(void)
{
Xint1Count++;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;

PieCtrlRegs.PIEIER1.bit.INTx7 = 1; 

while(GpioDataRegs.GPADAT.bit.GPIO9==1);

LoopCount[i]=CpuTimer0Regs.TIM.all;
i++;

PieCtrlRegs.PIEIER1.bit.INTx7 = 0;

ConfigCpuTimer(&CpuTimer0, 90, 5000000);

CpuTimer0Regs.TCR.all = 0x4000;

}

你好,我是在外部中断中嵌套了一个定时器中断,希望可以测量外部中断持续时间。

可是当我加入PieCtrlRegs.PIEIER1.bit.INTx7 = 0;时,当进入外部中断后程序会在F2806x_DefaultIsr.c文件中的__interrupt void ADCINT1_ISR(void) 里卡死。请问一下问什么,谢谢。