UPD78F9502MA-CAC-A NEC, UPD78F9502MA-CAC-A Datasheet - Page 174

8BIT MCU, 4K FLASH, 128B RAM, SMD

UPD78F9502MA-CAC-A

Manufacturer Part Number
UPD78F9502MA-CAC-A
Description
8BIT MCU, 4K FLASH, 128B RAM, SMD
Manufacturer
NEC
Datasheet

Specifications of UPD78F9502MA-CAC-A

Controller Family/series
UPD78F
No. Of I/o's
8
Ram Memory Size
128Byte
Cpu Speed
10MHz
No. Of Timers
2
No. Of Pwm
RoHS Compliant
Core Size
8bit
Program Memory Size
4KB
Oscillator Type
External, Internal
174
An example of a program when the command execution time (from erasure to black check) should be minimized in
self programming mode is shown below.
;---------------------------------------------------------------------
;START
;---------------------------------------------------------------------
ModeOnLoop:
FlashBlockErase:
FlashBlockBlankCheck:
MOV
MOV
DI
MOV
MOV
MOV
MOV
MOV
NOP
HALT
BT PFS.0,$ModeOnLoop
MOV
MOV
MOV
MOV
MOV
MOV
HALT
MOV
CMP
BNZ
MOV
MOV
MOV
MOV
MK0,#11111111B
FLCMD,#00H
PFS,#00H
PFCMD,#0A5H
FLPMC,#01H
FLPMC,#0FEH
FLPMC,#01H
FLCMD,#03H
FLAPH,#07H
FLAPL,#00H
FLAPHC,#07H
FLAPLC,#00H
WDTE,#0ACH
A,PFS
A,#00H
$StatusError
FLCMD,#04H
FLAPH,#07H
FLAPL,#00H
FLAPHC,#07H
Preliminary User’s Manual U18681EJ1V0UD
; Masks all interrupts
; Clears FLCMD register
; Configure settings so that the CPU clock  1 MHz
; Clears flash status register
; PFCMD register control
; FLPMC register control (sets value)
; FLPMC register control (inverts set value)
; Sets self programming mode with FLPMC register control (sets
; value)
; Checks completion of write to specific registers
; Repeats the same processing when an error occurs.
; Sets flash control command (block erase)
; Sets number of block to be erased (block 7 is specified
; here)
; Fixes FLAPL to “00H”
; Sets erase block compare number (same value as that of
; FLAPH)
; Fixes FLAPLC to “00H”
; Clears & restarts WDT
; Self programming is started
; Checks erase error
; Performs abnormal termination processing when an error
; occurs.
; 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 of
; FLAPH)
CHAPTER 14 FLASH MEMORY

Related parts for UPD78F9502MA-CAC-A