2017-05-08 04:24 AM
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.
2017-05-08 05:43 AM
Add an external counter.
2017-05-08 06:02 AM
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.
2017-05-08 08:47 AM
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.