AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 51

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
What are all the
interrupt vector
numbers for the
MC9S08GB60?
Where are header
files located?
Should I use bit
fields or masks for
bit manipulation?
How does the
compiler use
page 0?
MOTOROLA
The following define statements include ALL the interrupt vectors of the
MC9S08GB60.
Basically, there are two types of header files used within C:
System header files are located within the Metrowerks CodeWarrior
directories; for the HCS08, they are located in the directory “CodeWarrior
CW08_V3.0\lib\HC08c\include”.
User header files are normally located within a sub-directory of the project
directory (for example, Sources or headers). User headers are made available
to the user by adding them to the project.
Metrowerks CodeWarrior will use bit field instructions (bit set, clear,
test/branch) for bit field data or simple mask operations on data within page 0.
For memory other than page 0, the compiler translates bit field operations to bit
mask operations.
Most registers are defined within page 0, and the compiler will utilize direct
addressing wherever possible when using the peripheral registers. The linker
files generated for a device do not use page 0 by default (unless the device only
has RAM in page 0). The default will allocate variables in extended memory.
#define Vreset
#define Vswi
#define Virq
#define Vlvd
#define Vicg
#define Vtpm1ch0
#define Vtpm1ch1
#define Vtpm1ch2
#define Vtpm1ovf
#define Vtpm2ch0
#define Vtpm2ch1
#define Vtpm2ch2
#define Vtpm2ch3
#define Vtpm2ch4
#define Vtpm2ovf
#define Vspi
#define Vsci1err
#define Vsci1rx
#define Vsci1tx
#define Vsci2err
#define Vsci2rx
#define Vsci2tx
#define Vkeyboard
#define Vatd
#define Viic
#define Vrti
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
System - placed within angled brackets (< and >)
User - placed within double quotes (")
Go to: www.freescale.com
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
0
1
2
3
4
5
6
7
8
9
Frequently Asked Questions
AN2616
51

Related parts for AN2616