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 | Program |
Peripheral | Description |
---|---|---|---|
0 | 0x00 | RESET | |
1 | 0x01 | CRCSCAN_NMI | Non-Maskable Interrupt available for CRCSCAN |
2 | 0x02 | BOD_VLM | Voltage Level Monitor interrupt |
3 | 0x03 | PORTA_PORT | Port A interrupt |
4 | 0x04 | PORTB_PORT | Port B interrupt |
5 | 0x05 | PORTC_PORT | Port C interrupt(1) |
6 | 0x06 | RTC_CNT | Real-Time Counter interrupt |
7 | 0x07 | RTC_PIT | Periodic Interrupt Timer interrupt (in RTC peripheral) |
8 | 0x08 |
TCA0_OVF |
Normal: Timer Counter Type A Overflow interrupt. |
9 | 0x09 |
|
Normal: Unused. |
10 | 0x0A |
TCA0_CMP0 |
Normal: Timer/Counter Type A Compare Channel 0 interrupt. |
11 | 0x0B |
TCA0_CMP1 |
Normal: Timer/Counter Type A Compare Channel 1 interrupt. |
12 | 0x0C |
TCA0_CMP2 |
Normal: Timer/Counter Type A Compare Channel 2 interrupt. |
13 | 0x0D | TCB0_INT | Timer Counter Type B Capture interrupt |
14 | 0x0E | TCD0_OVF | Timer/Counter Type D Overflow interrupt |
15 | 0x0F | TCD0_TRIG | Timer/Counter Type D Trigger interrupt |
16 | 0x10 | AC0_AC | Analog Comparator interrupt |
17 | 0x11 | ADC0_RESRDY | Analog-to-Digital Converter Result Ready interrupt |
18 | 0x12 | ADC0_WCOMP | Analog-to-Digital Converter Window Compare interrupt |
19 | 0x13 | TWI0_TWIS | Two-Wire Interface/I2C Client interrupt |
20 | 0x14 | TWI0_TWIM | Two-Wire Interface/I2C Host interrupt |
21 | 0x15 | SPI0_INT | Serial Peripheral Interface interrupt |
22 | 0x16 | USART0_RXC | Universal Asynchronous Receiver-Transmitter Receive Complete interrupt |
23 | 0x17 | USART0_DRE | Universal Asynchronous Receiver-Transmitter Data Ready interrupt |
24 | 0x18 | USART0_TXC | Universal Asynchronous Receiver-Transmitter Transmit Complete interrupt |
25 | 0x19 | NVMCTRL_EE | Nonvolatile Memory EEPROM Ready interrupt |
- The availability of the port pins depends on the device pin count. PORTC is available for devices with 20 pins or more.