PIC18C452 interrupt vectors
Reset at 0x0000, then two interrupt vectors: high priority at 0x0008 and low priority at 0x0018 (with IPEN set; otherwise every source uses 0x0008). Each source has an enable bit and a flag (the Registers page lists them). In XC8 a handler is void __interrupt() isr(void).
| Vector | Program address | Name | Handler | Source |
|---|---|---|---|---|
| 0 | 0x0000 | RESET | reset: main() after start-up | Reset vector, address 0x0000 |
| 1 | 0x0008 | HIGH_PRIORITY | __interrupt(high_priority) | High-priority interrupts, address 0x0008. Sources: TMR1, TMR2, CCP1, SSP, TX, RC, AD, PSP, CCP2, TMR3, LVD, BCL, INT1, INT2, RB, INT0, TMR0 |
| 2 | 0x0018 | LOW_PRIORITY | __interrupt(low_priority) | Low-priority interrupts (IPEN set), address 0x0018 |