Datasheet

78K0/Ix2 CHAPTER 25 FLASH MEMORY
R01UH0010EJ0500 Rev.5.00 665
Feb 28, 2012
25.8.1 Register controlling self programming mode
The self programming mode is controlled by the self programming mode control register (FPCTL).
FPCTL can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears FPCTL to 00H.
Figure 25-8. Format of Self Programming Mode Control Register (FPCTL)
Address: FF2BH After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 <0>
FPCTL 0 0 0 0 0 0 0
FLMDPUP
Note
FLMDPUP
Note
Self programming mode control
0 Normal operation mode
1 Self programming mode
Note The FLMDPUP bit must be set to 0 (normal operation mode) while the regular user program is being executed,
and set to 1 (self programming mode) while self programming is being executed. The flash memory rewrite
circuit does not operate in normal operation mode, so even though the firmware and software for rewriting will
work, no actual rewriting will take place.
25.8.2 Flow of self programming (Rewriting Flash Memory)
The following figure illustrates a flow of rewriting the flash memory by using a self programming library.