English
Language : 

SH7014 Datasheet, PDF (547/754 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
18. 128 kB Flash Memory (F-ZTAT)
• Sample 32-byte programming 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
Registers Used
R4 (input):
Program data storage address
R5 (input):
Programming destination address
R7 (output):
OK (normal) or NG (error)
R0 to R3, R8 to R13: Work registers
FLMCR1
FLMCR2
OK
NG
Wait10u
Wait50u
Wait4u
Wait2u
Wait200u
WDT_TCSR
WDT_573u
SWESET
PSU1SET
P1SET
P1CLEAR
PSU1CLEAR
PVSET
PVCLEAR
SWECLEAR
MAXVerify
;
FlashProgram
MOV
MOV.L
MOV
MOV
COPY_LOOP
.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'0
H'1
72
359
29
14
1435
H'FFFF8610
H'A579
B'01000000
B'00010000
B'00000001
B'11111110
B'11101111
B'00000100
B'11111011
B'10111111
1000
.EQU
$
#H'01,R2
#PdataBuff,R0
R4,R12
#8,R13
.EQU
$
; R2 work register (1)
; Save program data to work area
Rev.5.00 Sep. 27, 2007 Page 513 of 716
REJ09B0398-0500