Fujitsu MB90460 Series Hardware Manual page 632

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

MOVW
ELS
;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;
When the "time-limit-exceeded" check flag is set and toggling is on, branches to ERROR.
;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MOVW
AND
BZ
MOVW
MOVW
XORW
AND
BNZ
;
////////////////////////////////////////////////
;
Erase-end check (FMCS-RDY)
;
////////////////////////////////////////////////
NTOE
MOVW
AND
BZ ELS
MOV
RETP
;//////////////////////////////////////////////
; Error
;//////////////////////////////////////////////
ERROR
MOV
MOV
MOV
RETP
RAMPRG ENDS
;/////////////////////////////////////////////
VECT
CSEG
ORG
DSL
DB
VECT
ENDS
;
END START
@RW2+00,#0030H
A,@RW2+00
A,#20H
NTOE
A,@RW2+00
A,@RW2+00
A
A,#40H
ERROR
A,FMCS
A,#10H
FMCS,#00H
ADB:COMADR1,#0F0H
FMCS,#00H
PDR0,#0FFH
ABS=0FFH
0FFDCH
START
00H
CHAPTER 23 512K / 1024K BIT FLASH MEMORY
;Issuing the erase command to the sector to be erased. 6
; Wait-time check
;DQ5 time limit check
;Time limit exceeded
;AH From DQ6 during writing
;AL Hi and Low are output alternately by each read.
;XOR of AH and AL (If the DQ6 value is toggled,
XOR is 1, indicating that writing is in progress.)
;Checks whether the DQ6 toggle bit is Hi.
;If the bit is Hi, branches to ERROR
;
;FMCS RDY bit (4 bit) is extracted.
;Verifies that erasing of the sector has ended.
;Flash memory erase mode is released.
;Returns to the main program.
;Reset command (enabling data reading)
;Flash command mode is released.
;Confirmation of error processing.
;Returns to the main program.
613

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents