CHAPTER 18 FLASH MEMORY
User’s Manual U16898EJ3V0UD
285
Figure 18-20. Example of Shifting to Self Programming Mode
Shift to self programming mode
<1> Disable interrupts (by setting MK0
and MK1 to FFH and executing
DI instruction)
PFCMD = A5H
<4> Check execution result
(FPRERR flag)
Abnormal
Normal
; When interrupt function is used
<2> Clear PFS
<5> Termination
FLPMC = 01H (set value)
FLPMC = 0FEH (inverted set value)
FLPMC = 01H (set value)
; Set value is invalid
; Set value is valid
<3>
Caution Be sure to perform the series of operations described above using the user program at an
address where data is not erased nor written.
Remark
<1> to <5> in Figure 18-20 correspond to <1> to <5> in
18.8.4
(previous page).