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.

Problem with External Interrupts

Hello Everyone

I use the three XINT and they are working. My configuration looks like this for GPIO2 and XINT1:

EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 0; 
GpioCtrlRegs.GPADIR.bit.GPIO2 = 0;
GpioIntRegs.GPIOXINT1SEL.bit.GPIOSEL = 2;
GpioCtrlRegs.GPAQSEL1.bit.GPIO2 = 0;
EDIS;

PieCtrlRegs.PIECTRL.bit.ENPIE = 1;                     
PieCtrlRegs.PIEIER1.bit.INTx4 = 1;                          
IER |= M_INT1;                                         
XIntruptRegs.XINT1CR.bit.POLARITY = 1;                
XIntruptRegs.XINT1CR.bit.ENABLE = 1;               
EINT;                                                 
ERTM; 

I also remapped the Interrupt and at the beginning the GPIO2 is LOW. If I pull it HIGH the interrupts is released.

My problem is, that if I set a breakpoint at the beginning of the interrupt I can see it released when the GPIO is set HIGH. But it is released a second time when the GPIO2 goes back from HIGH-->LOW. I thought with the Polarity bit i set Interrupt generated on a rising edge???

Can someone tell me what I disregarded?    

Kind regards

Christian