RTC VBAT MODE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I am using SN8205, SDK V3.2.1.

How to make RTC time maintained between reboots?

Reboot is only VDD cutoff, VBAT will always be powered.

Regards,

Karthik

0 Likes
1 Solution
Anonymous
Not applicable

A patch may help overcome this issue to some extent.

Here is the algorithm -

  1. Store the powersave state(enabled/disabled) of CPU in RTC Backup Registers.
  2. After reboot, in the init sequence, check the backup resistors to determine the last known state of CPU during the shutdown.
  3. If the state was powersave disable, the RTC was ticking at 1Hz, so no action needed and the time will be correct.
  4. If the state was powersave enabled, the RTC was ticking at 800Hz, need to recompute correct time using the existing functions convert_rtc_calendar_values_to_units_passed() and add_1p25ms_contribution().

View solution in original post

0 Likes
6 Replies