CHAPTER 18 FLASH MEMORY
Preliminary User’s Manual U16898EJ1V0UD
269
18.8.2 Flash memory programming mode
To rewrite the contents of the flash memory by using the dedicated flash programmer, set the 78K0S/KA1+ in the
flash memory programming mode. When the 78K0S/KA1+ is connected to the flash programmer and a
communication command is transmitted to the microcontroller, the microcontroller is set in the flash memory
programming mode.
Change the mode by using a jumper when writing the flash memory on-board.
18.8.3 Communication commands
The 78K0S/KA1+ communicates with the dedicated flash programmer by using commands. The signals sent from
the flash programmer to the 78K0S/KA1+ are called commands, and the commands sent from the 78K0S/KA1+ to the
dedicated flash programmer are called response commands.
Figure 18-7. Communication Commands
78K0S/KA1+
Command
Response command
Dedicated flash
programmer
PG-FP4
(Flash Pro4)
Cxxxxxx
Bxxxxx
Axxxx
XXX YYY
XX
XX
X
XX
XX
XX
XX
XX
XXXX YYYY
STATVE
The flash memory control commands of the 78K0S/KA1+ are listed in the table below. All these commands are
issued from the programmer and the 78K0S/KA1+ perform processing corresponding to the respective commands.
Table 18-5. Flash Memory Control Commands
Classification Command
Name
Function
Batch erase command
Erases the contents of the entire memory
Erase
Block erase command
Erases the contents of the memory of the specified block
Write Write
command Writes to the specified address range and executes a verify
check of the contents.
Checksum Checksum
command Reads the checksum of the specified address range and
compares with the written data.
Security
Security set command
Prohibits chip erase command, block erase command, and
write command to prevent operation by third parties.
The 78K0S/KA1+ returns a response command for the command issued by the dedicated flash programmer. The
response commands sent from the 78K0S/KA1+ are listed below.
Table 18-6. Response Commands
Command Name
Function
ACK Acknowledges
command/data.
NAK
Acknowledges illegal command/data.
www.DataSheet4U.com
www.DataSheet4U.com