English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (250/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
CHAPTER 16 FLASH MEMORY
Figure 16-19. Example of Shifting to Normal Mode
Shift to normal mode
<1> Clear FLCMD (FLCMD=00H)
<2> Clear PFS
PFCMD = A5H
FLPMC = 00H (set value)
; Set value is invalid
<3>
FLPMC = 0FFH (inverted set value)
FLPMC = 00H (set value)
; Set value is valid
<4> Check execution result
(FPRERR flag)
Abnormal
Normal
Restore the CPU clock to its setting
before the self programming
<5> Enable interrupts
(by executing EI instruction
and changing MK0)
; When interrupt function is used
<6> Termination
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 <6> in Figure 16-19 correspond to <1> to <6> in 16.8.5 (previous page).
248
User’s Manual U18172EJ3V0UD