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 bit (nameIE) in the peripheral's Interrupt Control register (peripheral.INTCTRL).
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 | Peripheral Source | Definition |
---|---|---|
0 | RESET | RESET |
1 | CRCSCAN_NMI | NMI - Non-Maskable Interrupt from CRC |
2 | BOD_VLM | VLM - Voltage Level Monitor |
3 | PORTA_PORT | PORTA - Port A |
4 | PORTB_PORT | PORTB - Port B |
5 | PORTC_PORT | PORTC - Port C |
6 | RTC_CNT | RTC - Real-Time Counter |
7 | RTC_PIT | PIT - Periodic Interrupt Timer (in RTC peripheral) |
8 | TCA0_LUNF/TCA0_OVF | TCA0 - Timer Counter Type A, LUNF/OVF |
9 | TCA0_HUNF | TCA0, HUNF |
10 | TCA0_LCMP0/TCA0_CMP0 | TCA0, LCMP0/CMP0 |
11 | TCA0_LCMP1/TCA0_CMP1 | TCA0, LCMP1/CMP1 |
12 | TCA0_CMP2/TCA0_LCMP2 | TCA0, LCMP2/CMP2 |
13 | TCB0_INT | TCB0 - Timer Counter Type B |
14 | TCD0_OVF | TCD0 - Timer Counter Type D, OVF |
15 | TCD0_TRIG | TCD0, TRIG |
16 | AC0_AC | AC0 – Analog Comparator |
17 | ADC0_RESRDY | ADC0 – Analog-to-Digital Converter, RESRDY |
18 | ADC0_WCOMP | ADC0, WCOMP |
19 | TWI0_TWIS | TWI0 - Two-Wire Interface/I2C, TWIS |
20 | TWI0_TWIM | TWI0, TWIM |
21 | SPI0_INT | SPI0 - Serial Peripheral Interface |
22 | USART0_RXC | USART0 - Universal Asynchronous Receiver-Transmitter, RXC |
23 | USART0_DRE | USART0, DRE |
24 | USART0_TXC | USART0, TXC |
25 | NVMCTRL_EE | NVM - Nonvolatile Memory |