AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 52
AN2616
Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2616.pdf
(62 pages)
- Current page: 52 of 62
- Download datasheet (2Mb)
AN2616
How can I force a
variable to reside in
page 0?
How do I disable the
watchdog?
Problems with
variable, structure,
or type definition?
52
NOTE:
To instruct the linker to allocate storage for variables in page 0, enclose the
declarations within the following #pragma statements in the file where the
variable is declared (for example, main.c):
For example:
The first #pragma statement instructs the compiler to allocate data from this
point on in the short segment (page 0), MY_ZEROPAGE is the default data
segment used within the linker file.
The second #pragma statement instructs the compiler to return to the default
data section for allocation of subsequent variables.
Segment names assume default project and linker configuration used.
It may be necessary to disable the watchdog whilst debugging code, or an
application may not require it.
To disable the watchdog, simply clear the COPE bit in the SOPT register as
follows:
Occasionally, CodeWarrior will not have the correct definition for a variable, a
structure type or a macro definition, for example. This may be due to
CodeWarrior’s cached definition; it can normally be rectified by clearing all
object code from a project and rebuilding:
#pragma DATA_SEG __SHORT_SEG MY_ZEROPAGE
/*Page 0 data declarations go here*/
#pragma DATA_SEG DEFAULT
#pragma DATA_SEG __SHORT_SEG MY_ZEROPAGE
byte p0i, p0j;
#pragma DATA_SEG DEFAULT
SOPT_COPE = 0;
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
Related parts for AN2616
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola