11.10 Interrupt Vector Tables [DD]
dsPIC30F/33F DSC devices have two interrupt vector tables - a primary and an alternate table, each containing exception vectors, as well as a RESET instruction at location zero. By convention, the linker initializes the RESET instruction and interrupt vector tables automatically, using information provided in the standard linker scripts.
The MPLAB XC-DSC compiler provides a special syntax for writing interrupt handlers. See the MPLAB® XC-DSC C Compiler User’s Guide (DS-50003589) for more information.
Assembly language programmers can install interrupt handlers simply by
following the standard naming conventions. Interrupt handlers declared with the standard
names and defined as globals are automatically installed into the vector
tables.
By convention, the entry point named __reset takes
control at device Reset. All applications written in assembly language must include a Reset
function with this name. For C programs, the Reset function is provided in libpic30, which
initializes the C run-time environment.
__DefaultInterrupt. In C the name is
_DefaultInterrupt.If the application does not
provide a default interrupt handler, the linker will create one in section
.isr that contains a reset instruction. Creation of a default
interrupt handler by the linker may be suppressed with the --no-isr
option. In that case unused slots in the interrupt vector tables will be filled with
zeros.
