AnsweredAssumed Answered

GPIO Interrupt

Question asked by edna salazar on Jan 30, 2015
Latest reply on Jan 30, 2015 by Mark Butcher

Hello,

Currently Im working with the evaluation board TWR60n512 and Im trying to configure a GPIO interrupt using 26 pin of PORTE.

I can see that my interrupt is detected however when its happens the software is stopped.

Besides, the handler interrupt doesnt clear isfr register and isf flag

 

 

     PORTE->PCR[26] &= PORT_PCR_MUX_MASK;

     PORTE->PCR[26] |= PORT_PCR_MUX(1) | PORT_PCR_ISF_MASK | PORT_PCR_PE_MASK  | PORT_PCR_PS_MASK  | PORT_PCR_IRQC(0x08); 

     PTE->PDDR &=~(1UL << 26); 

 

     NVIC_SetPriority(PORTE_IRQn, 26);

     NVIC_ClearPendingIRQ(PORTE_IRQn);

     NVIC_EnableIRQ(PORTE_IRQn);

 

 

 

void PORTE_IRQHandler (void)

{

  NVIC_ClearPendingIRQ(PORTE_IRQn);       

  PORTE->PCR[26]|= PORT_PCR_ISF_MASK;

  PORTE->ISFR = 0xffffffff;

}

Outcomes