English
Language : 

R01US0068EJ0100 Datasheet, PDF (22/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
Chapter 3 EEL Functional Specifications
[Overview of basic operation flow]
(1)FDL initialization processing (FDL_Init)
Because it is necessary to initialize the FDL parameters (RAM) if using the EEL to access the data flash memory,
the FDL_Init function must be executed in advance. If FSL processing was executed after this initialization
finished, the initialization processing must be re-executed.
(2) FDL preparation processing (FDL_Open)
Set the Data Flash Control Register (DFLCTL) to the state where accessing the data flash memory is
permitted(DFLEN = 1).
(3) EEL initialization processing (EEL_Init)
Initialize the parameters (RAM) used by the EEL.
(4) EEPROM emulation preparation processing (EEL_Open)
Set the data flash memory to a state (opened) for which control is enabled to execute EEPROM emulation.
(5) EEPROM emulation execution start processing (EEL_Execute: EEL_CMD_STARTUP command)
Set the system to a state (started) in which EEPROM emulation can be executed.
(6) EEPROM emulation data write processing (EEL_Execute: EEL_CMD_WRITE command)
Write the specified data to an EEL block.
(7) EEPROM emulation data read processing (EEL_Execute: EEL_CMD_READ command)
Read the specified data from an EEL block.
(8) EEPROM emulation refresh processing (EEL_Execute: EEL_CMD_REFRESH command)
The latest stored data is copied from the active block (copy source block) to the next block (copy destination
block) in the EEL pool after the erase processing. This makes the copy destination block active
(9) EEPROM emulation execution stop processing (EEL_Execute: EEL_CMD_SHUTDOWN command)
Set the EEPROM emulation operation to the stopped state (opened).
(10) EEPROM emulation end processing (EEL_Close)
Set the data flash memory to a state (closed) for which control is disabled to stop EEPROM emulation.
(11) FDL end processing (FDL_Close)
Set the Data Flash Control Register (DFLCTL) to the state where accessing the data flash memory is inhibited
(DFLEN = 0).
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 22 of 53