AnsweredAssumed Answered

Can't get group interrupt to work on port 2 (LPC1549)

Question asked by Marco Kuystermans on Feb 28, 2019
Latest reply on Mar 14, 2019 by Alice_Yang

I want to use port 2.4 to be part of the group interrupt 0:

     Chip_GPIOGP_Init(LPC_GPIOGROUP);                                             
     Chip_GPIO_SetPinDIRInput(LPC_GPIO, 2, 4);
     Chip_GPIOGP_SelectHighLevel(LPC_GPIOGROUP, 0 ,2, 1 << 4);               
     Chip_GPIOGP_EnableGroupPins(LPC_GPIOGROUP, 0, 2, 1 << 4);
     Chip_GPIOGP_SelectOrMode(LPC_GPIOGROUP, 0);
     Chip_GPIOGP_SelectEdgeMode(LPC_GPIOGROUP, 0);
     Chip_GPIOGP_ClearIntStatus(LPC_GPIOGROUP, 0);
     NVIC_EnableIRQ(GINT0_IRQn);

However when I look at PORT_POL[2] and PORT_ENA[2] both are 0 and stay 0. If I change the code to port 1.4, the value for PORT_POL[1] = 0xFFFF FFFF and PORT_ENA[1] = 0x0001 0000. Am I missing something?  

Outcomes