7.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 | 0x02 | CRCSCAN_NMI | NMI - Non-Maskable Interrupt from CRC |
2 | 0x04 | BOD_VLM | VLM - Voltage Level Monitor |
3 | 0x06 | PORTA_PORT | PORTA - Port A |
4 | 0x08 | PORTB_PORT | PORTB - Port B |
5 | 0x0A | PORTC_PORT | PORTC - Port C |
6 | 0x0C | RTC_CNT | RTC - Real-Time Counter |
7 | 0x0E | RTC_PIT | PIT - Periodic Interrupt Timer (in RTC peripheral) |
8 | 0x10 | TCA0_LUNF/TCA0_OVF | TCA0 - Timer Counter Type A, LUNF/OVF |
9 | 0x12 | TCA0_HUNF | TCA0, HUNF |
10 | 0x14 | TCA0_LCMP0/TCA0_CMP0 | TCA0, LCMP0/CMP0 |
11 | 0x16 | TCA0_LCMP1/TCA0_CMP1 | TCA0, LCMP1/CMP1 |
12 | 0x18 | TCA0_CMP2/TCA0_LCMP2 | TCA0, LCMP2/CMP2 |
13 | 0x1A | TCB0_INT | TCB0 - Timer Counter Type B |
14 | 0x1C | TCB1_INT | TCB1 - Timer Counter Type B |
15 | 0x1E | TCD0_OVF | TCD0 - Timer Counter Type D, OVF |
16 | 0x20 | TCD0_TRIG | TCD0, TRIG |
17 | 0x22 | AC0_AC | AC0 – Analog Comparator |
18 | 0x24 | AC1_AC | AC1 – Analog Comparator |
19 | 0x26 | AC2_AC | AC2 – Analog Comparator |
20 | 0x28 | ADC0_RESRDY | ADC0 – Analog-to-Digital Converter, RESRDY |
21 | 0x2A | ADC0_WCOMP | ADC0, WCOMP |
22 | 0x2C | ADC1_RESRDY | ADC1 – Analog-to-Digital Converter, RESRDY |
23 | 0x2E | ADC1_WCOMP | ADC1, WCOMP |
24 | 0x30 | TWI0_TWIS | TWI0 - Two-Wire Interface/I2C, TWIS |
25 | 0x32 | TWI0_TWIM | TWI0, TWIM |
26 | 0x34 | SPI0_INT | SPI0 - Serial Peripheral Interface |
27 | 0x36 | USART0_RXC | USART0 - Universal Asynchronous Receiver-Transmitter, RXC |
28 | 0x38 | USART0_DRE | USART0, DRE |
29 | 0x3A | USART0_TXC | USART0, TXC |
30 | 0x3C | NVMCTRL_EE | NVM - Nonvolatile Memory |