Giacomo Petrini

MC9S08SG4 and interrupts

Discussion created by Giacomo Petrini on Apr 16, 2008
Latest reply on Apr 17, 2008 by Giacomo Petrini
Hello,
I'm porting a old program made for QY4 to the new SG4 chip.
I'm using CW6.1 without Processor Expert.

The question is:
how can I declare ISR (in C, no assembly, no PE)?

for QY it was something like:

#pragma TRAP_PROC
void ADC_Isr(void)
{
//code
}

and in the linker.prm the isr is declared like this:

VECTOR 16 ADC_Isr

For the SG4 I found no examples, and in the mc9s08sg4.h I found some #define that could be useful, but I've no idea how to use them.

Any help?

Thanks

Bye Jack

Outcomes