Nov 03, 2015
05:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 03, 2015
05:14 AM
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.
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.
2 Replies
Nov 03, 2015
06:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 03, 2015
06:34 PM
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.
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.
Not applicable
Nov 04, 2015
09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 04, 2015
09:50 PM
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.