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

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
182
;---------------------------------------------------------------------
;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
MOV
DI
MOV
MOV
MOV
MOV
MOV
NOP
HALT
BT PFS.0,$ModeOnLoop
RET
MOV
MOV
MOV
!ModeOff
StatusNormal
MK0,#11111111B
FLCMD,#00H
PFS,#00H
PFCMD,#0A5H
FLPMC,#01H
FLPMC,#0FEH
FLPMC,#01H
FLCMD,#00H
PFS,#00H
PFCMD,#0A5H
; Shift to normal mode
; 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 via FLPMC register control (sets
; value)
; Checks completion of write to specific registers
; Repeats the same processing when an error occurs.
; Clears FLCMD register
; Clears flash status register
; PFCMD register control
Preliminary User’s Manual U18681EJ1V0UD
; Masks all interrupts
; Clears FLCMD register
CHAPTER 14 FLASH MEMORY
1 MHz

Related parts for UPD78F9502MA-CAC-A