Sample Code - Fujitsu MB95210H Series Application Note

8-bit microcontroller, how to use dbg pin
Hide thumbs Also See for MB95210H Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95200h seriesF2mc-8fx series

Table of Contents