UPD78F9212CS-CAB-A Renesas Electronics America, UPD78F9212CS-CAB-A Datasheet - Page 277

no-image

UPD78F9212CS-CAB-A

Manufacturer Part Number
UPD78F9212CS-CAB-A
Description
MCU 8BIT 4KB FLASH 16PIN
Manufacturer
Renesas Electronics America
Series
78K0S/Kx1+r
Datasheet

Specifications of UPD78F9212CS-CAB-A

Core Processor
78K0S
Core Size
8-Bit
Speed
10MHz
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
4KB (4K x 8)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
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
EI
; Judgment of writing all data
INCW
MOVW
CMPW
BNC
INCW
BR
; Setting internal verify command
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
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 16 FLASH MEMORY
User’s Manual U16994EJ6V0UD
275

Related parts for UPD78F9212CS-CAB-A