Table of Contents Previous topic Next topic
Overview->Redirection of Interrupt Vectors
Since the debug monitor is located at address zero upwards, it occupies all of the space allocated to the microcontrollers interrupt vectors. It needs to handle the interrupts for the UART and step timer with it's own subroutines. All other interrupts are be passed on the the users program.
Interrupts are passed to the users program by jump instructions that are located in startup.asm.
The Crossware C compiler will automatically generate interrupt vector code. By default it assumes that the vectors will start at address zero. However, you can change this default using a compiler option. Select Build->Settings->Compiler from within the Embedded Development Studio. The item Interrupt Vector Offset specifies an offset that will be applied to any interrupt vector handling code that the compiler generates.