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
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.