Dears,
I encountered a issue about active-level interrupt when I use #LPC11U35BFD# mcu. I use the command to control Ex-Interrupt mode and trigger
The similar init code, the edge(rasing or falling) interrupt and level interrupt work well, but the active-level(High or Low) interrupt doesn't work.
I use the command to switch the interrupt mode(Rasing, Falling, High-Level, Low-Level).
NVIC_DisableIRQ(FLEX_INT0_IRQn);
LPC_GPIO_PIN_INT->ISEL |= (1UL << 0); //Level sentisive
LPC_GPIO_PIN_INT->CIENR |= (1UL << 0); //close level interrupt
//Those two configurations only execute one.
LPC_GPIO_PIN_INT->IENF |= (1UL << 0); //enable High Level Interrupt
LPC_GPIO_PIN_INT->IENF &= ~(1UL << 0); //enable Low Level Interrupt
LPC_IOCON->PIO0_2 |= 0x10;
LPC_GPIO_PIN_INT->RISE |= (1UL << 0);
LPC_GPIO_PIN_INT->FALL |= (1UL << 0);
LPC_GPIO_PIN_INT->IST |= (1UL << 0);
NVIC_EnableIRQ(FLEX_INT0_IRQn);
If you have any suggestions, please tell me, thanks.