2024-10-16 09:41 AM
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
2024-10-17 07:08 PM
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.
2024-10-22 11:53 AM
Can you please let me know what is the life span of backup SRAM for write cycles?
2024-10-22 06:54 PM
backup SRAM, as SRAM, its write cycles should be unlimited