CHAPTER 21 FLASH MEMORY
Preliminary User’s Manual U16846EJ1V0UD
348
21.6.4 Communication commands
The 78K0/KB1+ communicates with the dedicated flash programmer by using commands. The signals sent from
the flash programmer to the 78K0/KB1+ are called commands, and the commands sent from the 78K0/KB1+ to the
dedicated flash programmer are called response commands.
Figure 21-16. Communication Commands
78K0/KB1+
Command
Response command
Dedicated flash
programmer
PG-FP4
(Flash Pro4)
Cxxxxxx
Bxxxxx
Axxxx
XXX Y
YY
XXXXX
XXXXXX
XXXX
XXXX
YYY
Y
STATVE
The flash memory control commands of the 78K0/KB1+ are listed in the table below. All these commands are
issued from the programmer and the 78K0/KB1+ performs processing corresponding to the respective commands.
Table 21-8. Flash Memory Control Commands
Classification Command
Name
Function
Verify Batch
verify
command
Compares the contents of the entire memory
with the input data.
Erase
Batch erase command
Erases the contents of the entire memory.
Blank check
Batch blank check command
Checks the erasure status of the entire memory.
High-speed write command
Writes data by specifying the write address and
number of bytes to be written, and executes a
verify check.
Data write
Successive write command
Writes data from the address following that of
the high-speed write command executed
immediately before, and executes a verify
check.
Status read command
Obtains the operation status
Oscillation frequency setting command
Sets the oscillation frequency
Erase time setting command
Sets the erase time for batch erase
Write time setting command
Sets the write time for writing data
Baud rate setting command
Sets the baud rate when UART is used
Silicon signature command
Reads the silicon signature information
System setting, control
Reset command
Escapes from each status
The 78K0/KB1+ returns a response command for the command issued by the dedicated flash programmer. The
response commands sent from the 78K0/KB1+ are listed below.
Table 21-9. Response Commands
Command Name
Function
ACK Acknowledges
command/data.
NAK
Acknowledges illegal command/data.