10.2.2 Interrupt Line Mapping

Each of the 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, SAM C21
Peripheral Source NVIC Line
EIC NMI – External Interrupt Controller NMI

MCLK - Main Clock

OSCCTRL - Oscillators Controller

OSC32KCTRL - 32.768 kHz Oscillators Controller

SUPC - Supply Controller

PAC - Protection Access Controller

0
WDT – Watchdog Timer 1
RTC – Real Time Clock 2
EIC – External Interrupt Controller 3
FREQM – Frequency Meter 4
TSENS – Temperature Sensor 5
NVMCTRL – Non-Volatile Memory Controller 6
DMAC - Direct Memory Access Controller 7
EVSYS – Event System 8

SERCOM0 – Serial Communication Controller 0

SERCOM6 – Serial Communication Controller 6 (only for SAM C21 N)

9

SERCOM1 – Serial Communication Controller 1

SERCOM7 – Serial Communication Controller 7 (only for SAM C21 N)

10
SERCOM2 – Serial Communication Controller 2 11
SERCOM3 – Serial Communication Controller 3 12
SERCOM4 – Serial Communication Controller 4 (only for SAM C21 G/J/N) 13
SERCOM5 – Serial Communication Controller 5 (only for SAM C21 G/J/N) 14

CAN0 – Controller Area Network 0

15

CAN1 – Controller Area Network 1 (only for SAM C21 G/J/N)

16
TCC0 – Timer Counter for Control 0 17
TCC1 – Timer Counter for Control 1 18
TCC2 – Timer Counter for Control 2 19

TC0 – Timer Counter 0

TC5 – Timer Counter 5 (only for SAM C21 N)

20

TC1 – Timer Counter 1

TC6 – Timer Counter 6 (only for SAM C21 N)

21

TC2 – Timer Counter 2

TC7 – Timer Counter 7 (only for SAM C21 N)

22

TC3 – Timer Counter 3

23

TC4 – Timer Counter 4

24
ADC0 – Analog-to-Digital Converter 0 25

ADC1 – Analog-to-Digital Converter 1

26
AC – Analog Comparator 27

DAC – Digital-to-Analog Converter

28

SDADC – Sigma-Delta Analog-to-Digital Converter 1

29
PTC – Peripheral Touch Controller 30
Reserved 31
Table 10-4. Interrupt Line Mapping, SAM C20
Peripheral Source NVIC Line
EIC NMI – External Interrupt Controller NMI

MCLK - Main Clock

OSCCTRL - Oscillators Controller

OSC32KCTRL - 32.768 kHz Oscillators Controller

SUPC - Supply Controller

PAC - Protection Access Controller

0
WDT – Watchdog Timer 1
RTC – Real Time Clock 2
EIC – External Interrupt Controller 3
FREQM – Frequency Meter 4
Reserved 5
NVMCTRL – Non-Volatile Memory Controller 6
DMAC - Direct Memory Access Controller 7
EVSYS – Event System 8

SERCOM0 – Serial Communication Controller 0

SERCOM6 – Serial Communication Controller 6 (only for SAM C20 N)

9

SERCOM1 – Serial Communication Controller 1

SERCOM7 – Serial Communication Controller 7 (only for SAM C20 N)

10
SERCOM2 – Serial Communication Controller 2 11
SERCOM3 – Serial Communication Controller 3 12
SERCOM4 – Serial Communication Controller 4 (only for SAM C20 N) 13
SERCOM5 – Serial Communication Controller 5 (only for SAM C20 N) 14

Reserved

15

Reserved

16
TCC0 – Timer Counter for Control 0 17
TCC1 – Timer Counter for Control 1 18
TCC2 – Timer Counter for Control 2 19

TC0 – Timer Counter 0

TC5 – Timer Counter 5 (only for SAM C20 N)

20

TC1 – Timer Counter 1

TC6 – Timer Counter 6 (only for SAM C20 N)

21

TC2 – Timer Counter 2

TC7 – Timer Counter 7 (only for SAM C20 N)

22

TC3 – Timer Counter 3

23

TC4 – Timer Counter 4

24
ADC0 – Analog-to-Digital Converter 0 25

Reserved

26
AC – Analog Comparator 27

Reserved

28

Reserved

29
PTC – Peripheral Touch Controller 30
Reserved 31