AnsweredAssumed Answered

Interrupt Function Vector Table Allocation

Question asked by [hiper] on Aug 30, 2013
Latest reply on Sep 4, 2013 by ZhangJennie

Hello everyone!


I am using CW V4.6 for HCS12(X) and I wanted to ask some questions about the syntax for the Interrupt vector table allocation in the interrupt function definition/declaration.


1º: Does the Interrupt Vector Number have to be in the definition AND in the declaration? Or only in the declaration?

2º What is the syntax with that number? In the documentation it says that is only a number, but does this structure work? e.g

#define INTVEC_START 0

interrupt (INTVEC_START + 0x00) void random_interrupt(void);


Thanks in advance.


Best regards,