CHAPTER 18 FLASH MEMORY
User’s Manual U16898EJ3V0UD
271
18.7 On-Board and Off-Board Flash Memory Programming
18.7.1 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.7.2 Communication commands
The dedicated flash programmer controls the 78K0S/KA1+ by using commands. The signals sent from the flash
programmer to the 78K0S/KA1+ are called communication commands, and the commands sent from the 78K0S/KA1+
to the dedicated flash programmer are called response.
Figure 18-9. Communication Commands
Communication
Command
Response
78K0S/KA1+
PG-FP4
(Flash Pro4)
Cxxxxxx
Bxxxxx
Axxxx
XXX YYY
XXXXX
XXXXXX
XXXX
XXXX YYYY
STATVE
FlashPro4
Dedicated flash programmer
Power Status
MODE
Target 3V
Target
PG-FPL2
PG-FPL2
Communication commands are listed in the table below. All these communication commands are issued from the
programmer and the 78K0S/KA1+ perform processing corresponding to the respective communication commands.
Table 18-6. Communication Commands
Classification Command
Name
Function
Batch erase (chip 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.
Blank check
Blank check command
Confirms the erasure status of the entire memory.
Security
Security setting command
Prohibits batch erase (chip erase) command, block erase
command, and write command to prevent operation by third
parties.
The 78K0S/KA1+ returns a response for the communication command issued by the dedicated flash programmer.
The response name sent from the 78K0S/KA1+ are listed below.