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

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
-
<R>
<R>
270
An example of a program when the interrupt-disabled time (from erasure to blank check) should be minimized in
self programming mode is shown below.
;---------------------------------------------------------------------
;START
;---------------------------------------------------------------------
FlashBlockErase:
EraseRetry:
MOV
; Sets erase command
MOV
MOV
MOV
MOV
MOV
CALL
; Execution of erase command
MOV
MOV
HALT
MOV
CMP
BNZ
CALL
; Sets blank check command
MOV
MOV
MOV
MOV
MOV
CALL
; Execution of blank check command
MOV
MOV
HALT
MOV
B,#48
FLCMD,#03H
FLAPH,#07H
FLAPL,#00H
FLAPHC,#07H
FLAPLC,#00H
!ModeOn
PFS,#00H
WDTE,#0ACH
A,PFS
A,#00H
$RetryCheck
!ModeOff
FLCMD,#04H
FLAPH,#07H
FLAPL,#00H
FLAPHC,#07H
FLAPLC,#0FFH
!ModeOn
PFS,#00H
WDTE,#0ACH
A,PFS
; Specifies the number of times the erase command can be
; executed.
; (4.0 V to 5.5 V
; Sets flash control command (block erase)
; Sets number of block to be erased (block 7 is specified here)
; Fixes FLAPL to “00H”
; Sets erase block compare number (same value as that of FLAPH)
; Fixes FLAPLC to “00H”
; Shift to self programming mode
; Clears flash status register
; Clears & restarts WDT
; Self programming is started
; Checks execution result
; Checks erase error
; Performs abnormal termination processing when an error
; occurs.
; Shift to normal mode
; Sets flash control command (block blank check)
; Sets block number for blank check (block 7 is specified here)
; Fixes FLAPL to “00H”
; Sets blank check block compare number (same value as that of
; FLAPH)
; Fixes FLAPLC to “FFH”
; Shift to self programming mode
; Clears flash status register
; Clears & restarts WDT
; Self programming is started
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ6V0UD
Time for executing block erasure 100 times)

Related parts for UPD78F9212CS-CAB-A