Flowcharts; Main Function: Main() - Renesas RX230 Series Manual

Hide thumbs Also See for RX230 Series:
Table of Contents

Advertisement

RX230 Group, RX231 Group

4. Flowcharts

Flowcharts of the functions used by the user file described in this application note are shown below.

4.1 main Function: main()

Figure 4.1 is a flowchart of the main processing routine.
Start voltage detection circuit
R_Config_LVD1_Start()
LCD initial settings
R_LCD_Init()
LCD display at startup
R_LCD_Display()
Flash initial settings
R_FLASH_Open()
Initialize VBATT
R_VBATT_Open()
batty_err = 2?
Time information initial settings
R_Config_RTC_Create()
Saved to flash?
Read data saved to flash
Reset time information in saved data
R_Config_RTC_Set_CalendarCounterValue()
Display information in saved data
R_LCD_Display()
Start RTC
R_RTC_Start()
Initialize variable
Erase data flash
flash_Init()
Check battery state
R_VBATT_GetStatus()
Display RTC time information
display_time()
Display battery state and switch push count
display_info()
Check switch push count
R01AN4831EJ0100 Rev.1.00
Aug.20.19
Initial Settings and Usage Procedure of RTC Battery Backup Function
main
Checks whether VBATT has dropped below 1.8 V while VCC was interrupted.
No
Is the confirmation flag (batty_err) set to 2?
Yes
No
Is there a save history (55AAh) at
flash memory address 00100008?
Yes
Reads data (time information, battery and
switch states) from flash memory addresses
00100000 to 00100007.
Resets the data (time information, battery and
switch states) read from the flash memory.
Displays the data (time information, battery and
switch states) read from the flash memory.
Clears the switch push count variable (sw_counter).
Checks whether VBATT has dropped below 2.2 V.
Is the VBATT pin voltage monitor flag set to 1?
Figure 4.1 main Function
PRD interrupt initial settings
Display captured time information
display_time()
Page 16 of 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx231 series

Table of Contents