RX230 Group, RX231 Group
Initial Settings and Usage Procedure of RTC Battery Backup Function
R01AN4831EJ0100 Rev.1.00
Page 12 of 23
Aug.20.19
3. Software
The configuration and functions of the software referenced in this application note are described below. The
folder containing the files generated automatically by the FIT modules and SC is smc_gen, which is in the src
folder.
3.1 FIT Modules
The folders containing the FIT modules used by the sample program are listed below.
Table 3.1 FIT Module Folders
Folder Name
Module Name
Description
r_bsp
Board support package module
Supplies code for the MCU and the board used.
r_vbat_rx
Battery backup module
Supplies battery backup control functionality.
r_flash_rx
Flash control module
Supplies control functionality and drivers for flash
programming.
r_config
FIT header files
Header files of FIT modules used
Note: For the configuration and functions of the various FIT modules, refer to the specifications of each
module.
3.2 SC Components
The folders containing the SC components used by the sample program are listed below.
Table 3.2 SC Component Folders
Folder Name
Component Name
Description
Config_RTC
Realtime clock module
Supplies control functionality and drivers for the
realtime clock.
Config_CMT0
Compare match timer module
Supplies control functionality and drivers for the
compare match timer.
Config_LVD1
Voltage detection circuit module
Supplies control functionality and drivers for the
voltage detection circuit.
Config_PORT
Port module
Supplies control functionality and drivers for the
port.
Config_SCI8
SPI clock synchronous
communication module
Supplies control functionality and drivers for the
SPI clock synchronous communication.
general
SC header files
Header files of SC components used
Note: For the configuration and functions of the various SC components, refer to the description of each
component in Smart Configurator User’s Manual: RX API Reference (R20UT4360).
3.3 File Composition
The file configuration of the software referenced in this application note is described below.
Files, including components of FIT modules, generated automatically by the integrated development
environment are omitted.
Table 3.3 User Files
Folder Name
File Name
Description
Remarks
src
main.c
Main processing source file
Created by user
r_okaya_lcd.c
LCD display software
RSK sample code
ascii.c
ASCII data file for LCD display
RSK sample code
Note: The smc_gen folder in the src folder contains files generated automatically by FIT modules and the
SC environment.
3.4 Option-Setting Memory Settings
Table 3.4, Option-Setting Memory Settings, lists the option-setting memory settings used by the sample
program.