RL78/G23
ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00
Page 12 of 42
Mar.24.22
Table 4-3 Folder configuration (2/2)
Folder/File configuration
Outline
Created by
Smart
configurator
¥r01an5615_elcl_parameter<DIR>
Note 3
Root folder of this sample code
¥src<DIR>
Folder for program source
¥smc_gen<DIR>
Folder created by Smart Configurator
√
¥Config_TAU0_7<DIR>
Folder for TAU0 channel 7 program
√
Config_TAU0_7.c
Source file for TAU0 channel 7
√
Config_TAU0_7.h
Header file for TAU0 channel 7
√
Config_TAU0_7_user.c
Interrupt source file for TAU0 channel 7
√
Note 2
¥general<DIR>
Folder for initialize or common program
√
¥r_bsp<DIR>
Folder for BSP program
√
¥r_config<DIR>
Folder for program
√
Note. <DIR> means directory.
Note 2. Added the interrupt handling routine to the file generated by the Smart Configurator.
Note 3. The IAR version of the sample code contains r01an5615_elcl_parameter.ipcf. For the ipcf file, refer
to "RL78 Smart Configurator User Guide: IAR (R20AN0581)".
4.3 Option Byte Settings
Table 4-4 shows the option byte settings.
Table 4-4 Option Byte Settings
Address
Setting Value
Contents
000C0H/040C0H
1110 1111B (EFH)
Operation of Watchdog timer is stopped
(counting is stopped after reset)
000C1H/040C1H
1111 1110B (FEH)
LVD0 operating mode: reset mode
Detection voltage: Rising edge 1.90V
Falling edge 1.86V
000C2H/040C2H
1110 1000B (E8H)
Flash operating mode: HS mode
High-speed on-chip oscillator clock: 32MHz
000C3H/040C3H
1000 0101B (85H)
On-chip debugging is enabled
4.4 Constants
Table 4-5 shows the constants that are used in this sample code.
Table 4-5 Constants used in the sample code
Constant Name
Setting Value
Contents
File
LED1
P5_bit.no3
P53
main.c
LED_ON
0
Setting value for turning on the LED main.c
LED_OFF
1
Setting value for turning off the LED main.c
CHATTA_WAIT
100
Chattering prevention time (100ms)
Config_INTC_user.c