PIC32CX2051MTG128 PMC registers

The 43 registers of PMC (Power Management Controller), from 0x46800000, with their reset value and every field. The PIC32CX2051MTG128 has 2875 registers in 60 peripherals, one page each.

PMC Power Management Controller

PMC_SCERSystem Clock Enable Register

Address
0x46800000
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
CPKEY23:20Coprocessor Clocks Enable Key
  • 10 This field must be written to 0xA to validate CPBMCK and CPCK.
CPBMCK17Coprocessor Bus Master Clocks Enable
PCK311Programmable Clock 3 Output Enable
PCK210Programmable Clock 2 Output Enable
PCK19Programmable Clock 1 Output Enable
PCK08Programmable Clock 0 Output Enable

PMC_SCDRSystem Clock Disable Register

Address
0x46800004
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
CPKEY23:20Coprocessor Clocks Enable Key
  • 10 This field must be written to 0xA to validate CPBMCK and CPCK.
CPBMCK17Coprocessor Bus Master Clocks Disable
PCK311Programmable Clock 3 Output Disable
PCK210Programmable Clock 2 Output Disable
PCK19Programmable Clock 1 Output Disable
PCK08Programmable Clock 0 Output Disable

PMC_SCSRSystem Clock Status Register

Address
0x46800008
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
CPBMCK17Coprocessor Bus Master Clocks Status
PCK311Programmable Clock 3 Output Status
PCK210Programmable Clock 2 Output Status
PCK19Programmable Clock 1 Output Status
PCK08Programmable Clock 0 Output Status
CPU_CLK1S1CPU_CLK Status for Core 1
CPU_CLK0S0CPU_CLK Status for Core 0

PMC_PLL_CTRL0PLL Control Register 0

Address
0x4680000C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
ENPLLO130Enable PLL Clock Output 1 (PLLA only)
ENPLLO029Enable PLL Clock Output 0
ENPLL28Enable PLL
PLLMS27PLL Multiplexer Select
DIVPMC119:12Divider for PMC output 1 (PLLA only)
DIVPMC07:0Divider for PMC output 0
ENLOCK31Enable PLL Lock

PMC_PLL_CTRL1PLL Control Register 1

Address
0x46800010
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
MUL15:0Multiplier Factor Value for PLLA, B and C

PMC_PLL_CTRL2PLL Control Register 2

Address
0x46800014
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
FRACR21:0Fractional Loop Divider Setting

PMC_PLL_SSRPLL Spread Spectrum Register

Address
0x46800018
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
ENSPREAD28Spread Spectrum Enable
NSTEP23:16Spread Spectrum Number of Step
STEP15:0Spread Spectrum Step Size

PMC_PLL_ACRPLL Analog Control Register

Address
0x4680001C
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
LOCK_THR23:16PLL Lock Threshold Value Selection
CONTROL11:0PLL Control Value Selection
LOOP_FILTER31:24PLL Loop Filter Selection

PMC_PLL_UPDTPLL Update Register

Address
0x46800020
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
STUPTIM23:16Start-up Time
UPDATE8PLL Setting Update (write-only)
ID3:0PLL ID

CKGR_MORMain Oscillator Register

Address
0x46800024
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
FieldBitsWhat it does
BMCKRST27Bad MCK0 Clock Reset Enable
XT32KFME2632.768 kHz Crystal Oscillator Frequency Monitoring Enable
CFDEN25Clock Failure Detector Enable
MOSCSEL24Main Clock Oscillator Selection
  • 0 The main RC oscillator is selected.
  • 1 The main crystal oscillator is selected.
KEY23:16Write Access Password
  • 55 Writing any other value in this field aborts the write operation. Always reads as 0.
MOSCXTST15:8Main Crystal Oscillator Start-up Time
MOSCRCEN3Main RC Oscillator Enable
WAITMODE2Wait Mode Command (write-only)
MOSCXTBY112 to 48 MHz Crystal Oscillator Bypass
MOSCXTEN0Main Crystal Oscillator Enable

CKGR_MCFRMain Clock Frequency Register

Address
0x46800028
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
CCSS24Counter Clock Source Selection
RCMEAS20RC Oscillator Frequency Measure (write-only)
MAINFRDY16Main Clock Frequency Measure Ready
MAINF15:0Main Clock Frequency

