RL78/G1H CHAPTER 27 FLASH MEMORY
R01UH0575EJ0120 Rev. 1.20 Page 813 of 920
Dec 22, 2016
27.3.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.
<When serial programming by 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.
<When serial programming by using an external device>
Set the TOOL0 pin to the low level, and then cancel the reset (see Table 27 - 3). After that, enter flash memory
programming mode according to the procedures <1> to <4> shown in Figure 27 - 5. For details, refer to the
RL78 microcontrollers (RL78 Protocol A) Programmer Edition Application Note (R01AN0815).
Figure 27 - 5 Setting of Flash Memory Programming 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> Setting of the flash memory programming mode by UART reception and complete the baud rate setting.
Remark tSUINIT: The segment shows that it is necessary to finish specifying the initial communication settings
within 100 ms from when the external resets end.
t
SU: How long from when the TOOL0 pin is placed at the low level until a pin reset ends.
t
HD: How long to keep the TOOL0 pin at the low level from when the external resets end (the flash
firmware processing time is excluded).
For details, see 31.11 Timing for Switching Flash Memory Programming Modes.
Table 27 - 3 Relationship Between TOOL0 Pin and Operation Mode After Reset Release
TOOL0 Operation Mode
VDD Normal operation mode
0 V Flash memory programming mode
TOOL0
<1> <2> <3>
tSU
<4>
t
SUINI T
723 µs + tHD
processing
time
00H reception
(TOOLRxD, TOOLTxD mode)
RESET