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 SourceNVIC Line
EIC NMI – External Interrupt ControllerNMI
PM – Power Manager0
SYSCTRL – System Control1
WDT – Watchdog Timer2
RTC – Real Time Counter3
EIC – External Interrupt Controller4
NVMCTRL – Non-Volatile Memory Controller5
EVSYS – Event System6
SERCOM0 – Serial Communication Interface 07
SERCOM1 – Serial Communication Interface 18
SERCOM2 – Serial Communication Interface 29
SERCOM3 – Serial Communication Interface 310
SERCOM4 – Serial Communication Interface 411
SERCOM5 – Serial Communication Interface 512
TC0 – Timer Counter 013
TC1 – Timer Counter 114
TC2 – Timer Counter 215
TC3 – Timer Counter 316
TC4 – Timer Counter 417
TC5 – Timer Counter 518
TC6 – Timer Counter 619
TC7 – Timer Counter 720
ADC – Analog-to-Digital Converter21
AC – Analog Comparator22
DAC – Digital-to-Analog Converter23
PTC – Peripheral Touch Controller24