Fujitsu MB90390 Series Hardware Manual page 616

Table of Contents

Advertisement

CHAPTER 28 3M-BIT FLASH MEMORY
;/////////////////////////////////////////////////////////////
;Main program (FFA000H)
;/////////////////////////////////////////////////////////////
CODE
CSEG
START:
;
/////////////////////////////////////////////////////
;
Initialization
;
/////////////////////////////////////////////////////
MOV
MOV
MOV
MOV
MOVW
MOVW
MOV
MOV
MOV
MOV
MOV
MOV
MOV
;
//////////////////////////////////////////////////////////////
;
Transfer of "Flash write erase program (FF8000H)" to RAM (1500H address)
;
//////////////////////////////////////////////////////////////
MOVW
MOVW
MOVW
MOVS
CALLP
;
;
/////////////////////////////////////////////////////
;
Data output
;
/////////////////////////////////////////////////////
OUT
MOV
MOV
MOVW
MOVW
MOV
END
JMP
CODE
ENDS
;////////////////////////////////////////////////////////////
;Flash write erase program (SA6)
;////////////////////////////////////////////////////////////
RAMPRG
CSEG
ORG
;
////////////////////////////////////////////
Initialization
;
////////////////////////////////////////////
MOVW
MOVW
MOV
MOV
MOV
MOV
;
MOV
MOV
;
WAIT1
BBC
;
588
CKSCR,#0BAH
;3-multiple setting
RP,#0
A,#!STA_T
SSB,A
A,#STA_T
SP,A
ROMM,#00H
;Mirror OFF
PDR0,#00H
;For error check
DDR0,#0FFH
PDR1,#00H
;Port for data input
DDR1,#00H
PDR2,#00H
;Port for data output
DDR2,#0FFH
A,#1500H
;Transfer destination RAM area
A,#08000H
;Transfer source address (program position)
RW0,#100H
;Number of bytes to be transferred
ADB,PCB
;Transfer of 100H from FF8000H to 001500H
001500H
;Jump to the address containing the transferred
program
A,#0F9H
ADB,A
RW2,#0000H
A,@RW2+00
PDR2,A
*
ABS=0FFH
0BC00H
RW0,#0500H
;RW0:RAM space for input data acquisition
RW2,#0000H
;RW2:Flash memory write address
A,#00H
;DTB modification
DTB,A
;Bank specification for @RW0
A,#0F9H
;ADB modification 1
ADB,A
;Bank specification for write mode specification
address
PDR3,#00H
;Switch initialization
DDR3,#00H
PDR3:0,WAIT1
;PDR3: 0(write start at high level)
From 00:0500
From F9:0000

Advertisement

Table of Contents
loading

Table of Contents