Fujitsu F2MC-8FX Series Nota applicativa - Pagina 8

Sfoglia online o scarica il pdf Nota applicativa per Scheda madre Fujitsu F2MC-8FX Series. Fujitsu F2MC-8FX Series 12. 8-bit microcontroller
Anche per Fujitsu F2MC-8FX Series: Manuale operativo (20 pagine), Nota applicativa (23 pagine), Manuale di configurazione (18 pagine), Manuale di configurazione (19 pagine), Manuale di configurazione (30 pagine), Nota applicativa (20 pagine), Nota applicativa (21 pagine), Manuale operativo (21 pagine), Manuale di configurazione (23 pagine), Manuale d'uso (24 pagine), Manuale di configurazione (17 pagine)

Fujitsu F2MC-8FX Series Nota applicativa

5 Sample code

Start.asm
//==================================================================
// F2MC-8L Family SOFTUNE C Compiler sample startup routine,
//ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 1986
// LICENSED MATERIAL - PROGRAM PROPERTY OF FUJITSU LIMITED
//==================================================================
//Sample code for initialization
//-----------------------------------------------------------------------
.PROGRAM
.TITLE
// Settings
#set
#set
# set
//Clock Mode Selection
# set
# set
//DIV Clock Selection (Machine clock division ratio)
# set
# set
# set
# set
// external declaration of symbols
.EXPORT
.IMPORT
//definition to stack area
.SECTION
.RES.B
STACK_TOP:
.RES.B
//========= ===============================================
// Start-Up Code
//=======================================================
//
___
_____
//
/
|
/
//
\___
|
|
//
\
|
|----| |
//
___/
|
|
DBG pin operation V1.0
Chapter 5 Sample code
start
start
OFF
ON
STACKSIZE
SUB
MAIN
CLK_0
CLK_4
CLK_8
CLK_16
__start
_main
STACK,
STACK,
STACKSIZE
2
__
___
_____
\
|
\
|
| |___/
|
\
|
| |
\
|
MCU-AN-500009-E-10 – Page 8
0
1
64
// Stack size
0
//Sub clock mode
2
// Main clock mode
0
// Original oscillator div 1
1
// Original oscillator div 4
2
//Original oscillator div 8
3
//Original oscillator div 16
ALIGN=1