NEC 78K0S/KA1+ User Manual page 289

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

Advertisement

An example of a program that shifts the mode to normal mode is shown below.
;----------------------------
;START
;----------------------------
ModeOffLoop:
MOV
PFS,#00H
MOV
PFCMD,#0A5H
MOV
FLPMC,#00H
MOV
FLPMC,#0FFH
MOV
FLPMC,#00H
MOV
A,PFS
CMP
A,#00H
BNZ
$ModeOffLoop
MOV
MK0,#INT_MK0
MOV
MK1,#INT_MK1
EI
;----------------------------
;END
;----------------------------
CHAPTER 18 FLASH MEMORY
; Clears flash status register
; PFCMD register control
; FLPMC register control (sets value)
; FLPMC register control (inverts set value)
; Sets normal mode via FLPMC register control (sets value)
; Checks completion of write to specific registers
; Repeats the same processing when an error occurs
; Restores interrupt mask flag
User's Manual U16898EJ3V0UD
289

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents