Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
CHAPTER  25   FLASH  MEMORY 
25.1.1  Programming environment 
The environment required for writing a program to the flash memory of the RL78 microcontroller is illustrated below. 
 
Figure 25-1.  Environment for Writing Program to Flash Memory 
<R> 
 
RS-232C
USB
RL78 microcontroller
EV
DD
Note
V
DD
V
SS
, EV
SS
Note
RESET
TOOL0 (dedicated single-line UART)
Host machine
Dedicated flash
memory programmer
PG-FP5, FL-PR5
E1
 
 
Note  64-pin product only. 
 
A host machine that controls the dedicated flash memory programmer is necessary. 
To interface between the dedicated flash memory programmer and the RL78 microcontroller, the TOOL0 pin is used for 
manipulation such as writing and erasing via a dedicated single-line UART.  
 
25.1.2  Communication mode 
Communication between the dedicated flash memory programmer and the RL78 microcontroller is established by serial 
communication using the TOOL0 pin via a dedicated single-line UART of the RL78 microcontroller. 
 
Transfer rate: 1 M, 500 k, 250 k, 115.2 kbps 
 
Figure 25-2.  Communication with Dedicated Flash Memory Programmer 
<R> 
 
V
DD
/EV
DD
Note 3
V
SS
/EV
SS
Note 3
/REGC
Note 4
RESET
TOOL0
EMV
DD
V
DD
V
DD
GND
RESET
Note 1
/RESET
Note 2
  
RL78 microcontroller
Dedicated flash
memory programmer
PG-FP5, FL-PR5
E1
TOOL0
Note 1
SI/RxD
Note 2
 
 
Notes 1.  When using E1 on-chip debugging emulator. 
 2.  When using PG-FP5 or FL-PR5. 
 3. 
64- pin product only. 
 4.  Connect REGC pin to ground via a capacitor (0.47 to 1 
μ
F). 
 
R01UH0305EJ0200  Rev.2.00 
 
 
804  
Jul 04, 2013