PMC_CPU_CKRCPU Clock Register

Address
0x4680002C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
RATIO_MCK0DIV226MCK0 Clock Frequency Division for MCK0DIV2 Clock
RATIO_MCK1DIV25MCK1 Clock Frequency Division for MCK1DIV Clock
RATIO_MCK0DIV24MCK0 Clock Frequency Division for MCK0DIV Clock
CPPRES23:20Coprocessor MCK1 Prescaler
  • 0 Selected clock
  • 1 Selected clock divided by 2
  • 2 Selected clock divided by 3
  • 3 Selected clock divided by 4
  • 4 Selected clock divided by 5
  • 5 Selected clock divided by 6
  • 6 Selected clock divided by 7
  • 7 Selected clock divided by 8
  • 8 Selected clock divided by 9
  • 9 Selected clock divided by 10
  • 10 Selected clock divided by 11
  • 11 Selected clock divided by 12
  • 12 Selected clock divided by 13
  • 13 Selected clock divided by 14
  • 14 Selected clock divided by 15
  • 15 Selected clock divided by 16
CPCSS18:16Coprocessor MCK1 Source Selection
  • 0 MD_SLCK is selected
  • 1 MAINCK is selected
  • 2 MCK0 is selected
  • 3 PLLACK1 is selected
  • 4 PLLBCK is selected
  • 5 PLLCCK is selected
PRES6:4Processor (CPU_CLK0) and Master Clock (MCK0) Prescaler
  • 0 Selected clock
  • 1 Selected clock divided by 2
  • 2 Selected clock divided by 4
  • 3 Selected clock divided by 8
  • 4 Selected clock divided by 16
  • 5 Selected clock divided by 32
  • 6 Selected clock divided by 64
  • 7 Selected clock divided by 3
CSS1:0Processor (CPU_CLK0) and Master Clock (MCK0) Source Selection
  • 0 MD_SLCK is selected
  • 1 MAINCK is selected
  • 2 PLLACK1 is selected
  • 3 PLLBCK is selected

PMC_PCK0Programmable Clock Register (chid = 0)

Address
0x46800044
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
PRES15:8Programmable Clock Prescaler
CSS4:0Programmable Clock Source Selection
  • 0 MD_SLCK is selected
  • 1 TD_SLCK is selected
  • 2 MAINCK is selected
  • 3 MCK0 is selected
  • 4 PLLACK1 is selected.
  • 5 PLLBCK is selected.
  • 6 PLLCCK is selected.
  • 7 PLLCSRC is selected.

PMC_PCK1Programmable Clock Register (chid = 0)

Address
0x46800048
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
PRES15:8Programmable Clock Prescaler
CSS4:0Programmable Clock Source Selection
  • 0 MD_SLCK is selected
  • 1 TD_SLCK is selected
  • 2 MAINCK is selected
  • 3 MCK0 is selected
  • 4 PLLACK1 is selected.
  • 5 PLLBCK is selected.
  • 6 PLLCCK is selected.
  • 7 PLLCSRC is selected.

PMC_PCK2Programmable Clock Register (chid = 0)

Address
0x4680004C
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
PRES15:8Programmable Clock Prescaler
CSS4:0Programmable Clock Source Selection
  • 0 MD_SLCK is selected
  • 1 TD_SLCK is selected
  • 2 MAINCK is selected
  • 3 MCK0 is selected
  • 4 PLLACK1 is selected.
  • 5 PLLBCK is selected.
  • 6 PLLCCK is selected.
  • 7 PLLCSRC is selected.

PMC_IERInterrupt Enable Register

Address
0x46800064
Reset
0x00000000
Access
write only
Size
32-bit
12 fields
FieldBitsWhat it does
MCKMON23Master Clock 0 Clock Monitor Interrupt Enable
XT32KERR2132.768 kHz Crystal Oscillator Error Interrupt Enable
CFDEV18Clock Failure Detector Event Interrupt Enable
MOSCRCS17Main RC Oscillator Status Interrupt Enable
MOSCSELS16Main Clock Source Oscillator Selection Status Interrupt Enable
PCKRDY311Programmable Clock Ready 3 Interrupt Enable
PCKRDY210Programmable Clock Ready 2 Interrupt Enable
PCKRDY19Programmable Clock Ready 1 Interrupt Enable
PCKRDY08Programmable Clock Ready 0 Interrupt Enable
CPMCKRDY4Coprocessor Master Clock Ready Interrupt Enable
MCKRDY3Master Clock 0 Ready Interrupt Enable
MOSCXTS0Main Crystal Oscillator Status Interrupt Enable

