Internal RTC STM32F1 - Want to store Time before RTC switches to VBAT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-30 10:27 PM
I am using STM32F103ZGT6
I have initialize code From STMCubeMx with settings-> PLL -ON , HSE -ON , LSE- ON for Internal RTC
I have written code to retain date for internal RTC. I want the event when RTC switches from VDD to VBAT , as per my application requirement I want to store Time at which power offs and Time at which power come , Accordingly I want show how many hr or min or sec power was off .
I have checked the Datasheet it is written that Power Down Reset(PDR) occurs when VDD shifts to VBAT I have tried with that flag in the code but didn't work
Can you suggest me some solution for this
- Labels:
-
RTC
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-03 11:49 PM
Yes, this is potential problem if somebody uses EEPROM circuit for this purpose.
However, in this case there is no this kind of limitation, since RTC Backup registers are located to RAM memory which is backupped with battery.
Br J.T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-04 3:07 AM
I have changed the code and tried that After receiving "Store" string from UART then get the time and write the time into backup register ,
I am reading the backup register before the
How to store it ,write it time into backup register .when ever I read backup register I am getting current time .

- « Previous
-
- 1
- 2
- Next »