English
Language : 

R01US0068EJ0100 Datasheet, PDF (42/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
Chapter 5 User Interface
Execution Commands (eel_command_t)
Command
EEL_CMD_STARTUP
Description
This checks the block status and sets the system to the EEPROM emulation start
(started) state. If two active blocks exist, the incorrect block is changed to an
invalid block.
Be sure to execute this command before executing commands other than the
EEL_CMD_WRITE Note 1
EEL_CMD_FORMAT command and make sure that the command finishes normally.
This writes the specified data to the EEL blocks.
* The following arguments must be specified prior to execution.
・address_pu08:Specifies the start address of the RAM area where the write data
is stored.
EEL_CMD_READ Note 1
・identifier_u08: Specifies the data ID of the write data.
This reads the specified data from the EEL blocks.
*The following arguments must be specified prior to execution.
・address_pu08:Specifies the start address of the RAM area where the read data
is stored.
EEL_CMD_VERIFY Note 1,2
・identifier_u08:Specifies the data ID of the read data.
This performs internal verification to check signal levels of the active block. This
command verifies whether signal levels of flash memory cells are appropriate or
EEL_CMD_REFRESHNote1,3
not.
This copies the latest stored data from the active EEL 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.
EEL_CMD_FORMAT
This initializes (erases) everything, including the data recorded in the EEL
blocks. Be sure to use this command before using EEPROM emulation for the
first time. Furthermore, use this command to initialize the entire blocks when an
error (such as no active block) has occurred in EEL blocks or when modifying
values in the descriptor table (unchangeable fixed values).
Because EEPROM emulation switches to the stopped state (opened) regardless
of the results after the processing finishes, execute the EEL_CMD_STARTUP
command to continue using EEPROM emulation.
EEL_CMD_SHUTDOWNNote1 This sets EEPROM emulation to the stopped state (opened).
Note 1: Do not execute this command until the EEL_CMD_STARTUP command has finished normally.
Note 2: This command is not used to perform processing for reading written data and compare it. To compare
written data, use the EEL_Execute (EEL_CMD_READ) function through the user program.
Note 3: The erase processing is performed by executing the EEL_CMD_REFRESH command.
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 42 of 53