Fujitsu F2MC-16LX Hardware Manual page 383

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

Advertisement

SSTA
SSEG
RW
0127H
STA_T
RW
1
SSTA
ENDS
;
DATA
DSEG
ABS=0FFH
ORG
5554H
COMADR2 RW
1
ORG
0AAAAH
COMADR1 RW
1
DATA
ENDS
;/////////////////////////////////////////////////////////////
;Main program (FFA000
;/////////////////////////////////////////////////////////////
CODE
CSEG
START:
;/////////////////////////////////////////////////////
;Initialization
;/////////////////////////////////////////////////////
MOV
CKSCR,#0BAH
MOV
RP,#0
MOV
A,#!STA_T
MOV
SSB,A
MOVW
A,#STA_T
MOVW
SP,A
MOV
ROMM,#00H
MOV
PDR0,#00H
MOV
DDR0,#0FFH
MOV
PDR1,#00H
MOV
DDR1,#00H
MOV
PDR2,#00H
MOV
DDR2,#0FFH
;///////////////////////////////////////////////////////////
;The FLASH write deletion program (FFBC00
;to the RAM (address 700
;///////////////////////////////////////////////////////////
MOVW
A,#0700H
MOVW
A,#0BC00H
MOVW
RW0,#100H
MOVS
ADB,PCB
CALLP
000700H
;/////////////////////////////////////////////////////
;Data output
;/////////////////////////////////////////////////////
OUT
MOV
A,#0FEH
MOV
ADB,A
MOVW
RW2,#0000H
MOVW
A,@RW2+00
MOV
PDR2,A
END
JMP
*
CODE
ENDS
23.8 Example of the 1M-Bit Flash Memory Program
;FLASH command address
)
H
;Setting to threefold
;Mirror OFF
;For error confirmation
;Data input port
;Data output port
).
H
;Transfer destination RAM area
;Transfer source address (program
;location)
;Number of bytes to be transferred
;100
transfer from FFBC00
H
;000700
;Jump to the address in which the
;transferred program exists
) is transferred
H
H
to
H
367

Advertisement

Table of Contents
loading

Table of Contents