8.2 Alternate Interrupt Vector Table
The Alternate Interrupt Vector Table (AIVT), shown in Figure 8-2,
is available only when the Boot Segment (BS) is defined and the AIVT has been enabled.
To enable the Alternate Interrupt Vector Table, the Configuration bit, AIVTDIS in the
FSEC register, must be programmed and the AIVTEN bit must be set (INTCON2[8] =
1
). When the AIVT is enabled, all interrupt and exception processes
use the alternate vectors instead of the default vectors. The AIVT begins at the start
of the last page of the Boot Segment, defined by BSLIM[12:0]. The second half of the
page is no longer usable space. The Boot Segment must be at least two pages to enable
the AIVT.
- The address depends on the size of the Boot Segment defined by BSLIM[12:0]: [(BSLIM[12:0] – 1) x 0x800] + Offset.
- In Dual Partition modes, each partition has a dedicated Alternate Interrupt Vector Table (if enabled).
- See Table 8-1.
The AIVT supports debugging by providing a means to switch between an application and a support environment without requiring the interrupt vectors to be reprogrammed. This feature also enables switching between applications for evaluation of different software algorithms at run time.