ATtiny1624/1626/1627

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. For more details on the available interrupt sources, see the 'Interrupt' section in the 'Functional Description' of the respective peripheral.

An Interrupt Flag is set in the Interrupt Flags register of the peripheral (peripheral.INTFLAGS) when the interrupt condition occurs, even if the interrupt is not enabled.

An interrupt is enabled or disabled by writing to the corresponding Interrupt Enable bit in the peripheral's Interrupt Control (peripheral.INTCTRL) register.

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.

Note: Interrupts must be enabled globally for interrupt requests to be generated.
Table 1. Interrupt Vector Mapping

Vector
Number

Program
Address
(Word)

Peripheral
Source
(Name)

Description
0 0x00   RESET
1 0x02 NMI Non-Maskable Interrupt available for CRCSCAN
2 0x04 BOD_VLM Voltage Level Monitor interrupt
3 0x06 RTC_CNT Real Time Counter Overflow or compare match interrupt
4 0x08 RTC_PIT Real Time Counter Periodic Interrupt
5 0x0A CCL_CCL Configurable Custom Logic interrupt
6 0x0C PORTA_PORT PORT A External interrupt
7 0x0E PORT_PORTB PORT B External interrupt
8 0x10

TCA0_OVF
TCA_LUNF

Normal: Timer/Counter Type A Overflow interrupt
Split: Timer/Counter Type A Low Underflow interrupt

9 0x12


TCA0_HUNF

Normal: Unused
Split:  Timer/Counter Type A High Underflow interrupt

10 0x14

TCA0_CMP0
TCA0_LCMP0

Normal: Timer/Counter Type A Compare channel 0 interrupt
Split: Timer/Counter Type A Low Compare channel 0 interrupt

11 0x16

TCA0_CMP1
TCA0_LCMP1

Normal: Timer/Counter Type A Compare channel 1 interrupt
Split: Timer/Counter Type A Low Compare channel 1 interrupt

12 0x18

TCA0_CMP2
TCA0_LCMP2

Normal: Timer/Counter Type A Compare channel 2 interrupt
Split: Timer/Counter Type A Low Compare channel 2 interrupt

13 0x1A TCB0_INT Timer/Counter Type B Capture interrupt
14 0x1C TWI0_TWIS Two Wire Interface Client interrupt
15 0x1E TWI0_TWIM Two Wire Interface Host interrupt
16 0x20 SPI0_INT Serial Peripheral Interface 0 interrupt
17 0x22 USART0_RCX Universal Synchronous and Asynchronous Receiver and Transmitter 0 Receive Complete interrupt
18 0x24 USART0_DRE Universal Synchronous and Asynchronous Receiver and Transmitter 0 Data Register Empty interrupt
19 0x26 USART0_TXC Universal Synchronous and Asynchronous Receiver and Transmitter 0 Transmit Complete interrupt
20 0x28 AC0_AC Analog Comparator Compare interrupt
21 0x2A ADC0_ERROR Analog-to-Digital Converter Error interrupt
22 0x2C ADC0_RESRDY Analog-to-Digital Converter Result interrupt
23 0x2E ADC0_SAMPRDY Analog-to-Digital Converter Sample interrupt
24 0x30 PORTC_PORT PORT C External interrupt
25 0x32 TCB1_INT Timer/Counter Type B Capture interrupt
26 0x34 USART1_RCX Universal Synchronous and Asynchronous Receiver and Transmitter 1 Receive Complete interrupt
27 0x36 USART1_DRE Universal Synchronous and Asynchronous Receiver and Transmitter 1 Data Register Empty interrupt
28 0x38 USART1_TXC Universal Synchronous and Asynchronous Receiver and Transmitter 1 Transmit Complete interrupt
29 0x3A NVMCTRL_EE Non-Volatile Memory Controller Ready interupt