Renesas rl78 User Manual
RL78/G1A
CHAPTER 25 FLASH MEMORY
25.4.3 Selecting communication mode
Communication modes of the RL78 microcontroller are as follows.
Table 25-6. Communication Modes
Standard Setting
Note 1
Communication
Mode
Port Speed
Note 2
Frequency
Multiply Rate
Pins Used
1-line UART
(when flash
memory
programmer is
used, or when
external device
is used)
(when flash
memory
programmer is
used, or when
external device
is used)
UART 115200
bps,
250000 bps,
500000 bps,
1 Mbps
500000 bps,
1 Mbps
−
−
TOOL0
Dedicated UART
(when external
device is used)
(when external
device is used)
UART 115200
bps,
250000 bps,
500000 bps,
1 Mbps
500000 bps,
1 Mbps
−
−
TOOLTxD,
TOOLRxD
TOOLRxD
Notes 1. Selection items for Standard settings on GUI of the flash memory programmer.
2. Because factors other than the baud rate error, such as the signal waveform slew, also affect UART
communication, thoroughly evaluate the slew as well as the baud rate error.
25.4.4 Communication commands
<R>
The RL78 microcontroller executes serial programming through the commands listed in Table 25-7.
The signals sent from the dedicated flash memory programmer or external device to the RL78 microcontroller are
called commands, and programming functions corresponding to the commands are executed. For details, refer to the
RL78 Microcontrollers (RL78 Protocol A) Programmer Edition Application Note (R01AN0815).
Table 25-7. Flash Memory Control Commands
Classification Command
Name
Function
Verify Verify
Compares the contents of a specified area of the flash memory with
data transmitted from the programmer.
Erase
Block Erase
Erases a specified area in the flash memory.
Blank check
Block Blank Check
Checks if a specified block in the flash memory has been correctly
erased.
Write
Programming
Writes data to a specified area in the flash memory.
Silicon Signature
Gets the RL78 microcontroller information (such as the part number,
flash memory configuration, and programming firmware version).
Getting information
Checksum
Gets the checksum data for a specified area.
Security Set
Sets security information.
Security Get
Gets security information.
Security
Security Release
Release setting of prohibition of writing.
Reset
Used to detect synchronization status of communication.
Others
Baud Rate Set
Sets baud rate when UART communication mode is selected.
<R>
Note Confirm that no data has been written to the write area. Because data cannot be erased after block erase is
prohibited, do not write data if the data has not been erased.
R01UH0305EJ0200 Rev.2.00
812
Jul 04, 2013