cancel
Showing results for 
Search instead for 
Did you mean: 

PVD in VBAT MODE

raveeshhgd
Associate

Hello

I am using STM32F103C8T6 microcontroller in my project and internal RTC is used with external 32.768Khz oscillator and CR2032 battery is connected to VBAT pin for RTC backup. RTC is working fine.

In my application I am running timer which increments at every one second and I have to store timer value in case of power failure. I do not want to store at every one second so I tried to store timer value using PVD in flash and tried to store in EEPROM also.

When CR2032 battery for RTC is inserted PVD is not working. I am able to store using PVD when RTC battery is not inserted.

Can anyone let me know if Is there any settings for PVD when VBAT pin is connected CR2032 battery?

 

Thanks

3 REPLIES 3
jiangfan
ST Employee

with CR2032 battery and RTC, you are able to keep full date/time information in RTC, as you want to store timer value every one second - you just need to store it in backup SRAM, it is non-volatile with CR2032 battery.

Can you please let me know what is the life span of backup SRAM for write cycles?

backup SRAM, as SRAM, its write cycles should be unlimited