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

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
178
FlashVerify:
ModeOffLoop:
;---------------------------------------------------------------------
;END (abnormal termination processing); Perform processing to shift to
;---------------------------------------------------------------------
StatusError:
normal mode in order to return to normal processing
INCW
BR
MOVW
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
HALT
MOV
CMP
BNZ
MOV
MOV
MOV
MOV
MOV
MOV
BT PFS.0,$ModeOffLoop
MOV
EI
BR
DE
FlashWriteLoop
HL,#WriteAdr
FLCMD,#02H
A,H
FLAPH,A
A,L
FLAPL,A
A,D
FLAPHC,A
A,E
FLAPLC,A
WDTE,#0ACH
A,PFS
A,#00H
$StatusError
FLCMD,#00H
PFS,#00H
PFCMD,#0A5H
FLPMC,#00H
FLPMC,#0FFH
FLPMC,#00H
MK0,#INT_MK0
StatusNormal
Preliminary User’s Manual U18681EJ1V0UD
; Address at which data is to be written + 1
; Sets verify address
; Sets flash control command (internal verify 2)
; Sets verify start address
; Sets verify start address
; Sets verify end address
; Sets verify end address
; Clears & restarts WDT
; Self programming is started
; Checks internal verify error
; Performs abnormal termination processing when an error
; occurs.
; Clears FLCMD register
; 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.
; After the specific sequence is correctly executed, restore
; the CPU clock to its setting before the self programming
; Restores interrupt mask flag
CHAPTER 14 FLASH MEMORY

Related parts for UPD78F9502MA-CAC-A