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

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
242
An example of a program that performs a block blank check in self programming mode is shown below.
;----------------------------
;START
;----------------------------
FlashBlockBlankCheck:
;----------------------------
;END
;----------------------------
MOV
MOV
MOV
MOV
MOV
MOV
MOV
HALT
MOV
MOV
FLCMD,#04H
FLAPH,#07H
FLAPL,#00H
FLAPHC,#07H
FLAPLC,#0FFH
PFS,#00H
WDTE,#0ACH
A,PFS
CmdStatus,A
; Sets flash control command (block blank check)
; Sets number of block for blank check (block 7 is specified
; here)
; Fixes FLAPL to “00H”
; Sets blank check block compare number (same value as that of
; FLAPH)
; Fixes FLAPLC to “FFH”
; Clears flash status register
; Clears & restarts WDT
; Self programming is started
; Execution result is stored in variable
; (CmdStatus = 0: normal termination, other than 0: abnormal
; termination)
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ3V0UD

Related parts for upd78f9211grt2-jjg-a