cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyway Capture interrupt in sleepmode, without waking up the mcu

shadab abedin
Associate II

I want to capture the interrupt and increment the cou​nter but don't want to disturb the sleep cycle. Is there anyway to capture the interrupt without disturbing the sleep cycle

1 REPLY 1
KnarfB
Principal III

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.