9.4 Peripherals Dependencies

Table 9-1. Peripherals Dependencies (PIC32CM2532 and PIC32CM5164 Devices)(1)
Peripheral nameBase addressNVIC

IRQ Index

MCLK

AHB/APB

Clocks

GCLK

Peripheral Channel

Index

(GCLK.PCHCTRL)

PAC

Peripheral Identifier

Index

(PAC.WRCTRL)

DMA

Trigger Source

Index

(DMAC.CHCTRLB)

Events

(EVSYS)

Power Domain

(PM.STDBYCFG)

Users

(EVSYS.USER)

Generators

(EVSYS.CHANNEL)

AHB-APB Bridge A (APBA) Peripherals
PAC0x4000000030: ERR

CLK_PAC_AHB

CLK_PAC_APB

091: ERRPDSW
PM0x400004000: PLRDY

CLK_PM_APB

1PDAO
MCLK0x400008000: CKRDY

CLK_MCLK_APB

2PDSW
RSTC0x40000C00

CLK_RSTC_APB

3PDAO
OSCCTRL0x400010000: XOSCRDY, XOSCFAIL, OSC16MRDY, DFLLULPRDY, DFLLULPLOCK, DFLLULPNOLOCK, DPLLLCKR, DPLLLCKF, DPLLLTO, DPLLLDRTO, DFLLRDY, DFLLOOB, DFLLLCKF, DFLLLCKC, DFLLRCS

CLK_OSCCTRL_APB

0: GCLK_FDPLL96M

1: GCLK_FDPLL96M_32K

2: GCLK_DFLLULP

3: GCLK_DFLL48M

40: TUNE1: CFDPDSW
OSC32KCTRL0x400014000: XOSC32KRDY, CLKFAIL

CLK_OSC32KCTRL_APB

52: CFDPDAO
SUPC0x400018000: BOD33RDY,BOD33DET, B33SRDY, VREGRDY, VCORERDY, ULPVREFRDY,VCOREPLLRDY

CLK_SUPC_APB

63: BOD33DETPDAO
GCLK0x40001C00

CLK_GCLK_APB

7PDSW
WDT0x400020001: EW

CLK_WDT_APB

8PDSW
RTC0x400024002: CMP0-1, TAMPER, OVF, PER0-7, ALARM0

CLK_RTC_APB

91: TIMESTAMP1: TAMPEVT

4-11 : PER0-7

12 : ALARM0

12-13 : CMP0-1

14 : TAMPER

15 : OVF

16 : PERD

PDAO
EIC0x40002800

3: EXTINT0

4: EXTINT1

5: EXTINT2

6: EXTINT3

7: EXTINT4

8: EXTINT5

9: EXTINT6

10: EXTINT7

11: EXTINT8-15, NSCHK

NMI

CLK_EIC_APB

4: GCLK_EIC1017-32: EXTINT0-15PDAO
FREQM0x40002C0012: DONE

CLK_FREQM_APB

5: GCLK_FREQM_MSR

6: GCLK_FREQM_REF

11PDSW
PORT0x4000300014: NSCHK

CLK_PORT_APB

123-6 : EVU0-3PDAO
AC0x4000340064: COMP0-3, WIN0-1

CLK_AC_APB

29: GCLK_AC1340-43: COMP0-3

76-79: COMP0-3

80-81: WIN0-1

PDAO
AHB-APB Bridge B (APBB) Peripherals
IDAU0x41000000

CLK_IDAU_APB

32PDSW
DSU0x41002000

CLK_DSU_AHB

CLK_DSU_APB

33

2-3: DCC0-1

PDSW
NVMCTRL0x4100400013: DONE, PROGE, LOCKE, NVME, KEYE, NSCHK

CLK_NVMCTRL_AHB

CLK_NVMCTRL_APB

342: AUTOWPDSW
DMAC0x41006000

15: SUSP0, TERR0, TCMPL0

16: SUSP1, TERR1, TCMPL1

17: SUSP2, TERR2, TCMPL2

18: SUSP3, TERR3, TCMPL3

