PIC16F15256 interrupt vectors
Reset at 0x0000 and one interrupt vector at 0x0004 for every source: the handler checks each source's flag. 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 | 0x0004 | INTERRUPT | __interrupt() | All interrupts, address 0x0004. Sources: IOC, TMR0, AD, SSP1, BCL1, TX1, RC1, TMR1, TMR2, CCP1, TMR1G, NVM, CCP2 |