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.
Table 8-2. Interrupt Vector Mapping
Vector NumberPeripheral SourceDefinition
0RESETRESET
1CRCSCAN_NMINMI - Non-Maskable Interrupt from CRC
2BOD_VLMVLM - Voltage Level Monitor
3PORTA_PORTPORTA - Port A
4PORTB_PORTPORTB - Port B
5PORTC_PORTPORTC - Port C
6RTC_CNTRTC - Real-Time Counter
7RTC_PITPIT - Periodic Interrupt Timer (in RTC peripheral)
8 TCA0_LUNF/TCA0_OVFTCA0 - Timer Counter Type A, LUNF/OVF
9TCA0_HUNFTCA0, HUNF
10TCA0_LCMP0/TCA0_CMP0TCA0, LCMP0/CMP0
11TCA0_LCMP1/TCA0_CMP1TCA0, LCMP1/CMP1
12TCA0_CMP2/TCA0_LCMP2TCA0, LCMP2/CMP2
13TCB0_INTTCB0 - Timer Counter Type B
14 TCD0_OVFTCD0 - Timer Counter Type D, OVF
15TCD0_TRIGTCD0, TRIG
16AC0_ACAC0 – Analog Comparator
17ADC0_RESRDYADC0 – Analog-to-Digital Converter, RESRDY
18ADC0_WCOMPADC0, WCOMP
19 TWI0_TWISTWI0 - Two-Wire Interface/I2C, TWIS
20TWI0_TWIMTWI0, TWIM
21SPI0_INTSPI0 - Serial Peripheral Interface
22USART0_RXCUSART0 - Universal Asynchronous Receiver-Transmitter, RXC
23USART0_DREUSART0, DRE
24USART0_TXCUSART0, TXC
25NVMCTRL_EENVM - Nonvolatile Memory