2011-11-27 10:53 AM
Hi!
In my recent design I'd like track the time/date using the RTC peripherial of the STM32L152. If I'm not wrong, the RTC is only active when the MCUs power supply is on. I want the clock to run during powered down periods. How can I do that? Well before I was using external RTC chips equipped with backup battery VBAT power pins - has the STM32L152 VBAT pin or any similar? Thanks, Greg732011-11-28 11:06 AM
The presumption is that the STM32L152 is running off a battery. Put it in STANDBY, it will turn off VCore and it should draw a few uAmp with the RTC ticking off LSI.
You'd put a battery and charger circuit upstream from the device.2011-11-30 06:04 AM
Thank you clive1. It is certainly a decent approach however I don't really like the idea to implement a battery charger subcircuit. I'm experimenting with diode ORing right now.