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

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
;---------------------------------------------------------------------
;END (abnormal termination processing); Perform processing to shift to
;---------------------------------------------------------------------
StatusError:
;---------------------------------------------------------------------
;END (normal termination processing)
;---------------------------------------------------------------------
StatusNormal:
;---------------------------------------------------------------------
;Processing to shift to self programming mode
;---------------------------------------------------------------------
ModeOn:
ModeOnLoop:
;---------------------------------------------------------------------
; Processing to shift to normal mode
;---------------------------------------------------------------------
ModeOff:
normal mode in order to return to normal processing
CALL
BR
MOV
DI
MOV
MOV
MOV
MOV
MOV
MOV
CMP
BNZ
RET
MOV
MOV
MOV
MOV
!ModeOff
StatusNormal
MK0,#11111111B
PFS,#00H
PFCMD,#0A5H
FLPMC,#01H
FLPMC,#0FEH
FLPMC,#01H
A,PFS
A,#00H
$ModeOnLoop
PFS,#00H
PFCMD,#0A5H
FLPMC,#00H
FLPMC,#0FFH
; Shift to normal mode
; Clears flash status register
; PFCMD register control
; FLPMC register control (sets value)
; FLPMC register control (inverts set value)
; Sets self programming mode via FLPMC register control (sets
; value)
; Checks completion of write to specific registers
; Repeats the same processing when an error occurs
; Clears flash status register
; PFCMD register control
; FLPMC register control (sets value)
; FLPMC register control (inverts set value)
; Masks all interrupts
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ3V0UD
259

Related parts for upd78f9211grt2-jjg-a