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.

关于28335中断的问题



代码如下:

中断函数Xint12_isr

EINT;

PieCtrlRegs.PIEACK.all=PIEACK_GROUP12;

while(Busy)
{

}

GpioDataRegs.GPBSET.bit.GPIO52 = 1;

// asm(" RPT #7 || NOP");
dataRD=*AD;
// asm(" RPT #7 || NOP");

GpioDataRegs.GPBCLEAR.bit.GPIO52 = 1;


if(idat<NL)
{
temp0[idat]=(dataRD-61440);
idat++;
}
else
{
idat=0;
}

main函数中:

while(idat!=0)
{}

DINT;

问题:我想在idat计数回到0后关掉中断,为什么加上标为红色的指令后在main函数中执行DINT指令时还是关不掉中断,期待解答