upd78f9211grt2-jjg-a ETC-unknow, upd78f9211grt2-jjg-a Datasheet - Page 221

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
16.8 Flash Memory Programming by Self Writing
program, making it possible to upgrade programs in the field.
16.8.1 Outline of self programming
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.
Example of shifting normal mode to self programming for details.
transition diagram, Table 16-11 lists the commands for controlling self programming.
Table 16-9 shows the relationship between the security setting and the operation in each programming mode.
The 78K0S/KY1+ support a self programming function that can be used to rewrite the flash memory via a user
Caution
Remark
To execute self programming, shift the mode from the normal operation of the user program (normal mode) to the
To shift to the self programming mode, execute a specific sequence for a specific register. Refer to 16.8.4
Remark
Figure 16-10 shows a block diagram for self programming, Figure 16-11 shows the self programming state
Notes 1. Execution of each command is prohibited by the security setting.
Security Setting
Batch erase (chip erase)
Block erase
Write
Table 16-9. Relationship Between Security Setting and Operation In Each Programming Mode
Note Maskable interrupt servicing is disabled during self programming mode.
Normal mode
Self programming mode
2. Execution of self programming command is possible regardless of the security setting.
To use the internal flash memory of the 78K0S/KY1+ as the external EEPROM for storing data, refer to
“78K0S/Kx1+ EEPROM Emulation AN” (U17379E).
Data written by self programming can be referenced with the MOV instruction.
Self programming processing must be included in the program before performing self writing.
Programming Mode
Mode
Possible
Table 16-10. Self Programming Mode
Security Setting
On-Board/Off-Board Programming
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ3V0UD
User Program Execution
Enabled
Enabled
Valid
Security Operation
Note
Note 1
Execution of Write/erase for Flash
Impossible
Memory with HALT Instruction
Security Setting
Self Programming
Enabled
Invalid
Security Operation
Note 2
221

Related parts for upd78f9211grt2-jjg-a