English
Language : 

HD64F3337YCP16V Datasheet, PDF (499/749 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
HANTEI: BCLR
MOV.W
BEQ
#3,
R0,
EOWARI
@FLMCR:8 ;
Clear EV bit
@EBR1 ;
; If EBR1/EBR2 is all 0, erasing ended normally
BRER:
MOV.W
CMP.W
BPL
ADD.W
MOV.W
CMP.W
BNE
BRA
#H'0004, R4
R4
R6
BRER
R5
R5
#H'025A, R4
R4,
R6
ERASE1
ABEND2
;
; Erase-verify fail count executed 4 times?
; If R6 ≥ 4, branch to BRER (branch until R6 is 4 to 602)
; If R6 < 4, Erase time × 2 (execute when R6 is 1, 2, or 3)
;
; Erase-verify executed 602 times?
; If erase-verify not executed 602 times, erase again
; If erase-verify executed 602 times, branch to ABEND2
;———< Block address table used in erase-verify> ———
.ALIGN 2
ERVADR: .DATA.W H'0000
; SB0
.DATA.W H'0080
; SB1
.DATA.W H'0100
; SB2
.DATA.W H'0180
; SB3
.DATA.W H'0200
; SB4
.DATA.W H'0400
; SB5
.DATA.W H'0800
; SB6
.DATA.W H'0C00
; SB7
.DATA.W H'1000
; LB0
.DATA.W H'2000
; LB1
.DATA.W H'4000
; LB2
.DATA.W H'6000
; LB3
.DATA.W H'8000
; LB4
.DATA.W H'A000
; LB5
.DATA.W H'C000
; LB6
.DATA.W H'EF80
; LB7
.DATA.W H'F780
; FLASH END
EOWARI: Erase end
ABEND2: Erase error
Loop Counter Values in Programs and Watchdog Timer Overflow Interval Settings: The
setting of #a, #b, #c, #d, and #e values in the programs depends on the clock frequency. Tables
20.9 (1) and (2) indicate sample loop counter settings for typical clock frequencies. However, #e is
set according to table 20.10.
As a software loop is used, calculated values including percent errors may not be the same as
actual values. Therefore, the values are set so that the total programming time and total erase time
do not exceed 1 ms and 30 s, respectively.
The maximum number of writes in the program, N, is set to 6.
467