English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (247/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
CHAPTER 16 FLASH MEMORY
Figure 16-18. Example of Shifting to Self Programming Mode
Shift to self programming mode
<1> Disable interrupts (by setting
MK0 to FFH and executing DI
instruction)
; When interrupt function is used
<2> Clear FLCMD
(FLCMD=00H).
<3> Clear PFS
PFCMD = A5H
FLPMC = 01H (set value)
; Set value is invalid
<4>
FLPMC = 0FEH (inverted set value)
FLPMC = 01H (set value)
; Set value is valid
NOP instruction
<5>
HALT instruction
<6> Check execution result
(FPRERR flag)
Normal
<7> Termination
Abnormal
Caution Be sure to perform the series of operations described above using the user program at an
address where data is not erased or written.
Remark <1> to <7> in Figure 16-18 correspond to <1> to <7> in 16.8.4 (previous page).
User’s Manual U18172EJ3V0UD
245