19: SUSP4-15, TERR4-15, TCMPL4-15

CLK_DMAC_AHB

357-14: CH0-733-40: CH0-7PDSW
HMATRIXHS0x41008000

CLK_HMATRIXHS_AHB

CLK_HMATRIXHS_APB

36PDSW
USB0x4100A00020: EORSM/DNRSM, EORST/RST, LPMNYET/DCONN, LPMSUSP/DDISC, RAMACER, RXSTP/TXSTP, SOF/HSOF, STALL0/STALL, STALL1, SUSPEND, TRCPT0, TRCPT1, TRFAIL0/TRFAIL, TRFAIL1/PERR, UPRSM, WAKEUP

CLK_USB_AHB

CLK_USB_APB

7: GCLK_USB37PDSW
AHB-APB Bridge C (APBC) Peripherals
EVSYS0x42000000

21: EVD0, OVR0

22: EVD1, OVR1

23: EVD2, OVR2

24: EVD3, OVR3

25: EVD4, OVR4

26: EVD5, OVR5

27: EVD6, OVR6

28: EVD7, OVR7

29: NSCHK

CLK_EVSYS_APB

8: GCLK_EVSYS_CHANNEL_0

9: GCLK_EVSYS_CHANNEL_1

10: GCLK_EVSYS_CHANNEL_2

11: GCLK_EVSYS_CHANNEL_3

12: GCLK_EVSYS_CHANNEL_4

13: GCLK_EVSYS_CHANNEL_5

14: GCLK_EVSYS_CHANNEL_6

15: GCLK_EVSYS_CHANNEL_7

64PDSW
SERCOM0(2)0x42000400

31: bit 0 (DRE, MB, PREC)

32: bit 1 (TXC, SB, AMATCH)

33: bit 2 (RXC, DRDY)

34: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM0_APB

17: GCLK_SERCOM0_CORE

16: GCLK_SERCOM0_SLOW

65

4: RX

5: TX

PDSW
SERCOM1(2)0x42000800

35: bit 0 (DRE, MB, PREC)

36: bit 1 (TXC, SB, AMATCH)

37: bit 2 (RXC, DRDY)

38: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM1_APB

18: GCLK_SERCOM1_CORE

16: GCLK_SERCOM1_SLOW

66

6: RX

7: TX

PDSW
SERCOM2(2)0x42000C00

39: bit 0 (DRE, MB, PREC)

40: bit 1 (TXC, SB, AMATCH)

41: bit 2 (RXC, DRDY)

42: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM2_APB

19: GCLK_SERCOM2_CORE

16: GCLK_SERCOM2_SLOW

67

8: RX

9: TX

PDSW
SERCOM3(2)0x42001000

43: bit 0 (DRE, MB, PREC)

44: bit 1 (TXC, SB, AMATCH)

45: bit 2 (RXC, DRDY)

46: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM3_APB

20: GCLK_SERCOM3_CORE

16: GCLK_SERCOM3_SLOW

68

10: RX

11: TX

PDSW
SERCOM4(2)0x42001400

47: bit 0 (DRE, MB, PREC)

48: bit 1 (TXC, SB, AMATCH)

49: bit 2 (RXC, DRDY)

50: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM4_APB

21: GCLK_SERCOM4_CORE

16: GCLK_SERCOM4_SLOW

69

12: RX

13: TX

PDSW
SERCOM5(2)0x42001800

51: bit 0 (DRE, MB, PREC)

52: bit 1 (TXC, SB, AMATCH)

53: bit 2 (RXC, DRDY)

