![Renesas RX230 Manual Download Page 19](http://html.mh-extra.com/html/renesas/rx230/rx230_manual_1440507019.webp)
RX230 Group, RX231 Group
Initial Settings and Usage Procedure of RTC Battery Backup Function
R01AN4831EJ0100 Rev.1.00
Page 19 of 23
Aug.20.19
4.5 Save Time Information Function: backup_time()
Figure 4.5 is a flowchart of the function for saving time information to the data flash (Vdet1 interrupt
processing).
Figure 4.5 Save Time Information Function
backup_time
RETURN
Write to data flash
R_FLASH_Write()
Set year, month, day, hour, minute,
and second data in array
Set battery state and switch push count in array
Set flash write history in array
Read RTC information
R_Config_RTC_Get_CalendarCounterValue()
Verify data written to flash
Stop LVD1
R_Config_LVD1_Stop()