English
Language : 

R01US0068EJ0100 Datasheet, PDF (29/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
Chapter 4 Using EEPROM Emulation
(1) Operation frequency
This sets an operation frequency which is used in RL78 microcontrollers. Note1
The setting value is set to the FDL_Init frequency parameter by the following expressions (The frequency is
calculated by raising its decimals. The result calculated omits its decimals.).
Setting value of FDL_Init operation frequency = ((FDL_SYSTEM_FREQUENCY + 999999)/1000000)
Ex.1: When FDL_SYSTEM_FREQUENCY is 20000000 (20 MHz),
((20000000 + 999999)/10000000) = 20.999999 = 20
Ex.2: When FDL_SYSTEM_FREQUENCY is 4500000 (4.5 MHz),
((4500000 + 999999)/10000000) = 5.499999 = 5
Ex.3: When FDL_SYSTEM_FREQUENCY is 5000001 (5.000001 MHz),
((5000001 + 999999)/10000000) = 6.000000 = 6
Note1: This setting is a value required to control data flash memory. This setting does not change the
operation frequency of RL78 microcontrollers. In addition, this operation frequency is not the
frequency of the high-speed on-chip oscillator.
(2) Voltage mode Note 2
This sets the voltage mode of data flash memory. Note 3
When FDL_WIDE_VOLTAGE_MODE is not defined: Full-speed mode
When FDL_WIDE_VOLTAGE_MODE is defined: Wide voltage mode
Note 2: The FDL_WIDE_VOLTAGE_MODE is commented out and not defined in the initial setting. To use
RL78 microcontrollers in the wide voltage mode, cancel the comment-out to define the mode.
Note 3: For details of the voltage mode, see the corresponding RL78 microcontrollers user’s manual.
(3) FDL pool size
Specify 0.
(4) EEL pool size Note 4
The number of blocks in the data flash memory of the target device must be specified as the number of
blocks in the EEL pool.
Note 4: Specify 3 (3 blocks) or a greater value (recommended).
(5) Number of stored data items
Specify the number of data items to be used in the EEPROM emulation. A value of 1 to 64 can be set.
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 29 of 53