English
Language : 

R01US0068EJ0100 Datasheet, PDF (28/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
4.3 Initial Values to be set by User
Chapter 4 Using EEPROM Emulation
As the initial values for the EEL, be sure to set the items indicated below. In addition, before executing the EEL, be sure to
execute the high-speed on-chip oscillator. The high-speed on-chip oscillator must also be activated when using the external
clock.
・Number of stored data items, and specific data IDs and data size
<Data flash library user include file (fdl_descriptor.h)> Note 1,2
#define
#define
#define
#define
FDL_SYSTEM_FREQUENCY
FDL_WIDE_VOLTAGE_MODE
FDL_POOL_BLOCKS
EEL_POOL_BLOCKS
32000000
0
4
:(1) Operation frequency
:(2) Voltage mode
:(3) FDL pool size
:(4) EEL pool size
<EEPROM emulation library user include file (eel_descriptor.h)>Note 1, 2
#define EEL_VAR_NO
8
:(5) Number of stored data items
<EEPROM emulation library user program file (eel_descriptor.c)>Note 2
__far const eel_u08 eel_descriptor[EEL_VAR_NO+2] =
{
(eel_u08)(EEL_VAR_NO), /* variable count */ ¥
:(6) Data size of the identifier
(data ID)
(eel_u08)(sizeof(type_A)), /* id=1
*/ ¥
(eel_u08)(sizeof(type_B)), /* id=2
*/ ¥
(eel_u08)(sizeof(type_C)), /* id=3
*/ ¥
(eel_u08)(sizeof(type_D)), /* id=4
*/ ¥
(eel_u08)(sizeof(type_E)), /* id=5
*/ ¥
(eel_u08)(sizeof(type_F)), /* id=6
*/ ¥
(eel_u08)(sizeof(type_X)), /* id=7
*/ ¥
(eel_u08)(sizeof(type_Z)), /* id=8
*/ ¥
(eel_u08)(0x00),
/* zero terminator */ ¥
};
Note 1: The macros and macro names that are being used have common parameters with the EEL, so changes
should be made to numerical values only.
Note 2: After initializing the EEPROM emulation blocks (after executing the EEL_CMD_FORMAT command), do
not change the values. If the values are changed, reinitialize the EEL blocks (by executing the
EEL_CMD_FORMAT command).
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 28 of 53