Fujitsu F2MC-8FX Series Application Note - Page 9

Browse online or download pdf Application Note for Motherboard Fujitsu F2MC-8FX Series. Fujitsu F2MC-8FX Series 12 pages. 8-bit microcontroller
Also for Fujitsu F2MC-8FX Series: Operation Manual (20 pages), Application Note (23 pages), Setup Manual (18 pages), Setup Manual (19 pages), Setup Manual (30 pages), Application Note (20 pages), Application Note (21 pages), Operation Manual (21 pages), Setup Manual (23 pages), User Manual (24 pages), Setup Manual (17 pages)

Fujitsu F2MC-8FX Series Application Note
//Begin of actual code section
//========================================================
//The Mode Byte is defined at the beginning of the start.asm
.SECTION
; code area
.SECTION
__start:
; set stack pointer
MOVW
MOVW
// Set Register bank Pointer 0 / set Direct bank Pointer 0 (0x80..0xFF)
MOVW
MOVW
ANDW
MOVW
// Set ILM to the lowest level(3)
MOVW
MOVW
ORW
MOVW
MOV
AND
OR
MOV
// call main routine
CALL
end:
JMP
.END
DBG pin operation V1.0
Chapter 5 Sample code
RESVECT, CONST, LOCATE=H'FFFD
.DATA.B
0
.DATA.W
__start
CODE,
CODE,
A
,
#STACK_TOP
SP
,
A
A
,
PS
A
,
#0x00BF
A
PS ,
A
A
,
PS
A
,
#0x0030
A
PS ,
A
A
,
0X0FE4
A
,
#0X9F
A
,
#0X60
0X0FE4 , A
_main
end
__start
MCU-AN-500009-E-10 – Page 9
ALIGN=1
// RP=0, DP=0, I=0
// READ CRTH
//CLEAR CRTH[6:5]
// 10MHz,
0X00: 1MHz
//0X20: 12.5MHz
// 0X40: 10MHz
// WRITE SYSC
0X60: 8MHz