8.2 Interrupt Vector Mapping
Each of the interrupt vectors is connected to one peripheral instance, as shown in the table below. A peripheral can have one or more interrupt sources, see the Interrupt section in the Functional Description of the respective peripheral for more details on the available interrupt sources.
When the Interrupt condition occurs, an Interrupt flag (nameIF) is set in the Interrupt Flags register of the peripheral (peripheral.INTFLAGS).
An interrupt is enabled or disabled by writing to the corresponding Interrupt Enable (nameIE) bit in the peripheral's Interrupt Control (peripheral.INTCTRL) register.
The naming of the registers may vary slightly in some peripherals.
An interrupt request is generated when the corresponding interrupt is enabled, and the interrupt flag is set. The interrupt request remains Active until the Interrupt flag is cleared. See the peripheral's INTFLAGS register for details on how to clear interrupt flags.
Interrupts must be enabled globally for interrupt requests to be generated.Vector Number | Program Address (word) | Peripheral Source | Description |
---|---|---|---|
0 | 0x00 | RESET | RESET |
1 | 0x01 | CRCSCAN_NMI | NMI - Non-Maskable Interrupt from CRC |
2 | 0x02 | BOD_VLM | VLM - Voltage Level Monitor |
3 | 0x03 | PORTA_PORT | PORTA - Port A |
4 | 0x04 | PORTB_PORT | PORTB - Port B(1) |
5 | 0x05 | PORTC_PORT | PORTC - Port C(1) |
6 | 0x06 | RTC_CNT | RTC - Real-Time Counter |
7 | 0x07 | RTC_PIT | PIT - Periodic Interrupt Timer (in RTC peripheral) |
8 | 0x08 | TCA0_LUNF/TCA0_OVF | TCA0 - Timer Counter Type A, LUNF/OVF |
9 | 0x09 | TCA0_HUNF | TCA0, HUNF |
10 | 0x0A | TCA0_LCMP0/TCA0_CMP0 | TCA0, LCMP0/CMP0 |
11 | 0x0B | TCA0_LCMP1/TCA0_CMP1 | TCA0, LCMP1/CMP1 |
12 | 0x0C | TCA0_CMP2/TCA0_LCMP2 | TCA0, LCMP2/CMP2 |
13 | 0x0D | TCB0_INT | TCB0 - Timer Counter Type B |
14 | 0x0E | TCD0_OVF | TCD0 - Timer Counter Type D, OVF |
15 | 0x0F | TCD0_TRIG | TCD0, TRIG |
16 | 0x10 | AC0_AC | AC0 – Analog Comparator |
17 | 0x11 | ADC0_RESRDY | ADC0 – Analog-to-Digital Converter, RESRDY |
18 | 0x12 | ADC0_WCOMP | ADC0, WCOMP |
19 | 0x13 | TWI0_TWIS | TWI0 - Two-Wire Interface/I2C, TWIS |
20 | 0x14 | TWI0_TWIM | TWI0, TWIM |
21 | 0x15 | SPI0_INT | SPI0 - Serial Peripheral Interface |
22 | 0x16 | USART0_RXC | USART0 - Universal Asynchronous Receiver-Transmitter, RXC |
23 | 0x17 | USART0_DRE | USART0, DRE |
24 | 0x18 | USART0_TXC | USART0, TXC |
25 | 0x19 | NVMCTRL_EE | NVM - Nonvolatile Memory |
- The availability of the port pins depends on the device pin count. PORTB is available for devices with 14 pins or more. PORTC is available for devices with 20 pins or more.