English
Language : 

R01US0068EJ0100 Datasheet, PDF (35/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
FDL_Init
Chapter 5 User Interface
[Function]
FDL initialization processing
[Format]
<C language>
fdl_status_t __far FDL_Init(const __far fdl_descriptor_t* descriptor_pstr)
<Assembler>
CALL !FDL_Init or CALL !!FDL_Init
Remark Call this function by using ! if placing the FDL at 00000H to 0FFFFH or by using !! if not.
[Pre-conditions]
1. The FSL and EEL processing must be either not executing or finished.
2. The high-speed on-chip oscillator has been started up.
[Post-conditions]
Execute the FDL_Open function.
[Cautions]
1. Be sure to execute this function when starting EEPROM emulation to make it possible to start accessing the
data flash memory.
2. This function is mutually exclusive with the FSL. Before executing this function, be sure to end FSL. Also,
never use any FSL functions during EEPROM emulation.
3. To use FSL after this function is executed, the RAM must be reinitialized, so always execute this function
when restarting the EEL.
4. To execute this function again, always be sure to end EEL.
5. The descriptor table used for this function cannot be modified. Be sure to use a defined descriptor table.
[Register status after calling this function]
Return Value : C
Corrupted registers: AX (argument), BC (argument)
[Arguments]
Argument
descriptor_pstr
Type
fdl_descriptor_t* (far)
Description
Pointer to the descriptor table
[Return values]
Type
fdl_status_t
Symbol Definition
FDL_OK
FDL_ERR_CONFIGURATION
Description
Normal end
Initialization error. The setting is incorrect. Or
high-speed on-chip oscillator does not run. Make sure
that the defined data has not been changed and the
high-speed on-chip oscillator has been started up.
Remark Assembly language return values are stored in register C.
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 35 of 53