|
SH7040 Datasheet, PDF (752/923 Pages) Renesas Technology Corp – Renesas 32-Bit Single-Chip RISC Microprocessor SuperH RISC engine Family/SH7040 Series(CPU Core SH-2) | |||
|
◁ |
⢠Sample one-block erase program
The wait time set values (number of loops) are for the case where f = 28.7 MHz. For other
frequencies, the set value is given by the following expression:
Wait time (µS) à f (MHz) ÷ 4
The WDT overflow cycle set value is for the case where f = 28.7 MHz. For other frequencies,
ensure that the overflow cycle is a minimum of 5.3 ms.
Registers Used
R5 (input):
R7 (output):
R0-3, 6, 8-9:
Memory block table pointer
OK (normal) or NG (error)
Work registers
FLMCR1
FLMCR2
EBR1
EBR2
Wait10u
Wait2u
Wait200u
Wait5m
Wait20u
Wait5u
WDT_TCSR
WDT_9m
SWESET
ESUSET
ESET
ECLEAR
ESUCLEAR
EVSET
EVCLEAR
SWECLEAR
MAXErase
;
FlashErase
MOV.L
LDC
MOV.L
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
.EQU
Hâ80
Hâ81
Hâ82
Hâ83
72
14
1435
35875
144
36
HâFFFF8610
HâA57D
Bâ01000000
Bâ00100000
Bâ00000010
Bâ11111101
Bâ11011111
Bâ00001000
Bâ11110111
Bâ10111111
60
.EQU
$
#HâFFFF8500,R0
R0,GBR
#1,R2
; Initialize GBR
714
|
▷ |