cancel
Showing results for 
Search instead for 
Did you mean: 

is there a clock in stm 32 that stays running even if the power is turned off at the MCU?

LMoha.1
Associate II

Hello

for my application I use STM32L0, and I want to retrieve the exact date without changing it every time I turn off the power. Is there a timer that was triggered on the production day of the STM MCU that will allow us to retrieve the date?

9 REPLIES 9
TDK
Guru

No clock can run without power.

The RTC clock can run on minimal power from the VBAT supply, if you configure it correctly.

> Is there a timer that was triggered on the production day of the STM MCU that will allow us to retrieve the date?

No.

If you feel a post has answered your question, please click "Accept as Solution".
LMoha.1
Associate II

Thank you very much

Suspend, running LSE from your supply/battery. Clock the RTC with that.​

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

The problem is that STM32L0/STM32L1 series don't have VBAT.

LMoha.1
Associate II

@Community member​  . But the problem is that in my application, i turn off /ON the power . is that will Reset the RTC clock?

The electrons are going to need to come from somewhere​

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

Ok

That's not the physics in my part of the universe.

The L series parts are designed to run off batteries, and that can be used to power the "lower power domain" of the IC which in turn can clock the LSE crystal.

You'd probably want to look at the SNAPHAT/CAPHAT devices for a persistent and self-sustaining clock source

https://www.st.com/content/ccc/resource/sales_and_marketing/promotional_material/brochure/09/c1/e0/e1/dc/64/4e/4e/BRRTC0314_lr.pdf/files/BRRTC0314_lr.pdf/jcr:content/translations/en.BRRTC0314_lr.pdf

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

> Is there a timer that was triggered on the production day of the STM MCU that will allow us to retrieve the date?

> Ok i thought that quartz doesn't need power supply

Yes, they have a special perpetuum mobile edition for those, who don't waste their time on physics and other foolish things. Also it has an absolutely perfect accuracy and stability, therefore it always has the correct time.