PMC_IDRInterrupt Disable Register

Address
0x46800068
Reset
0x00000000
Access
write only
Size
32-bit
12 fields
FieldBitsWhat it does
MCKMON23Master Clock 0 Clock Monitor Interrupt Disable
XT32KERR2132.768 kHz Crystal Oscillator Error Interrupt Disable
CFDEV18Clock Failure Detector Event Interrupt Disable
MOSCRCS17Main RC Status Interrupt Disable
MOSCSELS16Main Clock Source Oscillator Selection Status Interrupt Disable
PCKRDY311Programmable Clock Ready 3 Interrupt DIsable
PCKRDY210Programmable Clock Ready 2 Interrupt DIsable
PCKRDY19Programmable Clock Ready 1 Interrupt DIsable
PCKRDY08Programmable Clock Ready 0 Interrupt DIsable
CPMCKRDY4Coprocessor Master Clock Ready Interrupt Disable
MCKRDY3Master Clock 0 Ready Interrupt Disable
MOSCXTS0Main Crystal Oscillator Status Interrupt Disable

PMC_SRStatus Register

Address
0x4680006C
Reset
0x00000000
Access
read only
Size
32-bit
17 fields
FieldBitsWhat it does
PLL_INT25PLL Interrupt Status
GCLKRDY24GCLK Ready
MCKMON23Master Clock 0 Clock Monitor Error
XT32KERR21Slow Crystal Oscillator Error
FOS20Clock Failure Detector Fault Output Status
CFDS19Clock Failure Detector Status
CFDEV18Clock Failure Detector Event
MOSCRCS17Main RC Oscillator Status
MOSCSELS16Main Clock Source Oscillator Selection Status
PCKRDY311Programmable Clock Ready Status
PCKRDY210Programmable Clock Ready Status
PCKRDY19Programmable Clock Ready Status
PCKRDY08Programmable Clock Ready Status
OSCSELS7Monitoring Domain Slow Clock Source Oscillator Selection
CPMCKRDY4Coprocessor Master Clock Status
MCKRDY3Master Clock 0 Status
MOSCXTS0Main Crystal Oscillator Status

PMC_IMRInterrupt Mask Register

Address
0x46800070
Reset
0x00000000
Access
read only
Size
32-bit
12 fields
FieldBitsWhat it does
MCKMON23Master Clock 0 Monitor Error Interrupt Mask
XT32KERR2132.768 kHz Crystal Oscillator Error Interrupt Mask
CFDEV18Clock Failure Detector Event Interrupt Mask
MOSCRCS17Main RC Status Interrupt Mask
MOSCSELS16Main Clock Source Oscillator Selection Status Interrupt Mask
PCKRDY311Programmable Clock Ready 3 Interrupt Mask
PCKRDY210Programmable Clock Ready 2 Interrupt Mask
PCKRDY19Programmable Clock Ready 1 Interrupt Mask
PCKRDY08Programmable Clock Ready 0 Interrupt Mask
CPMCKRDY4Coprocessor Master Clock Ready Interrupt Mask
MCKRDY3Master Clock 0 Ready Interrupt Mask
MOSCXTS0Main Crystal Oscillator Status Interrupt Mask

PMC_FSMRFast Start-up Mode Register

Address
0x46800074
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
FFLPM23Force Flash Low-power Mode
FLPM22:21Flash Low-power Mode
  • 0 Flash is in Standby Mode when system enters Wait Mode
  • 1 Flash is in Deep-powerdown mode when system enters Wait Mode
  • 2 Idle mode
LPM20Low Power Mode
SMAL19Supply Monitor Alarm Enable
XTFA1832KHz Crystal Failure Alarm Enable
RTCAL17RTC Alarm Enable
RTTAL16RTT Alarm Enable

PMC_WCRWake-up Control Register

