CHAPTER 19 FLASH MEMORY
User’s Manual U17446EJ3V1UD
292
Figure 19-20. Example of Shifting to Self Programming Mode
Shift to self programming mode
<1> Disable interrupts (by setting
MK0 to FFH and executing DI
PFCMD = A5H
<6> Check execution result
(FPRERR flag)
Abnormal
Normal
; When interrupt function is used
If the CPU clock is lower than 1 MHz,
set it to be 1 MHz or higher.
<3> Clear PFS
<2> Clear FLCMD
(FLCMD = 00H)
<7> Termination
FLPMC = 01H (set value)
FLPMC = 0FEH (inverted set value)
FLPMC = 01H (set value)
NOP instruction
HALT instruction
; Set value is invalid
; Set value is valid
<4>
<5>
instruction)
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 <7> in Figure 19-20 correspond to <1> to <7> in
19.8.4
(previous page).
<R>
Содержание 78K0S/KB1+
Страница 2: ...User s Manual U17446EJ3V1UD 2 MEMO ...