English
Language : 

SH7065 Datasheet, PDF (782/941 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Section 19 256 kB Flash Memory (F-ZTAT)
Sample Single-Block Erase Program
The wait time set values (number of loops) are for the case where f = 60 MHz. For other
frequencies, the set value is given by {wait time (µs) × f (MHz) ÷ 4}.
Registers Used
R5 (input): Memory block table pointer
R7 (output): OK (normal) or NG (error)
R0–3, 6, 8–9: Work registers
FLMCR1
EBR1
OK
NG
EWait_X
EWait_Y
EWait_Z
EWait_a
EWait_b
EWait_c
EWait_d
EWait_e
EWait_f
WDT_TCSR
WDT_4m
SWESET
ESUSET
ESET
ECLEAR
ESUCLEAR
EVSET
EVCLEAR
SWECLEAR
MAXErase
;
FlashErase
MOV.L
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
EQU
EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
H'00
H'02
H'0
H'1
15
1500
150000
150
150
90
30
60
1500
H'FFFF1000
H'A57D
B'01000000
B'00100000
B'00000010
B'11111101
B'11011111
B'00001000
B'11110111
B'10111111
100
.EQU
$
#H'FFFF0800,R0
Rev. 5.00 Sep 11, 2006 page 760 of 916
REJ09B0332-0500