Interrupt from multiple GPIOs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User10696
Level 4
Level 4
First solution authored
I have a design with 8 hardkeys connected to GPIOs. I want to have an interrupt when any key is pressed or released.
I have looked into connecting the GPIOs to the ERU to generate the interrupt, but this means the whole ERU would be required for this simple task and I need it for other functions.
Is there a better way to solve this problem? I don't really want to poll the GPIO port.
0 Likes
2 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi,

No other ways as ERU is designed for this purposes. Another non graceful method is to make use of VADC pins with fast compare function or boundary checking.
0 Likes
Not applicable
You can also make use of CCU4 in Capture Mode. You just need to make sure that you enable capture interrupts. Any How ERUs would be a better choice.
0 Likes