Fujitsu MB90460 Series Hardware Manual page 631

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 23 512K / 1024K BIT FLASH MEMORY
MOV
MOV
;
WAIT1
BBC
;
;/////////////////////////////////////////////////
; Write (SA0)
;/////////////////////////////////////////////////
MOV
MOVW
MOV
MOVW ADB:COMADR1,#00AAH
MOVW ADB:COMADR2,#0055H
MOVW ADB:COMADR1,#00A0H
;
MOVW
MOVW
WRITE
;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
If the "time-limit-exceeded" check flag is set while toggling is on, branches to ERROR.
;
;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MOVW
AND
BZ
MOVW
MOVW
XORW
AND
BNZ
;
///////////////////////////////////////////////
;
Write-end check (FMCS-RDY)
;
////////////////////////////////////////////////
NTOW
MOVW
AND
BZ
MOV
;/////////////////////////////////////////////////////
; Write data output
;/////////////////////////////////////////////////////
MOVW
MOVW
MOV
;
WAIT2
BBC
;
;/////////////////////////////////////////////
; Erasing sectors (SA0)
;/////////////////////////////////////////////
MOVW
MOV
MOVW
MOVW
MOVW
MOVW
MOVW
612
PDR3,#00H
DDR3,#00H
PDR3:0,WAIT1
A,PDR1
@RW0+00,A
FMCS,#20H
A,@RW0+00
@RW2+00,A
A,@RW2+00
A,#20H
NTOW
A,@RW2+00
A,@RW2+00
A
A,#40H
ERROR
A,FMCS
A,#10H
WRITE
FMCS,#00H
RW2,#0000H
A,@RW2+00
PDR2,A
PDR3:1,WAIT2
@RW2+00,#0000H
FMCS,#20H
ADB:COMADR1,#00AAH
ADB:COMADR2,#0055H
ADB:COMADR1,#0080H
ADB:COMADR1,#00AAH
ADB:COMADR2,#0055H
;Switch initialization
;Writing starts if PDR3:0 Hi.
;PDR1 data is stored in RAM.
;Write mode setting
;Flash write command 1
;Flash write command 2
;Flash write command 3
; Input data (RW0) is written to flash memory (RW2).
; Wait time check
;DQ5 time limit check
;Time limit exceeded
;AH
;AL
;XOR of AH and AL (1 when the values
are different.)
;Checks whether the DQ6 toggle bit is
different.
;If it is different, branches to ERROR
;FMCS RDY bit (4 bit) is extracted.
;Verifies that writing has ended.
;Write mode is released.
;Write data output
;If PDR3:1 Hi, erasing of the sector starts.
;Address initialization
;Erase mode setting
;Flash memory erase command 1
;Flash memory erase command 2
;Flash memory erase command 3
;Flash memory erase command 4
;Flash memory erase command 5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents