Constants; Variables; Functions Used - Renesas RX230 Series Manual

Hide thumbs Also See for RX230 Series:
Table of Contents

Advertisement

RX230 Group, RX231 Group
Bit
Symbol
b1, b0
VDSEL[1:0]
b2
LVDAS

3.5 Constants

None.

3.6 Variables

Table 3.5, Global Variables, lists the global variables used by the sample program.
Type
Variable Name
struct
rtc_calendarcounter_value_t
uint8_t
batty_err
sw_counter
g_rtc_interrupt

3.7 Functions Used

Table 3.6, User Functions, lists the functions referenced in the user file (main.c).
Function Name
main()
display_time ()
display_info ()
backup_time()
flash_Init()
The functions used in the sample code of each FIT/SC modules are listed below.
Function Name
R_VBATT_Open ()
R_VBATT_GetStatus ()
R_Config_RTC_Create ()
R_Config_RTC_Start
R_Config_RTC_Set_CalendarCounterValue ()
R_Config_RTC_Get_CalendarCounterValue ()
R_Config_RTC_Get_CalendarTimeCaptureValue1()
R_Config_LVD1_Start()
R_Config_LVD1_Stop()
R_FLASH_Open()
R_FLASH_Write()
R_FLASH_Erase()
R_FLASH_BlankCheck()
R01AN4831EJ0100 Rev.1.00
Aug.20.19
Initial Settings and Usage Procedure of RTC Battery Backup Function
Table 3.4 Option-Setting Memory Settings
Bit Name
Voltage detection 0 level
select bits
Voltage detection 0 circuit
start bit
Table 3.5 Global Variables
Table 3.6 User Functions
Outline
System main function
Display time information.
Display battery and switch states.
Write time information to the data flash.
Erase the data flash and perform blank checking.
Table 3.7 SC Module Functions
Function
2.51 V is selected.
Voltage monitoring 0 reset is
enabled after a reset.
Description
Year/month/day/hour/minute/second structure
Battery state
Switch push count
RTC interrupt generated indication
Outline
Initialize battery backup.
Get battery backup status.
Initialize RTC.
Start RTC.
Set RTC information.
Get RTC information.
Get RTC capture value.
Start LVD1.
Stop LVD1
Initialize flash.
Program flash.
Erase flash.
Run flash blank check.
Setting Value
10b
0
Contained
in File
r_vbatt_rx.c
r_vbatt_rx.c
Config_RTC.c
Config_RTC.c
Config_RTC.c
Config_RTC.c
Config_RTC.c
Config_LVD1.c
Config_LVD1.c
r_flash_rx.c
r_flash_rx.c
r_flash_rx.c
r_flash_rx.c
Page 13 of 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx231 series

Table of Contents