Skip to main content
MMEYN
Visitor II
December 15, 2020
Solved

How to get the time that elapsed during a sleep (or a stop) when we are woken up by a pin wakeup ?

  • December 15, 2020
  • 1 reply
  • 880 views

Hello,

I am using an STM32F4.

I need my mcu to go to sleep (preferably a stop) and i want it to be able to wake up because of a pin or a set timer.

My problem is that i am not able to know how much time has elapsed when i wake up because of a pin.

Does anyone have an idea of how i can do that ?

This topic has been closed for replies.
Best answer by KnarfB

Check if you can use the RTC for that and maybe the RTC time stamp mode.

1 reply

KnarfB
KnarfBBest answer
Super User
December 15, 2020

Check if you can use the RTC for that and maybe the RTC time stamp mode.