AN2292 Freescale Semiconductor / Motorola, AN2292 Datasheet - Page 6

no-image

AN2292

Manufacturer Part Number
AN2292
Description
8-Bit Software Development Kit
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2292
Interrupts
Quick Start with the 8-Bit SDK
Install the 68HC08
SDK
6
The 8-bit SDK supports two types of interrupt callbacks.
The SDK interrupt service routine provides service of the interrupt according to
its definition. It clears the interrupt flags, so you do not have to worry about the
interrupt flags in your code. The SDK drivers can call the user’s interrupt routine
automatically. For more detail, check the appropriate driver documentation. An
example of an SDK driver is the analog-to-digital converter (ADC) driver. The
driver starts the ADC and when the conversion is completed, it buffers the
converted input and starts the conversion again for the following ADC channel.
In this example, the service of the interrupt “Conversion Completed” is served
automatically by the SDK.
On the other hand, most of the low-level interrupt drivers only clear the interrupt
flags. You can disable clearing of the flags.
This section describes the installation and use of the individual components of
the 8-bit SDK from a practical point of view. This example is for Metrowerks
CodeWarrior.
Before the 8-bit SDK can be used, it needs to be installed on your PC. For
installation of the 8-bit SDK you need to:
1. Execute Setup.exe.
2. Follow the 68HC08 SDK software installation instructions on your
3. Copy the 8-bit SDK stationery to the Metrowerks stationery folder.
4. Set the path to the 68HC08 SDK source within IDE.
Freescale Semiconductor, Inc.
For More Information On This Product,
Type 1 first calls the user function and then the SDK interrupt service
routine.
Type 2 first calls the SDK interrupt service routine and then the user
function.
screen.
a.
b.
c.
d.
e.
f.
g.
h.
Launch CodeWarrior IDE from the Start->Programs->Metrowerks
CodeWarrior menu.
Open the IDE Preferences dialog window using Edit->Preferences.
Select the Source Trees panel from the IDE Preferences
Panels->General.
Type 68HC08 SDK src into the Name box.
Choose Absolute Path as the path type.
Click Choose and locate the 68HC08 SDK installation directory, e.g.
C:\Program Files\Motorola\68HC08 SDK\src.
Click Add.
Click OK to finish.
8-Bit Software Development Kit
Go to: www.freescale.com
MOTOROLA

Related parts for AN2292