Is there anyway Capture interrupt in sleepmode, without waking up the mcu
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-01 12:12 PM
I want to capture the interrupt and increment the counter but don't want to disturb the sleep cycle. Is there anyway to capture the interrupt without disturbing the sleep cycle
Labels:
- Labels:
-
Power
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-01 12:56 PM
There is a SLEEPONEXIT bit in SCB->SCR register which does the job: only the interrupt handler is executed by the MCU. If you want to count some external pulses without any MCU, not even an interrupt handler, you need a timer in input capture mode.
