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.

F28069外部中断只进入一次



配置好后,发现上电后只进入一次中断,后面给上下升沿就再也没进中断了。

请问是我配置问题吗?程序如下:


PIE_registerPieIntHandler(obj->pieHandle, PIE_GroupNumber_1, PIE_SubGroupNumber_4,(PIE_IntVec_t)&xint1_isr);

PIE_enableInt(obj->pieHandle, PIE_GroupNumber_1, PIE_InterruptSource_XINT_1);

PIE_setExtIntPolarity(obj->pieHandle, CPU_ExtIntNumber_1,PIE_ExtIntPolarity_FallingEdge);

PIE_enableExtInt(obj->pieHandle, CPU_ExtIntNumber_1);

CPU_enableInt(obj->cpuHandle, CPU_IntNumber_1);

// GPIO
GPIO_setMode(obj->gpioHandle,GPIO_Number_12,GPIO_12_Mode_GeneralPurpose);
GPIO_setDirection(obj->gpioHandle, GPIO_Number_12, GPIO_Direction_Input);
GPIO_setQualification(obj->gpioHandle, GPIO_Number_12, GPIO_Qual_Sync);

__interrupt void xint1_isr(void)
{
PIE_Obj *pie = (PIE_Obj *)myPie;

Xint1Count++;

pie->PIEACK = (1 << PIE_GroupNumber_1);
// Acknowledge this interrupt to get more from group 1
//PIE_clearInt(myPie, PIE_GroupNumber_1);
}

望得到解答,谢谢!