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

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
An example of a program when the command execution time (from write to internal verify) should be minimized in
self programming mode is shown below.
;---------------------------------------------------------------------
;START
;---------------------------------------------------------------------
ModeOnLoop:
FlashWrite:
FlashWriteLoop:
MOV
MOV
DI
MOV
MOV
MOV
MOV
MOV
NOP
HALT
BT PFS.0,$ModeOnLoop
MOVW
MOVW
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
HALT
MOV
CMP
BNZ
INCW
MOVW
CMPW
BNC
MK0,#11111111B
FLCMD,#00H
PFS,#00H
PFCMD,#0A5H
FLPMC,#01H
FLPMC,#0FEH
FLPMC,#01H
HL,#DataAdrTop
DE,#WriteAdr
FLCMD,#05H
A,D
FLAPH,A
A,E
FLAPL,A
A,[HL]
FLW,A
WDTE,#0ACH
A,PFS
A,#00H
$StatusError
HL
AX,HL
AX,#DataAdrBtm
$FlashVerify
Preliminary User’s Manual U18681EJ1V0UD
; Masks all interrupts
; Clears FLCMD register
; Configure settings so that the CPU clock
; 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 address at which data to be written is located
; Sets address at which data is to be written
; Sets flash control command (byte write)
; Sets address at which data is to be written
; Sets address at which data is to be written
; Sets data to be written
; Clears & restarts WDT
; Self programming is started
; Checks write error
; Performs abnormal termination processing when an error
; occurs.
; address at which data to be written is located + 1
; Performs internal verify processing
; if write of all data is completed
CHAPTER 14 FLASH MEMORY
1 MHz
177

Related parts for UPD78F9502MA-CAC-A