Fujitsu MB90460 Series Hardware Manual page 630

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

DATA ENDS
;///////////////////////////////////////////////////////////////
;Main program (SA1)
;///////////////////////////////////////////////////////////////
CODE CSEG
START:
;//////////////////////////////////////////////////////
;Initialization
;//////////////////////////////////////////////////////
MOV
MOV
MOV
MOV
MOVW
MOVW
MOV
MOV
MOV
MOV
MOV
MOV
MOV
;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
;The flash memory write/erase program (FFBC00H) is transferred to RAM (1500H address).
;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MOVW
MOVW
MOVW
MOVS
CALLP
;/////////////////////////////////////////////////////
;Data output
;/////////////////////////////////////////////////////
OUT
MOV
MOV
MOVW
MOVW
MOV
END
JMP
CODE
ENDS
;///////////////////////////////////////////////////////////////////
; Flash program write/erase program (SA2)
;///////////////////////////////////////////////////////////////////
RAMPRG
CSEG
ORG
;
////////////////////////////////////////////
;
Initialization
;
////////////////////////////////////////////
MOVW
MOVW
MOV
MOV
MOV
MOV
CKSCR,#0BAH
RP,#0
A,#!STA_T
SSB,A
A,#STA_T
SP,A
ROMM,#00H
PDR0,#00H
DDR0,#0FFH
PDR1,#00H
DDR1,#00H
PDR2,#00H
DDR2,#0FFH
A,#0700H
A,#0BC00H
RW0,#100H
ADB,PCB
000700H
A,#0FEH
ADB,A
RW2,#0000H
A,@RW2+00
PDR2,A
*
ABS=0FFH
0BC00H
RW0,#0500H
RW2,#0000H
A,#00H
DTB,A
A,#0FFH
ADB,A
CHAPTER 23 512K / 1024K BIT FLASH MEMORY
;Set a frequency multiplier of three.
;Mirror OFF
;For error check
;Data input port
;Data output port
;Destination RAM area
;Source address (location of program)
;Number of bytes of data transferred to RAM
;Transfer 100
from FFBC00
H
;Jump to the address where the transferred program
;exists.
;RW0: Reserve RAM space for input area
00:0500 to
;RW2: Flash memory write address
FF:0000 to
;DTB modification
;Bank specification for @RW0
;ADB modification 1
;Bank specification for write mode specification
;address
to 000700
.
H
H
611

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents