English
Language : 

HD64F3642AHV Datasheet, PDF (153/551 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
BSET #0,
LOOP1: SUBS #1,
MOV.W R4,
BNE LOOP1
BCLR #0,
MOV.B #H'50,
MOV.B R4L,
@FLMCR:8 ; Set P bit
R4
;
R4
;
; Wait loop
@FLMCR:8 ; Clear P bit
R4L
;
@TCSRW:8 ; Stop watchdog timer
Section 6 ROM
MOV.B #H'b, R4H
;Set program-verify fail counter
BSET #2,
@FLMCR:8 ; Set PV bit
LOOP2: DEC
BNE
R4H
LOOP2
;
; Wait loop
MOV.B @R3,
R1L
; Read programmed data
CMP.B R1H,
R1L
; Compare programmed data with read data
BEQ PVOK
; Program-verify decision
BCLR #2, @FLMCR:8 ; Clear PV bit
CMP.B #H'06, R6L
BEQ NGEND
ADD.W R5, R5
BRA PRGMS
; Program-verify executed 6 times?
; If program-verify executed 6 times, branch to NGEND
; Double programming time
; Program again
PVOK: BCLR #2, @FLMCR:8 ; Clear PV bit
MOV.B #H'00,
MOV.B R6L,
R6L
;
@EBR*:8 ; Clear EBR*
One byte programmed
NGEND: Programming error
Rev. 6.00 Sep 12, 2006 page 131 of 526
REJ09B0326-0600