cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse detection while mcu in stop mode

Mika Pahkasalo
Associate
Posted on May 08, 2017 at 13:24

What is best way to detect if a pulse occured on input pin while mcu was in stop mode? I don't want pulse to wake up the mcu.

3 REPLIES 3
Posted on May 08, 2017 at 14:43

Add an external counter.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Mika Pahkasalo
Associate
Posted on May 08, 2017 at 15:02

The MCU in question is STM32L151xC and pin is PC13. I think it can't have an external counter. This pin has an additional function RTC_TAMP1. I'm currently finding out if that could be utilized in a such way.

Posted on May 08, 2017 at 15:47

External, as in not on the micro at all.

The alternative is to configure the pin as an EXTI, wakeup briefly and go back to sleep immediately, but you've indicated you don't want to do that.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..