Skip to main content
Mika Pahkasalo
Associate
May 8, 2017
Question

Pulse detection while mcu in stop mode

  • May 8, 2017
  • 3 replies
  • 715 views
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.

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    May 8, 2017
    Posted on May 08, 2017 at 14:43

    Add an external counter.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Mika Pahkasalo
    Associate
    May 8, 2017
    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.

    Tesla DeLorean
    Guru
    May 8, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..