
Section 6 ROM
Rev. 6.00 Sep 12, 2006 page 138 of 526
REJ09B0326-0600
CMP.W
R2,
R3 ;
Last address in block?
BNE
EVR2
;
BRA
OKEND
;
RERASE: BCLR
#3,
@FLMCR:8 ;
Clear EV bit
SUBS
#1,
R3 ;
Erase-verify address – 1
→
R3
MOV.W
#H'0004,
R4 ;
CMP.W
R4,
R6 ;
Erase-verify fail count = 4?
BPL
BRER
;
If R6
≥
4. branch to BRER (branch until R6 = 4 – 602)
ADD.W
R5,
R5 ;
If R6 < 4, double erase time (executed only for R6 = 1, 2, 3)
BRER: MOV.W
#H'025A,
R4 ;
CMP.W
R4,
R6 ;
Erase-verify executed 602 times?
BNE
ERASE
;
If erase-verify not executed 602 times, erase again
BRA
ABEND2
;
If erase-verify executed 602 times, branch to ABEND2
OKEND: BCLR #3,
@FLMCR:8 ;
Clear EV bit
MOV.B
#H'00,
R6L
;
MOV.B
R6L,
@EBR*:8
;
Clear EBR
*
One block erased
ABEND2:
Erase error
Summary of Contents for F-ZTAT H8/3642A Series
Page 6: ...Rev 6 00 Sep 12 2006 page iv of xx ...
Page 8: ...Rev 6 00 Sep 12 2006 page vi of xx ...
Page 22: ...Rev 6 00 Sep 12 2006 page xx of xx ...
Page 124: ...Section 5 Power Down Modes Rev 6 00 Sep 12 2006 page 102 of 526 REJ09B0326 0600 ...
Page 188: ...Section 6 ROM Rev 6 00 Sep 12 2006 page 166 of 526 REJ09B0326 0600 ...
Page 190: ...Section 7 RAM Rev 6 00 Sep 12 2006 page 168 of 526 REJ09B0326 0600 ...
Page 298: ...Section 9 Timers Rev 6 00 Sep 12 2006 page 276 of 526 REJ09B0326 0600 ...
Page 378: ...Section 12 A D Converter Rev 6 00 Sep 12 2006 page 356 of 526 REJ09B0326 0600 ...
Page 446: ...Section 13 Electrical Characteristics Rev 6 00 Sep 12 2006 page 424 of 526 REJ09B0326 0600 ...