English
Language : 

R01US0068EJ0100 Datasheet, PDF (19/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
Chapter 3 EEL Functional Specifications
3.2 State Transitions
To use EEPROM emulation from a user-created program, it is necessary to initialize the EEL and execute
functions that perform operations such as reading and writing on EEL blocks. Figure 3-1 shows the overall state
transitions, and Figure 3-2 shows an operation flow for using basic features. When using EEPROM emulation,
incorporate EEPROM emulation into user-created programs by following this flow.
Figure 3-1 State transitions diagram
Reset or Power ON
uninitialized
FDL_Init()
↓
FDL_Open()
   ↓
EEL_Init()
FDL_Close()
closed
EEL_Open()
EEL_Close()
opened
EEL_CMD_STARTUP
EEL_CMD_FORMAT status:OK
status:ERROR
status:ERROR
EEL_CMD_SHUTDOWN
Startup executing
busy
Format executing
busy
status:
ERROR
POOL_EXHAUSTED status:OK
ERROR Verify
EEL_CMD_STARTUP
EEL_CMD_FORMAT
exhausted
started
status:OK
status:ERROR
EEL_CMD_WRITE
EEL_CMD_READ
EEL_CMD_READ
EEL_CMD_VERIFY
EEL_CMD_REFRESH
EEL_CMD_VERIFY
status:
ERROR
POOL_EXHAUSTED
status:OK
status:ERROR
EEPROM command executing
busy
EEPROM command executing
busy
EEL_CMD_SHUTDOWN
Note 1: EEL_Close and EEL_Init can be called from every state. Please note however, that this interrupts any
EEL processing and can lead to unpredictable behavior.
Note 2: Once the EEL_CMD_FORMAT command is started, be sure to finish it.
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 19 of 53