Address
0x46800078
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
CMD24Command
WIEN120Wake-up Input Enable 1
WIP17Wake-up Input Polarity
EN16Wake-up Input Enable
WKPIONB3:0Wake-up Input Number

PMC_FOCRFault Output Clear Register

Address
0x4680007C
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
FOCLR0Fault Output Clear

PMC_CPFSMRCoprocessor Fast Start-up Mode Register

Address
0x46800080
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
SMAL19Supply Monitor Alarm Enable
XTFA1832KHz Crystal Failure Alarm Enable
RTCAL17RTC Alarm Enable
RTTAL16RTT Alarm Enable

PMC_WPMRWrite Protection Mode Register

Address
0x46800084
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WPITEN1Write Protection Interrupt Enable
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 5262659 Writing any other value in this field aborts the write operation of the WPEN bit. Always reads as 0.

PMC_WPSRWrite Protection Status Register

Address
0x46800088
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
WPVSRC23:8Write Protection Violation Source
WPVS0Write Protection Violation Status

PMC_PCRPeripheral Control Register

Address
0x4680008C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
GCLKEN29Generic Clock Enable
EN28Enable
GCLKDIV27:20Generic Clock Division Ratio
MCKID19:16Master Clock Index (Read-only)
GCLKCSS12:8Generic Clock Source Selection
  • 0 MD_SLCK is selected
  • 1 TD_SLCK is selected
  • 2 MAINCK is selected
  • 3 MCK0 is selected
  • 4 PLLACK1 is selected.
  • 5 PLLBCK is selected.
  • 6 PLLCCK is selected.
  • 7 PLLCSRC is selected.
PID6:0Peripheral ID
CMD31Command

PMC_OCROscillator Calibration Register

Address
0x46800090
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
SEL1223Selection of Main RC Oscillator Calibration Bits
CAL1222:16Main RC Oscillator Calibration Bits

PMC_SLPWK_AIPRPartial Wake-up Activity In Progress Register

Address
0x46800094
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
AIP0Activity In Progress

PMC_SLPWKCRPartial Wake-up Control Register

Address
0x46800098
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
SLPWKSR28Partial Wake-up Sleep Register
ASR16Activity Status Register
CMD12Command
PID6:0Peripheral ID

PMC_MCKLIMMCK0 Monitor Limits Register

Address
0x468000A0
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
MCK_LOW_RES23:16MCK0 Monitoring Low RESET Limit
MCK_HIGH_IT15:8MCK0 Monitoring High IT Limit
MCK_LOW_IT7:0MCK0 Monitoring Low IT Limit
MCK_HIGH_RES31:24MCK0 Monitoring High Reset Limit

PMC_CSR0Peripheral Clock Status Register 0

Address
0x468000A4
Reset
0x00000000
Access
read only
Size
32-bit
15 fields
FieldBitsWhat it does
PID3030Peripheral Clock 30 Status
PID2828Peripheral Clock 28 Status
PID2525Peripheral Clock 25 Status
PID2424Peripheral Clock 24 Status
PID2323Peripheral Clock 23 Status
PID1717Peripheral Clock 17 Status
PID1616Peripheral Clock 16 Status
PID1515Peripheral Clock 15 Status
PID1414Peripheral Clock 14 Status
PID1313Peripheral Clock 13 Status
PID1212Peripheral Clock 12 Status
PID1111Peripheral Clock 11 Status
PID1010Peripheral Clock 10 Status
PID99Peripheral Clock 9 Status
PID3131Peripheral Clock 31 Status

PMC_CSR1Peripheral Clock Status Register 1

Address
0x468000A8
Reset
0x00000000
Access
read only
Size
32-bit
14 fields
FieldBitsWhat it does
PID5927Peripheral Clock 59 Status
PID5725Peripheral Clock 57 Status
PID5523Peripheral Clock 55 Status
PID5321Peripheral Clock 53 Status
PID5119Peripheral Clock 51 Status
PID4917Peripheral Clock 49 Status
PID397Peripheral Clock 39 Status
PID386Peripheral Clock 38 Status
PID375Peripheral Clock 37 Status
PID364Peripheral Clock 36 Status
PID353Peripheral Clock 35 Status
PID342Peripheral Clock 34 Status
PID331Peripheral Clock 33 Status
PID320Peripheral Clock 32 Status

