Datasheet
RL78/L12    CHAPTER 26 FLASH MEMORY 
R01UH0330EJ0200 Rev.2.00      815 
Dec 13, 2013 
26.4.2 Flash memory programming mode 
To rewrite the contents of the code flash memory through serial programming, specify the flash memory programming 
mode. To enter the mode, set as follows. 
<Serial programming using the dedicated flash memory programmer> 
Connect the RL78 microcontroller to a dedicated flash memory programmer. Communication from the dedicated 
flash memory programmer is performed to automatically switch to the flash memory programming mode. 
<Serial programming using an external device (UART communication)> 
Set the TOOL0 pin to the low level, and then cancel the reset (see Table 26-4). After that, enter flash memory 
programming mode according to the procedures <1> to <4> shown in Figure 26-7. For details, refer to the RL78 
Microcontrollers (RL78 Protocol A) Programmer Edition Application Note (R01AN0815). 
Table 26-4. Relationship between TOOL0 Pin and Operation Mode after Reset Release 
TOOL0 Operation Mode 
EVDD  Normal operation mode 
0 V  Flash memory programming mode 
Figure 26-7. Setting of Flash Memory Programming Mode 
RESET
TOOL0
<1>
<2>
<3>
t
SUINIT
tHD + 
soft processing 
time
t
SU
<4>
1-byte data for setting mode
<1> The low level is input to the TOOL0 pin. 
<2> The external reset ends (POR and LVD reset must end before the external reset ends.). 
<3> The TOOL0 pin is set to the high level. 
<4> Baud rate setting by UART reception is completed. 
Remark t
SUINIT: The segment shows that it is necessary to finish specifying the initial communication settings within 100 
ms from when the resets end. 
t
SU:  How long from when the TOOL0 pin is placed at the low level until an external reset ends 
tHD:  How long to keep the TOOL0 pin at the low level from when the external and internal resets end (the flash 
firmware processing time is excluded) 
For details, see 30.11 or 31.11 Timing Specifications for Switching Flash Memory Programming Modes. 










