English
Language : 

SH7065 Datasheet, PDF (773/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 128-Byte Programming 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
R11 (input): Program data storage address
R12 (input): Programming destination address
R13 (output): OK (normal) or NG (error)
R0–10, 14: Work registers
FLMCR1
OK
NG
WAIT_X
WAIT_Y
WAIT_Z1
WAIT_Z5
WAIT_ZA
WAIT_A
WAIT_B
WAIT_C
WAIT_D
WAIT_E
WAIT_F
WDT_TCSR
WDT_1M
SWESET
PSUSET
PSET
PCLEAR
PSUCLEAR
PVSET
PVCLEAR
SWECLEAR
MAXVERIFY
;
.EQU H'00
.EQU H'0
.EQU H'1
.EQU 15
.EQU 750
.EQU 450
.EQU 3000
.EQU 150
.EQU 75
.EQU 75
.EQU 60
.EQU 30
.EQU 30
.EQU 1500
.EQU H'FFFF1000
.EQU H'A57C
.EQU H'40
.EQU H'50
.EQU H'51
.EQU H'50
.EQU H'40
.EQU H'44
.EQU H'40
.EQU H'00
.EQU 1000
; 1 µs
; 50 µs
; 30 µs (1st to 6th time)
; 200 µs (7th to 1000th time)
; 10 µs (Additional write)
; 5 µs
; 5 µs
; 4 µs
; 2 µs
; 2 µs
; 100 µs
; B'01000000
; B'01010000
; B'01010001
; B'01010000
; B'01000000
; B'01000100
; B'01000000
; B'00000000
Rev. 5.00 Sep 11, 2006 page 751 of 916
REJ09B0332-0500