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.

xint2中断问题请教?



GpioCtrlRegs.GPAPUD.bit.GPIO23 = 0;          // Enable pullup on GPIO23
 GpioCtrlRegs.GPAMUX2.bit.GPIO23 = 0;         // GPIO23 = GPIO23
 GpioCtrlRegs.GPADIR.bit.GPIO23 = 0;          // GPIO23 = input

    GpioCtrlRegs.GPAQSEL2.bit.GPIO23 = 0;        // XINT2 Synch to SYSCLKOUT only
 GpioIntRegs.GPIOXINT2SEL.bit.GPIOSEL = 23;   // XINT2 is GPIO23
 XIntruptRegs.XINT2CR.bit.POLARITY = 0;       // Falling edge interrupt
 XIntruptRegs.XINT2CR.bit.ENABLE = 1;         // Enable XINT2

PieVectTable.XINT2 = &XINT2_INT_ISR;

PieCtrlRegs.PIEIER1.bit.INTx5 = 1;    // Enable PIE Gropu 1 INT5

IER |= M_INT1;

 

以上配置后,GPIO23的电平可以看到变化,从0-1-0

就是进不了中断XINT2_INT_ISR

奇怪啊!