English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (236/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
CHAPTER 16 FLASH MEMORY
Table 16-8 shows the relationship between the security setting and the operation in each programming mode.
Table 16-8. Relationship Between Security Setting and Operation In Each Programming Mode
Programming Mode On-Board/Off-Board Programming
Self Programming
Security Setting
Security Setting Security Operation Security Setting Security Operation
Batch erase (chip erase)
Possible
ValidNote 1
Impossible
InvalidNote 2
Block erase
Write
Notes 1. Execution of each command is prohibited by the security setting.
2. Execution of self programming command is possible regardless of the security setting.
16.8 Flash Memory Programming by Self Programming
The 78K0S/KU1+ support a self programming function that can be used to rewrite the flash memory via a user
program, making it possible to upgrade programs in the field.
Caution Self programming processing must be included in the program before performing self
programming.
Remarks 1.
2.
For usages of self programming, refer to use example mentioned in after 16.8.4.
To use the internal flash memory of the 78K0S/KU1+ as the external EEPROM for storing data,
refer to 78K0S/Kx1+ EEPROM Emulation Application Note (U17379E).
16.8.1 Outline of self programming
To execute self programming, shift the mode from the normal operation of the user program (normal mode) to the
self programming mode. Write/erase processing for the flash memory, which has been set to the register in advance,
is performed by executing the HALT instruction during self programming mode. The HALT state is automatically
released when processing is completed.
To shift to the self programming mode, execute a specific sequence for a specific register. Refer to 16.8.4
Example of shifting normal mode to self programming mode for details.
Remark Data written by self programming can be referenced with the MOV instruction.
Table 16-9. Self Programming Mode
Mode
User Program Execution
Execution of Write/erase for Flash
Memory with HALT Instruction
Normal mode
Self programming mode
Enabled
EnabledNote
−
Enabled
Note Maskable interrupt servicing is disabled during self programming mode.
Figure 16-8 shows a block diagram for self programming, Figure 16-9 shows the self programming state transition
diagram, Table 16-10 lists the commands for controlling self programming.
234
User’s Manual U18172EJ3V0UD