AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 53

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
How do I add
interrupt handlers?
MOTOROLA
CodeWarrior supports a number of ways of incorporating interrupts, the most
common methods being
or
and:
#pragma TRAP_PROC
void intSW1(void){
}
interrupt void intSW1(void){
}
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
Use a #pragma TRAP_PROC prior to the interrupt routine and add to the
vector table in the linker.prm file. For example:
Use the keyword “interrupt” and add to the vector table in the linker.prm
file. For example:
Go to: www.freescale.com
Frequently Asked Questions
AN2616
53

Related parts for AN2616