10.2.2 NVIC Interrupt Line Mapping
Each of the interrupt lines is connected to a single 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.
An interrupt flag is set when the interrupt condition occurs. Each interrupt in the peripheral can be individually enabled by writing a '1' to the corresponding bit in the peripheral’s Interrupt Enable Set (INTENSET) register and disabled by writing '1' to the corresponding bit in the peripheral’s Interrupt Enable Clear (INTEN- CLR) register.
An interrupt request is generated from the peripheral when the interrupt flag is set when the corresponding interrupt is enabled.
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.
NVIC Interrupt Mapping | |
---|---|
Module | Interrupt Index : Source |
EIC | NMI |
FCW - PFM Memory WRITE Controller (FCW) | 0 : FCW |
FCR - PFM Memory READ Controller (FCR) |
1 : ECERR 2 : FAULT or CRCERR |
PM - Power Manager | 3 : SLEEPRDY |
SUPC - Supply Controller | 4 : LVDDET, LVDRDY, BORVDDUSB[1:0], ADDVREGRDY[2:0] |
OSCCTRL - Oscillators Control |
5 : XOSCFAIL or CLKFAIL 6 : XOSCRDY 7 : DFLLRDY 8 : DFLLLOCK, DFLLLOCKR, DFLLLOVF, DFLLUNF, DFLLRCS, or DFLLFAIL 9 : PLLLOCKR0 or PLLLOCKR1 |
OSC32KCTRL - 32 kHz Oscillators Control |
10 : XOSC32KFAIL 11 : XOSC32KRDY |
MCLK - Main Clock | 12 : CKRDY |
FREQM - Frequency Meter | 13 : DONE or WINMON |
WDT - Watchdog Timer | 14 : Early Warning Interrupt (EW_A) |
RTC - Real-Time Counter |
15 : TAMPER 16 : Overflow (OVF) 17 : Period x (PERx), x=0,1,…7 18: Compare/Alarm (CMPx), x = 0,1,2,3 |
EIC - External Interrupt Controller | 19-34: External Interrupt x (EXTINTx), x = 0,1,…15 |
PAC - Peripheral Access Controller | 35 : Peripheral Access Error (ERR) |
DRMTCM - TCM RAM ECC | 36 : All interrupts shown in TCMECC.INTFLAG |
MCRAMC | 37 : INT |
TRAM | 38 : ERR or DRP |
DMAC - Direct Memory Access Controller |
39 : Priority 3 40 : Priority 2 41 : Priority 1 42 : Priority 0 |
EVSYS - Event System Interface |
43-54: Event Detected (EVDn) or Overrun (OVDn) for Channel n, n = 0,1...11 |
SERCOM0 - Serial Communication Interface 0 |
55 : ERROR 56 : RXBRK 57 : DRE/PREC 58 : TXC/AMATCH 59 : RXC/DRDY 60 : RXS/SSL/TXFE 61 : CTSIC/RXFF |
SERCOM1 - Serial Communication Interface 1 |
62 : ERROR 63 : RXBRK 64 : DRE/PREC 65 : TXC/AMATCH 66 : RXC/DRDY 67 : RXS/SSL/TXFE 68 : CTSIC/RXFF |
SERCOM2 - Serial Communication Interface 2 |
69 : ERROR 70 : RXBRK 71 : DRE/PREC 72 : TXC/AMATCH 73 : RXC/DRDY 74 : RXS/SSL/TXFE 75 : CTSIC/RXFF |
SERCOM3 - Serial Communication Interface 3 |
76 : ERROR 77 : RXBRK 78 : DRE/PREC 79 : TXC/AMATCH 80 : RXC/DRDY 81 : RXS/SSL/TXFE 82 : CTSIC/RXFF |
SERCOM4 - Serial Communication Interface 4 |
83 : ERROR 84 : RXBRK 85 : DRE/PREC 86 : TXC/AMATCH 87 : RXC/DRDY 88 : RXS/SSL/TXFE 89 : CTSIC/RXFF |
SERCOM5 - Serial Communication Interface 5 |
90 : ERROR 91 : RXBRK 92 : DRE/PREC 93 : TXC/AMATCH 94 : RXC/DRDY 95 : RXS/SSL/TXFE 96 : CTSIC/RXFF |
SERCOM6 - Serial Communication Interface 6 |
97 : ERROR 98 : RXBRK 99 : DRE/PREC 100 : TXC/AMATCH 101 : RXC/DRDY 102 : RXS/SSL/TXFE 103 : CTSIC/RXFF |
SERCOM7 - Serial Communication Interface 7 |
104 : ERROR 105 : RXBRK 106 : DRE/PREC 107 : TXC/AMATCH 108 : RXC/DRDY 109 : RXS/SSL/TXFE 110 : CTSIC/RXFF |
SERCOM8 - Serial Communication Interface 8 |
111 : ERROR 112 : RXBRK 113 : DRE/PREC 114 : TXC/AMATCH 115 : RXC/DRDY 116 : RXS/SSL/TXFE 117 : CTSIC/RXFF |
SERCOM9 - Serial Communication Interface 9 |
118 : ERROR 119 : RXBRK 120 : DRE/PREC 121 : TXC/AMATCH 122 : RXC/DRDY 123 : RXS/SSL/TXFE 124 : CTSIC/RXFF |
TCC0 - Timer Counter Control 0 |
125 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 126 : CNT or TRIG 127-134 : MCx, x=0,1,…7 |
TCC1 - Timer Counter Control 1 |
135 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 136 : CNT or TRIG 137-144 : MCx, x = 0,1,…7 |
TCC2 - Timer Counter Control 2 |
145 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 146 : CNT or TRIG 147-152 : MCx, x = 0,1,…5 |
TCC3 - Timer Counter Control 3 |
153 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 154 : CNT or TRIG 155 : MC0 156 : MC1 |
TCC4 - Timer Counter Control 4 |
157 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 158 : CNT or TRIG 159 : MC0 160 : MC1 |
TCC5 - Timer Counter Control 5 |
161 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 162 : CNT or TRIG 163 : MC0 164 : MC1 |
TCC6 - Timer Counter Control 6 |
165 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 166 : CNT or TRIG 167 : MC0 168 : MC1 |
TCC7 - Timer Counter Control 7 |
169 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 170 : CNT or TRIG 171 : MC0 172 : MC1 |
TCC8 - Timer Counter Control 8 |
173 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 174 : CNT or TRIG 175 : MC0 176 : MC1 |
TCC9 - Timer Counter Control 9 |
177 : DFS, ERR, FAULTA, FAULTB, FAULT0, FAULT1, OVF, or UFS 178 : CNT or TRIG 179-184 : MCx, x=0,1,…5 |
ADC - Analog Digital Controller | 185-189 : INTREQx, x= 0,1,2,3,4 |
AC - Analog Comparator | 190 : COMP_0, COMP_1, or WIN |
PTC - Peripheral Touch | 191 : EOC, WCOMP, or ACRRDY |
I2S0 | 192 : I2S |
I2S1 | 193 : I2S |
CANn - Control Area Network n, n =0,1,…5 |
194 : CAN0: LINE0, LINE1, or ERROR 195 : CAN1: LINE0, LINE1, or ERROR 196 : CAN2: LINE0, LINE1, or ERROR 197 : CAN3: LINE0, LINE1, or ERROR 198 : CAN4: LINE0, LINE1, or ERROR 199 : CAN5: LINE0, LINE1, or ERROR |
200 : RSVD | |
201 : RSVD | |
GMAC - Ethernet MAC |
202 : ETH0 (Ethernet Interrupts, Queue 0) 203 : ETH1 (Queue 1) 204 : ETH2 (Queue 2) 205 : ETH3 (Queue 3) 206 : ETH4 (Queue 4) 207 : ETH5 (Queue 5) |
SQI0 - Quad SPI interface 0 | 208 : SQI |
SQI1 - Quad SPI interface 1 | 209 : SQI |
TRNG - True Random Generator | 210 : DATARDY |
SDHC0 - SD/MMC Host Controller 0 | 211 : LINE or TIMER |
SDHC1 - SD/MMC Host Controller 1 | 212 : LINE or TIMER |
HSUSB0 - High Speed Universal Serial Bus 0 | 213 : INT |
HSUSB1 - High Speed Universal Serial Bus 1 | 214 : INT |
215 : RSVD | |
216 : RSVD | |
217 : RSVD | |
MLB - Media LB |
218 : INTMLB 219 : INT0AHB or INT1AHB |
RSVD | 220-239 |