Datasheet
CHAPTER 16 FLASH MEMORY
User’s Manual U18172EJ3V0UD
232
16.7 On-Board and Off-Board Flash Memory Programming
16.7.1 Flash memory programming mode
To rewrite the contents of the flash memory by using the dedicated flash memory programmer, set the
78K0S/KU1+ in the flash memory programming mode. When the 78K0S/KU1+ are connected to the flash memory
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.
16.7.2 Communication commands
The dedicated flash memory programmer controls the 78K0S/KU1+ by using commands. The signals sent from
the flash memory programmer to the 78K0S/KU1+ are called communication commands, and the commands sent
from the 78K0S/KU1+ to the dedicated flash memory programmer are called response.
Figure 16-7. Communication Commands
Communication
command
Response
78K0S/KU1+
Dedicated flash memory
programmer
FlashPro5
QB-MINI2
Communication commands are listed in the table below. All these communication commands are issued from the
programmer and the 78K0S/KU1+ perform processing corresponding to the respective communication commands.
Table 16-5. Communication Commands
Classification Communication 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 set command
Prohibits batch erase (chip erase) command, block erase
command, and write command to prevent operation by third
parties.
The 78K0S/KU1+ returns a response for the communication command issued by the dedicated flash memory
programmer. The response name sent from the 78K0S/KU1+ are listed below.
<R>