PMC_CSR2Peripheral Clock Status Register 2

Address
0x468000AC
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
PID9127Peripheral Clock 91 Status
PID9026Peripheral Clock 90 Status
PID8925Peripheral Clock 89 Status
PID8824Peripheral Clock 88 Status
PID8723Peripheral Clock 87 Status
PID8521Peripheral Clock 85 Status
PID8117Peripheral Clock 81 Status
PID8016Peripheral Clock 80 Status
PID7915Peripheral Clock 79 Status
PID7814Peripheral Clock 78 Status
PID7511Peripheral Clock 75 Status

PMC_CSR3Peripheral Clock Status Register 3

Address
0x468000B0
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
PID960Peripheral Clock 96 Status

PMC_GCSR0Generic Clock Status Register 0

Address
0x468000C4
Reset
0x00000000
Access
read only
Size
32-bit
11 fields
FieldBitsWhat it does
GPID2424Generic Clock 24 Status
GPID2323Generic Clock 23 Status
GPID1616Generic Clock 16 Status
GPID1515Generic Clock 15 Status
GPID1414Generic Clock 14 Status
GPID1313Generic Clock 13 Status
GPID1212Generic Clock 12 Status
GPID1111Generic Clock 11 Status
GPID1010Generic Clock 10 Status
GPID99Generic Clock 9 Status
GPID3131Generic Clock 31 Status

PMC_GCSR1Generic Clock Status Register 1

Address
0x468000C8
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
GPID375Generic Clock 37 Status
GPID342Generic Clock 34 Status

PMC_GCSR2Generic Clock Status Register 2

Address
0x468000CC
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
GPID9026Generic Clock 90 Status
GPID8925Generic Clock 89 Status
GPID8723Generic Clock 87 Status
GPID7915Generic Clock 79 Status
GPID7511Generic Clock 75 Status

PMC_GCSR3Generic Clock Status Register 3

Address
0x468000D0
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
GPID960Generic Clock 96 Status

PMC_PLL_IERPLL Interrupt Enable Register

Address
0x468000E4
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
UNLOCK218PLL of Index 2 Unlock Interrupt Enable
UNLOCK117PLL of Index 1 Unlock Interrupt Enable
UNLOCK016PLL of Index 0 Unlock Interrupt Enable
LOCK22PLL of Index 2 Lock Interrupt Enable
LOCK11PLL of Index 1 Lock Interrupt Enable
LOCK00PLL of Index 0 Lock Interrupt Enable

PMC_PLL_IDRPLL Interrupt Disable Register

Address
0x468000E8
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
UNLOCK218PLL of Index 2 Unlock Interrupt Disable
UNLOCK117PLL of Index 1 Unlock Interrupt Disable
UNLOCK016PLL of Index 0 Unlock Interrupt Disable
LOCK22PLL of Index 2 Lock Interrupt Disable
LOCK11PLL of Index 1 Lock Interrupt Disable
LOCK00PLL of Index 0 Lock Interrupt Disable

PMC_PLL_IMRPLL Interrupt Mask Register

Address
0x468000EC
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
UNLOCK218PLL of Index 2 Unlock Interrupt Mask
UNLOCK117PLL of Index 1 Unlock Interrupt Mask
UNLOCK016PLL of Index 0 Unlock Interrupt Mask
LOCK22PLL of Index 2 Lock Interrupt Mask
LOCK11PLL of Index 1 Lock Interrupt Mask
LOCK00PLL of Index 0 Lock Interrupt Mask

PMC_PLL_ISR0PLL Interrupt Status Register 0

Address
0x468000F0
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
UNLOCK218PLL of Index 2 Unlock Interrupt Status
UNLOCK117PLL of Index 1 Unlock Interrupt Status
UNLOCK016PLL of Index 0 Unlock Interrupt Status
LOCK22PLL of Index 2 Lock Interrupt Status
LOCK11PLL of Index 1 Lock Interrupt Status
LOCK00PLL of Index 0 Lock Interrupt Status

PMC_PLL_ISR1PLL Interrupt Status Register 1

Address
0x468000F4
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
OVR218PLLx Overflow
OVR117PLLx Overflow
OVR016PLLx Overflow
UDR22PLLx Underflow
UDR11PLLx Underflow
UDR00PLLx Underflow