11.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 11-3. Interrupt Line Mapping, PIC32CM JH00/JH01
Peripheral Source (1)Peripheral Interrupt(s)NVIC Line
EIC NMI – External Interrupt ControllerNMINMI
OSCCTRL - Oscillators ControllerDPLLLDRTO0
DPLLLTO
DPLLLCKF
DPLLLCKR
OSC48MRDY
XOSCFAIL
XOSCRDY
OSC32KCTRL - 32.768 kHz Oscillators Controller SUPC - Supply ControllerCLKFAIL
OSC32KRDY
XOSC32KRDY
PAC - Protection Access ControllerERR
MCLK - Main ClockCKRDY
SUPC - Supply ControllerBVDDSRDY
BODVDDDET
BODVDDRDY
WDT – Watchdog TimerEW1
RTC – Real Time ClockOVF2
CMP0
PER7 - PER0
EIC – External Interrupt ControllerEXTINT15 - EXTINT03
FREQM – Frequency MeterDONE4
MCRAMC - Multi-Channel RAM ControllerDERR5
SERR
NVMCTRL – Non-Volatile Memory ControllerFLTCAP6
FLASHERR
DERR
SERR
ERROR
READY
DMAC - Direct Memory Access ControllerSUSP7
TCMPL
TERR
EVSYS – Event SystemEVD11 - EVD08
OVR11 - OVR0
SERCOM0 – Serial Communication Controller 0 SERCOM6 – Serial Communication Controller 6 (1)USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB9
SERCOM1 – Serial Communication Controller 1 SERCOM7 – Serial Communication Controller 7 (1)USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB10
SERCOM2 – Serial Communication Controller 2USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB11
SERCOM3 – Serial Communication Controller 3USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB12
SERCOM4 – Serial Communication Controller 4 (1)USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB13
SERCOM5 – Serial Communication Controller 5 (1)USART: ERROR, RXBRK, CTSIC, RXS, RXC, TXC, DRE SPI: ERROR, SSL, RXC, TXC, DRE I2C Client: ERROR, DRDY, AMATCH, PREC I2C Host: ERROR, SB, MB14
CAN0 – Controller Area Network 0 (1)ARA, PED, PEA, WDI, BO, EW, EP, ELO, BEU, BEC, DRX, TOO, MRAF, TSW, TEFL, TEFF, TEFW, TEFN, TFE, TCF, TC, HPM, RF1L, RF1F, RF1W, RF0L, RF0F, RF0W, RF0N15
CAN1 – Controller Area Network 1 (1)ARA, PED, PEA, WDI, BO, EW, EP, ELO, BEU, BEC, DRX, TOO, MRAF, TSW, TEFL, TEFF, TEFW, TEFN, TFE, TCF, TC, HPM, RF1L, RF1F, RF1W, RF0L, RF0F, RF0W, RF0N16
TCC0 – Timer Counter for Control 0MC3 - MC017
FAULT1 / FAULT0 / FAULTB /FAULTA
DFS
UFS
ERR
CNT
TRG
OVF
TCC1 – Timer Counter for Control 1MC3 - MC018
FAULT1 / FAULT0 / FAULTB /FAULTA
DFS
UFS
ERR
CNT
TRG
OVF
TCC2 – Timer Counter for Control 2MC3 - MC019
FAULT1 / FAULT0 / FAULTB /FAULTA
DFS
UFS
ERR
CNT
TRG
OVF
TC0 – Timer Counter 0, TC5 – Timer Counter 5MC1 - MC020
ERR
OVF
TC1 – Timer Counter 1, TC6 – Timer Counter 6MC1 - MC021
ERR
OVF
TC2 – Timer Counter 2, TC7 – Timer Counter 7MC1 - MC022
ERR
OVF
TC3 – Timer Counter 3MC1 - MC023
ERR
OVF
TC4 – Timer Counter 4MC1 - MC024
ERR
OVF
ADC0 – Analog-to-Digital Converter 0WINMON25
OVERRUN
RESRDY
ADC1 – Analog-to-Digital Converter 1WINMON26
OVERRUN
RESRDY
AC – Analog ComparatorWIN1 - WIN027
COMP3 - COMP0
DAC – Digital-to-Analog ConverterEMPTY28
UNDERRUN
PDEC - Position DecoderMC1 - MC029
VLC
DIR
ERR
OVF
PTC – Peripheral Touch ControllerEOC30
WCOMP
ICM - Integrity Check MonitorURAD31
RSU
REC
RWC
RBE
RDM
RHC
Note:
  1. Refer to the Configuration Summary chapter for the list of peripherals, peripheral instances, channels, and input/output pins present in each variant.