10.2.2 Interrupt Line Mapping

Each of the 28 interrupt lines is connected to one peripheral instance, as shown in the table below. Each peripheral can have one or more interrupt flags, located in the peripheral’s Interrupt Flag Status and Clear (INTFLAG) register. The interrupt flag is set when the interrupt condition occurs. Each interrupt in the peripheral can be individually enabled by writing a one to the corresponding bit in the peripheral’s Interrupt Enable Set (INTENSET) register, and disabled by writing a one to the corresponding bit in the peripheral’s Interrupt Enable Clear (INTENCLR) register. An interrupt request is generated from the peripheral when the interrupt flag is set and the corresponding interrupt is enabled. The interrupt requests for one peripheral are ORed together on system level, generating one interrupt request for each peripheral. An interrupt request will set the corresponding interrupt pending bit in the NVIC interrupt pending registers (SETPEND/CLRPEND bits in ISPR/ICPR). For the NVIC to activate the interrupt, it must be enabled in the NVIC interrupt enable register (SETENA/CLRENA bits in ISER/ICER). The NVIC interrupt priority registers IPR0-IPR7 provide a priority field for each interrupt.

Table 10-3. Interrupt Line Mapping
Peripheral Source NVIC Line
EIC NMI – External Interrupt Controller NMI
PM – Power Manager 0
SYSCTRL – System Control 1
WDT – Watchdog Timer 2
RTC – Real Time Counter 3
EIC – External Interrupt Controller 4
NVMCTRL – Non-Volatile Memory Controller 5
EVSYS – Event System 6
SERCOM0 – Serial Communication Interface 0 7
SERCOM1 – Serial Communication Interface 1 8
SERCOM2 – Serial Communication Interface 2 9
SERCOM3 – Serial Communication Interface 3 10
SERCOM4 – Serial Communication Interface 4 11
SERCOM5 – Serial Communication Interface 5 12
TC0 – Timer Counter 0 13
TC1 – Timer Counter 1 14
TC2 – Timer Counter 2 15
TC3 – Timer Counter 3 16
TC4 – Timer Counter 4 17
TC5 – Timer Counter 5 18
TC6 – Timer Counter 6 19
TC7 – Timer Counter 7 20
ADC – Analog-to-Digital Converter 21
AC – Analog Comparator 22
DAC – Digital-to-Analog Converter 23
PTC – Peripheral Touch Controller 24