upd78f9211grt2-jjg-a ETC-unknow, upd78f9211grt2-jjg-a Datasheet - Page 251

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
ModeOffLoop:
;---------------------------------------------------------------------
;END (abnormal termination processing); Perform processing to shift to
;---------------------------------------------------------------------
StatusError:
;---------------------------------------------------------------------
;END (normal termination processing)
;---------------------------------------------------------------------
StatusNormal:
normal mode in order to return to normal processing
MOV
MOV
HALT
MOV
CMP
BNZ
MOV
MOV
MOV
MOV
MOV
MOV
CMP
BNZ
MOV
EI
BR
FLAPLC,#0FFH
WDTE,#0ACH
A,PFS
A,#00H
$StatusError
PFS,#00H
PFCMD,#0A5H
FLPMC,#00H
FLPMC,#0FFH
FLPMC,#00H
A,PFS
A,#00H
$ModeOffLoop
MK0,#INT_MK0
StatusNormal
; Fixes FLAPLC to “FFH”
; Clears & restarts WDT
; Self programming is started
; Checks blank check error
; Performs abnormal termination processing when an error
; occurs.
; 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
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ3V0UD
251

Related parts for upd78f9211grt2-jjg-a