English
Language : 

SH7014 Datasheet, PDF (550/754 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
18. 128 kB Flash Memory (F-ZTAT)
MOV.L
MOV.L
Wait_7 SUBC
BF
;
MOV.L
MOV.L
CMP/EQ
BT
MOV.L
XOR
NOT
OR
MOV.L
Verify_OK
ADD.L
ADD.L
CMP/PL
BT
;
MOV.L
AND.B
Wait_8 SUBC
BF
;
CMP/PL
BF
ADD
MOV.L
MOV.L
CMP/EQ
BT
BRA
NOP
Program_OK
MOV.L
Program_end
MOV.B
R11,@R3
#Wait2u,R7
R2,R7
Wait_7
; Reprogram data RAM (PdataBuff) initialization
; Wait 2 μs
@R12+,R7
@R1+,R8
R7,R8
Verify_OK
#1,R10
R8,R7
R7,R7
R7,R8
R8,@R3
.EQU
$
#4,R3
#-1,R13
R13
VerifyLoop
; Verify
; Verify NG, m <- 1
; Program data computation
; Store in reprogram data RAM (PdataBuff)
#Wait4u,R7
#PVCLEAR,@(R0,GBR)
R2,R7
Wait_8
; Clear PV
; Wait 4 μs
R10
Program_OK
#1,R9
#NG,R7
#MAXVerify,R12
R9,R12
Program_end
Program_loop
; if m=0 then GOTO Program_OK
; R7 <- NG (return value)
; if n>=MAXVerify then Program NG
.EQU
$
#OK,R7
.EQU
$
#H'00,R0
; R7 <- OK (return value)
Rev.5.00 Sep. 27, 2007 Page 516 of 716
REJ09B0398-0500