54: bit 3-7 (RXS, TXFE, SSL, CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM5_APB

22: GCLK_SERCOM5_CORE

16: GCLK_SERCOM5_SLOW

70

14: RX

15: TX

PDSW
TC00x42001C0055: ERR, MC0, MC1, OVF

CLK_TC0_APB

23: GCLK_TC0_TC171

16: OVF

17-18: MC0-1

15: EVU

41: OVF

42-43: MC0-1

PDSW
TC10x4200200056: ERR, MC0, MC1, OVF

CLK_TC1_APB

23: GCLK_TC0_TC172

19: OVF

20-21: MC0-1

16: EVU

44: OVF

45-46: MC0-1

PDSW
TC20x4200240057: ERR, MC0, MC1, OVF

CLK_TC2_APB

24: GCLK_TC273

22: OVF

23-24: MC0-1

17: EVU

47: OVF

48-49: MC0-1

PDSW
TCC00x4200280058: ERR, MC0-3, OVF, TRG, CNT, DFS, UFS, FAULTA, FAULTB, FAULT0, FAULT1

CLK_TCC0_APB

25: GCLK_TCC0_TCC174

25: OVF

26-29: MC0-3

18-19: EVU0-1

20-23: MC0-3

50: TRG

51: CNT

52-55: MC0-3

56: OVF

PDSW
TCC10x42002C0059: ERR, MC0-1, OVF, TRG, CNT, DFS, UFS, FAULTA, FAULTB, FAULT0, FAULT1

CLK_TCC1_APB

25: GCLK_TCC0_TCC175

30: OVF

31-32: MC0-1

24-25: EVU0-1

26-27: MC0-1

57: TRG

58: CNT

59-60: MC0-1

61: OVF

PDSW
TCC20x4200300060: ERR, MC0-1, OVF, TRG, CNT, DFS, UFS, FAULTA, FAULTB, FAULT0, FAULT1

CLK_TCC2_APB

26: GCLK_TCC276

33: OVF

34-35: MC0-1

28-29: EVU0-1

30-31: MC0-1

62: TRG

63: CNT

64-65: MC0-1

66: OVF

PDSW
TCC30x4200340061: ERR, MC0-3, OVF, TRG, CNT, DFS, UFS, FAULTA, FAULTB, FAULT0, FAULT1

CLK_TCC3_APB

27: GCLK_TCC377

36: OVF

37-40: MC0-3

32-33: EVU0-1

34-37: MC0-3

67: TRG

68: CNT

69-72: MC0-3

73: OVF

PDSW
ADC0x4200380062: OVERRUN, WINMON

63: RESRDY

CLK_ADC_APB

28: GCLK_ADC7841: RESRDY

38: START

39

: FLUSH

74: RESRDY

75: WINMON

PDSW
DAC0x42003C0065: UNDERRUN0-1

66: EMPTY0-1

CLK_DAC_APB

30: GCLK_DAC7942-43: EMPTY0-144-45: START0-182-83: EMPTY0-1PDSW
PTC0x42004000

67: EOC, WCOMP

CLK_PTC_APB

31: GCLK_PTC80

44 : EOC

45 : SEQ

46 : WCOMP

46 : STCONV

47 : DSEQR

84: EOC

85: WCOMP

PDSW
TRNG0x4200440068: DATARDY

CLK_TRNG_APB

8186 : DATARDYPDSW
CCL0x42004800

CLK_CCL_APB

32: GCLK_CCL82

48-51 : LUT0-3

87-90 : LUT0-3

PDSW
I2S0x42004C0069: RXRDY0-1, TXRDY0-1, RXOR0-1, TXUR0-1

CLK_I2S_APB

33: GCLK_I2S_0

34: GCLK_I2S_1

83

47-48: RX0-1

49-50: TX0-1

PDSW
OPAMP0x42005000

CLK_OPAMP_APB

84PDSW
TRAM0x4200540070: DRP, ERR

CLK_TRAM_AHB

85PDSW
Note:
  1. Refer to the Configuration Summary for the list of peripherals, and peripheral instances present in each variant.
  2. GCLK_SERCOMx_SLOW is only used by SERCOM I²C.
Table 9-2. Peripherals Dependencies (PIC32CM1216 Devices)
Peripheral name Base address NVIC

IRQ Index

MCLK

AHB/APB

Clocks

GCLK

Peripheral Channel

Index

(GCLK.PCHCTRL)

PAC

Peripheral Identifier

Index

(PAC.WRCTRL)

DMA

Trigger Source

Index

(DMAC.CHCTRLB)

Events (EVSYS) Power Domain

(PM.STDBYCFG)

Users

(EVSYS.USER)

Generators

(EVSYS.CHANNEL)

AHB-APB Bridge A (APBA) Peripherals
PAC0x4000000030: ERRCLK_PAC_AHBCLK_PAC_APB054: ERRPDSW
PM0x400004000: PLRDYCLK_PM_APB1PDAO
MCLK0x400008000: CKRDYCLK_MCLK_APB2PDSW
RSTC0x40000C00CLK_RSTC_APB3PDAO
OSCCTRL0x400010000: XOSCRDY, XOSCFAIL, OSC16MRDY, DFLLULPRDY, DFLLULPLOCK, DFLLULPNOLOCK, DPLLLCKR, DPLLLCKF, DPLLLTO, DPLLLDRTO, DFLLRDY, DFLLOOB, DFLLLCKF, DFLLLCKC, DFLLRCSCLK_OSCCTRL_APB0: GCLK_FDPLL96M

1: GCLK_FDPLL96M_32K

2: GCLK_DFLLULP

3: GCLK_DFLL48M

40: TUNE1: CFDPDSW
OSC32KCTRL0x400014000: XOSC32KRDY, CLKFAILCLK_OSC32KCTRL_APB52: CFDPDAO
SUPC0x400018000: BOD33RDY,BOD33DET, B33SRDY, VREGRDY, VCORERDY, ULPVREFRDY,VCOREPLLRDYCLK_SUPC_APB63: BOD33DETPDAO
GCLK0x40001C00CLK_GCLK_APB7PDSW
WDT0x400020001: EWCLK_ WDT_APB8PDSW
RTC0x400024002: CMP0-1, TAMPER, OVF, PER0-7, ALARM0CLK_RTC_APB91: TIMESTAMP1: TAMPEVT4-11 : PER0-7

12 : ALARM0 12-

13 : CMP0-1

14 : TAMPER

15 : OVF

16 : PERD

PDAO
EIC0x400028003: EXTINT0

4: EXTINT1

5: EXTINT2

6: EXTINT3

7: EXTINT4

8: EXTINT5

9: EXTINT6

10: EXTINT7

11: EXTINT8-15, NSCHK NMI

CLK_EIC_APB4: GCLK_EIC1017-24: EXTINT0-7PDAO
FREQM0x40002C0012: DONECLK_FREQM_APB5: GCLK_FREQM_MSR

6: GCLK_FREQM_REF

11PDSW
PORT0x4000300014: NSCHKCLK_PORT_APB123-6 : EVU0-3PDAO
AC0x4000340064: COMP0-3, WIN0-1CLK_AC_APB29: GCLK_AC1320-21: COMP0-144-45: COMP0-1

46: WIN0

PDAO
AHB-APB Bridge B (APBB) Peripherals
IDAU0x41000000CLK_IDAU_APB32PDSW
DSU0x41002000CLK_DSU_AHBCLK_DSU_APB332-3: DCC0-1PDSW
NVMCTRL0x4100400013: DONE, PROGE, LOCKE, NVME, KEYE, NSCHKCLK_NVMCTRL_AHBCLK_NVMCTRL_APB342: AUTOWPDSW
DMAC0x4100600015: SUSP0, TERR0, TCMPL0

16: SUSP1, TERR1, TCMPL1

17: SUSP2, TERR2, TCMPL2

18: SUSP3, TERR3, TCMPL3

19: SUSP4-15, TERR4-15, TCMPL4-15

CLK_DMAC_AHB357-14: CH0-725PDSW
HMATRIXHS0x41008000CLK_HMATRIXHS_AH

BCLK_HMATRIXHS_AP B

36PDSW
USB0x4100A00020: EORSM/DNRSM, EORST/RST, LPMNYET/DCONN, LPMSUSP/DDISC, RAMACER, RXSTP/ TXSTP, SOF/HSOF, STALL0/STALL, STALL1, SUSPEND, TRCPT0, TRCPT1, TRFAIL0/TRFAIL, TRFAIL1/PERR, UPRSM, WAKEUPCLK_USB_AHB

CLK_USB_APB

7: GCLK_USB37PDSW
AHB-APB Bridge C (APBC) Peripherals
EVSYS0x4200000021: EVD0, OVR0

22: EVD1, OVR1

23: EVD2, OVR2

24: EVD3, OVR3

25: EVD4, OVR4

26: EVD5, OVR5

27: EVD6, OVR6

28: EVD7, OVR7

29: NSCHK

CLK_EVSYS_APB8: GCLK_EVSYS_CHANNEL_0

9: GCLK_EVSYS_CHANNEL_1

10: GCLK_EVSYS_CHANNEL_2

11: GCLK_EVSYS_CHANNEL_3

12: GCLK_EVSYS_CHANNEL_4

13: GCLK_EVSYS_CHANNEL_5

14: GCLK_EVSYS_CHANNEL_6

15: GCLK_EVSYS_CHANNEL_7

64PDSW
SERCOM0(2)0x4200040031: bit 0 (DRE, MB, PREC)

32: bit 1 (TXC, SB, AMATCH)

33: bit 2 (RXC, DRDY)

34: bit 3-7 (RXS, TXFE, SSL,

CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM0_APB17: GCLK_SERCOM0_CORE

16: GCLK_SERCOM0_SLOW

654: RX5: TXPDSW
SERCOM1(2)0x4200080035: bit 0 (DRE, MB, PREC)

36: bit 1 (TXC, SB, AMATCH)

37: bit 2 (RXC, DRDY)

38: bit 3-7 (RXS, TXFE, SSL,

CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM1_APB18: GCLK_SERCOM1_CORE

16: GCLK_SERCOM1_SLOW

666: RX7: TXPDSW
SERCOM2(2)0x42000C0039: bit 0 (DRE, MB, PREC)

40: bit 1 (TXC, SB, AMATCH)

41: bit 2 (RXC, DRDY)

42: bit 3-7 (RXS, TXFE, SSL,

CTSIC, RXFF, RXBRK, ERROR)

CLK_SERCOM2_APB19: GCLK_SERCOM2_CORE

16: GCLK_SERCOM2_SLOW

678: RX9: TXPDSW
TC00x42001C0055: ERR, MC0, MC1, OVFCLK_TC0_APB23: GCLK_TC0_TC17116: OVF17-18: MC0-115: EVU33: OVF

34-35: MC0-1

PDSW
TC10x4200200056: ERR, MC0, MC1, OVFCLK_TC1_APB23: GCLK_TC0_TC17219: OVF20-21: MC0-116: EVU36: OVF

37-38: MC0-1

PDSW
TC20x4200240057: ERR, MC0, MC1, OVFCLK_TC2_APB24: GCLK_TC27322: OVF23-24: MC0-117: EVU39: OVF

40-41: MC0-1

PDSW
ADC0x4200380062: OVERRUN, WINMON

63: RESRDY

CLK_ADC_APB28: GCLK_ADC7841: RESRDY18: START 19: FLUSH42: RESRDY

43: WINMON

PDSW
DAC0x42003C0065: UNDERRUN0-1

66: EMPTY0-1

CLK_DAC_APB30: GCLK_DAC7942-43: EMPTY0-122-23: START0-147-48: EMPTY0-1PDSW
PTC0x4200400067: EOC, WCOMPCLK_PTC_APB31: GCLK_PTC8044 : EOC

45 : SEQ

46 : WCOMP

24 : STCONV

25 : DSEQR

49: EOC 50: WCOMPPDSW
TRNG0x4200440068: DATARDYCLK_TRNG_APB8151 : DATARDYPDSW
CCL0x42004800CLK_CCL_APB32: GCLK_CCL8226-27 : LUT0-152-53 : LUT0-1PDSW
OPAMP0x42005000CLK_OPAMP_APB84PDSW
TRAM0x4200540070: DRP, ERRCLK_TRAM_AHB85PDSW
Note:
  1. Refer to the Configuration Summary for the list of peripherals, and peripheral instances present in each variant.
  2. GCLK_SERCOMx_SLOW is only used by SERCOM I²C.