11.2.2 Interrupt Line Mapping

Each interrupt line 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.

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 (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 the 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-IPR11, provide a priority field for each interrupt.

Table 11-3. Interrupt Line Mapping (1)
Peripheral SourcePeripheral Interrupt(s)NVIC line
EIC NMI – External Interrupt ControllerNMINMI

PM – Power Manager

PLRDY0
MCLK - Main ClockCKRDY
OSCCTRL - Oscillators ControllerXOSCRDY
XOSCFAIL
OSC16MRDY
DFLLULPRDY
DFLLULPLOCK
DFLLULPNOLOCK
DPLLLCKR
DPLLLCKF
DPLLLTO
DPLLLDRTO
DFLLRDY
DFLLOOB
DFLLLCKF
DFLLLCKC
DFLLRCS
OSC32KCTRL - 32.768 kHz Oscillators ControllerXOSC32KRDY
CLKFAIL
SUPC - Supply ControllerBOD33RDY
BOD33DET
B33SRDY
VREGRDY
VCORERDY
ULPVREFRDY
VCOREPLLRDY
WDT – Watchdog TimerEW1
RTC – Real Time CounterCMP02
CMP1
PER0
PER1
PER2
PER3
PER4
PER5
PER6
PER7
OVF
TAMPER
ALARM0
EIC – External Interrupt ControllerEXTINT03
EXTINT14
EXTINT25
EXTINT36
EXTINT47
EXTINT58
EXTINT69
EXTINT710
EXTINT8-1511
NSCHK(2)
FREQM - Frequency MeterDONE12
NVMCTRL – Non-Volatile Memory ControllerDONE13
PROGE
LOCKE
NVME
KEYE
NSCHK(2)
PORT - I/O Pin ControllerNSCHK(2)14
DMAC - Direct Memory Access ControllerSUSP015
TERR0
TCMPL0
SUSP116
TERR1
TCMPL1
SUSP217
TERR2
TCMPL2
SUSP318
TERR3
TCMPL3
SUSP4-1519
TERR4-15
TCMPL4-15
USBEORSM/DNRSM20
EORST/RST
LPMNYET/DCONN
LPMSUSP/DDISC
RAMACER
RXSTP/TXSTP
SOF/HSOF
STALL0/STALL
STALL1
SUSPEND
TRCPT0
TRCPT1
TRFAIL0/TRFAIL
TRFAIL1/PERR
UPRSM
WAKEUP
EVSYS – Event SystemEVD021
OVR0
EVD122
OVR1
EVD223
OVR2
EVD324
OVR3
EVD425
OVR4
EVD526
OVR5
EVD627
OVR6
EVD728
OVR7
NSCHK(2)29
PAC - Peripheral Access ControllerERR30
SERCOM0 – Serial Communication Interface 0

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)31
Interrupt Bit 1 (TXC, SB, AMATCH)32
Interrupt Bit 2 (RXC, DRDY)33
Interrupt Bits 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)34
SERCOM1 – Serial Communication Interface 1

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)35
Interrupt Bit 1 (TXC, SB, AMATCH)36
Interrupt Bit 2 (RXC, DRDY)37
Interrupt Bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR) 38
SERCOM2 – Serial Communication Interface 2

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)39
Interrupt Bit 1 (TXC, SB, AMATCH)40
Interrupt Bit 2 (RXC, DRDY)41
Interrupt Bits 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR) 42
SERCOM3 – Serial Communication Interface 0

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)43
Interrupt Bit 1 (TXC, SB, AMATCH)44
Interrupt Bit 2 (RXC, DRDY)45
Interrupt Bits 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR) 46
SERCOM4 – Serial Communication Interface 1

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)47
Interrupt Bit 1 (TXC, SB, AMATCH)48
Interrupt Bit 2 (RXC, DRDY)49
Interrupt Bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR) 50
SERCOM5 – Serial Communication Interface 2

(Interrupt Sources vary depending on SERCOM mode)

Interrupt Bit 0 (DRE, MB, PREC)51
Interrupt Bit 1 (TXC, SB, AMATCH)52
Interrupt Bit 2 (RXC, DRDY)53
Interrupt Bits 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR) 54
TC0 – Timer Counter 0ERR55
MC0
MC1
OVF
TC1 – Timer Counter 1ERR56
MC0
MC1
OVF
TC2 – Timer Counter 2ERR57
MC0
MC1
OVF
TCC0 – Timer Counter for Control 0ERR58
MC0-3
OVF
TRG
CNT
DFS
UFS
FAULTA
FAULTB
FAULT0
FAULT1
TCC1 – Timer Counter for Control 1ERR59
MC0-1
OVF
TRG
CNT
DFS
UFS
FAULTA
FAULTB
FAULT0
FAULT1
TCC2 – Timer Counter for Control 2ERR60
MC0-1
OVF
TRG
CNT
DFS
UFS
FAULTA
FAULTB
FAULT0
FAULT1
TCC3 – Timer Counter for Control 3ERR61
MC0-3
OVF
TRG
CNT
DFS
UFS
FAULTA
FAULTB
FAULT0
FAULT1
ADC – Analog-to-Digital ConverterOVERRUN62
WINMON
RESRDY63
AC – Analog ComparatorCOMP0-364
WIN0-1
DAC – Digital-to-Analog ConverterUNDERRUN0-165
EMPTY0-166
PTC – Peripheral Touch ControllerEOC67
WCOMP
TRNG - True Random Number GeneratorDATARDY68
I2S - Inter-IC Sound ControllerRXRDY0-169
TXRDY0-1
RXOR0-1
TXUR0-1
TRAM - TrustRAMDRP70
ERR
Note:
  1. Refer to the Configuration Summary for the list of peripherals and peripheral instances present in each variant.
  2. NSCHK interrupt sources will not generate any interrupts for the PIC32CM LE00 devices.