UPD78F9222MC(T)-5A4-A NEC, UPD78F9222MC(T)-5A4-A Datasheet - Page 320

8BIT MCU, 4K FLASH, 256B RAM, 78F9222

UPD78F9222MC(T)-5A4-A

Manufacturer Part Number
UPD78F9222MC(T)-5A4-A
Description
8BIT MCU, 4K FLASH, 256B RAM, 78F9222
Manufacturer
NEC
Datasheet

Specifications of UPD78F9222MC(T)-5A4-A

Controller Family/series
UPD78
No. Of I/o's
17
Ram Memory Size
256Byte
Cpu Speed
10MHz
No. Of Timers
4
No. Of
RoHS Compliant
Core Size
8bit
Program Memory Size
4KB
Oscillator Type
External, Internal

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F9222MC(T)-5A4-A
Manufacturer:
NEC
Quantity:
1 000
Part Number:
UPD78F9222MC(T)-5A4-A
Manufacturer:
NEC/PBF
Quantity:
6 640
Part Number:
UPD78F9222MC(T)-5A4-A
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Company:
Part Number:
UPD78F9222MC(T)-5A4-A
Quantity:
458
320
An example of a program when the interrupt-disabled time (from write to internal verify) should be minimized in self
programming mode is shown below.
;---------------------------------------------------------------------
;START
;---------------------------------------------------------------------
FlashWrite:
FlashWriteLoop:
; Sets write command
MOVW
MOVW
MOV
MOV
MOV
MOV
MOV
MOV
MOV
CALL
; Execution of write command
MOV
MOV
HALT
MOV
CMP
BNZ
CALL
MOV
MOV
EI
; Judgment of writing all data
INCW
MOVW
CMPW
BNC
INCW
BR
HL,#DataAdrTop ; Sets address at which data to be written is located
DE,#WriteAdr
FLCMD,#05H
A,D
FLAPH,A
A,E
FLAPL,A
A,[HL]
FLW,A
!ModeOn
PFS,#00H
WDTE,#0ACH
A,PFS
A,#00H
$StatusError
!ModeOff
MK0,#INT_MK0
MK1,#INT_MK1
HL
AX,HL
AX,#DataAdrBtm ; Performs internal verify processing
$FlashVerify
DE
FlashWriteLoop
; 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
; Shift to self programming mode
; Clears flash status register
; Clears & restarts WDT
; Self programming is started
; Checks write error
; Performs abnormal termination processing when an error
; occurs.
; Shift to normal mode
; Restores interrupt mask flag
; Address at which data to be written is located + 1
; if write of all data is completed
; Address at which data is to be written + 1
CHAPTER 18 FLASH MEMORY
User’s Manual U16898EJ5V0UD

Related parts for UPD78F9222MC(T)-5A4-A