Fujitsu F2MC-16LX Hardware Manual page 384

Mb90550a/b series, 16-bit
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 23 1M-BIT FLASH MEMORY
;////////////////////////////////////////////////////////////
;FLASH write deletion program (SA4)
;////////////////////////////////////////////////////////////
RAMPRG
;
;
;
;
WAIT1
;
;////////////////////////////////////////////////
; Writing(SA0)
;////////////////////////////////////////////////
WRITE
;
;
;
;
;
;
;
NTOW
368
CSEG
ABS=0FFH
ORG
0BC00H
////////////////////////////////////////////
Initialization
////////////////////////////////////////////
MOVW
RW0,#0500H
MOVW
RW2,#0000H
MOV
A,#00H
MOV
DTB,A
MOV
A,#0FEH
MOV
ADB,A
MOV
PDR3,#00H
MOV
DDR3,#00H
BBC
PDR3:0,WAIT1
MOV
A,PDR1
MOVW
@RW0+00,A
MOV
FMCS,#20H
MOVW
ADB:COMADR1,#00AAH
MOVW
ADB:COMADR2,#0055H
MOVW
ADB:COMADR1,#00A0H
MOVW
A,@RW0+00
MOVW
@RW2+00,A
////////////////////////////////////////////////////////////
Error when the time limit excess check flag is set and the
toggle operation is ongoing
////////////////////////////////////////////////////////////
MOVW
A,@RW2+00
AND
A,#20H
BZ
NTOW
MOVW
A,@RW2+00
MOVW
A,@RW2+00
XORW
A
AND
A,#40H
BNZ
ERROR
///////////////////////////////////////
Write end check (FMCS-RDY)
///////////////////////////////////////
MOVW
A,FMCS
AND
A,#10H
;RW0:
RAM space for input data
;acquisition
;RW2:
Flash memory writing address
;
;DTB change
;@RW0 bank specification
;ADB change 1
;Specification of the bank for the
;write mode specification address
;Switch initialization
;PDR3:0
Start of writing with Hi
;Allocation of PDR1 data in
;the RAM
;Write mode setting
;Flash write command 1
;Flash write command 2
;Flash write command 3
;
;Writing of input data (RW0)
;into the flash memory (RW2)
;Wait time check
;DQ5 time limit check
;Time limit over
;AH
;AL
;XOR of AH and AL (1 if the
;value is different)
;Is the DQ6 toggle bit
;different?
;If
it is different, go to
;ERROR.
;Extraction of the FMCS RDY
00:0500 to
FD:0000 to

Advertisement

Table of Contents
loading

Table of Contents