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).
Hello @Andy2022
Thanks for your question.
"level interrupt work well, but the active-level(High or Low) interrupt doesn't work."
->> Sorry so does level interrupt work or not?
And if it doesn't work, I recommend you refer to the pinint demo under LPCopen, firstly clear the status , then configure interrupt.
/* Configure channel interrupt as edge sensitive and falling edge interrupt */
Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH(GPIO_PININT_INDEX));
Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH(GPIO_PININT_INDEX));
Chip_PININT_EnableIntLow(LPC_PININT, PININTCH(GPIO_PININT_INDEX));
Thank you.
BR
ALice
Hi Alice_Yang:
Thanks for your reply.
The Level interrupt works well (High->Low and Low -> High both trigger an interrupt ).
However, I only set High-Level interrupt or Low-Level interrupt, the corresponding operation can't trigger an interrupt.
Thanks very much.
BR,
Andy2022
Hello @Andy2022
How about using the three APIs above?
Also, please measure the input signal to confirm that it is high when a high-active interrupt is set.
BR
Alice
Hello @Andy2022
Please download LPCopen, where you can find the three APIs.
Additionally, there is a GPIO interrupt demo available for your reference.
Thank you.
BR
Alice