English
Language : 

UPD78F9234MC-5A4-A Datasheet, PDF (296/419 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 19 FLASH MEMORY
Figure 19-18. 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)
; When interrupt function is used
<2> Clear FLCMD
(FLCMD = 00H)
<3> Clear PFS
If the CPU clock is lower than 1 MHz,
set it to be 1 MHz or higher.
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 19-18 correspond to <1> to <7> in 19.8.4 (previous page).
294
User’s Manual U17446EJ5V0UD