NEC 78K0S/KB1+ User Manual page 295

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

<R>
<R>
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 <6> in Figure 19-21 correspond to <1> to <6> in 19.8.5 (previous page).
CHAPTER 19 FLASH MEMORY
Figure 19-21. Example of Shifting to Normal Mode
Shift to normal mode
<1> Clear FLCMD
(FLCMD = 00H)
<2> Clear PFS
PFCMD = A5H
FLPMC = 00H (set value)
<3>
FLPMC = 0FFH (inverted set value)
FLPMC = 00H (set value)
<4> Check execution result
(FPRERR flag)
<5> Enable interrupts
(by executing EI instruction
and changing MK0)
<6> Termination
User's Manual U17446EJ3V1UD
; Set value is invalid
; Set value is valid
Abnormal
Normal
Restore the CPU clock to its setting
before the self programming
; When interrupt function is used
295

Advertisement

Table of Contents
loading

Table of Contents