PIC32CM5164LS00048 OSCCTRL registers

The 24 registers of OSCCTRL (Oscillators Control), from 0x40001000, with their reset value and every field. The PIC32CM5164LS00048 has 2318 registers in 56 peripherals, one page each.

OSCCTRL Oscillators Control

EVCTRLEvent Control

Address
0x40001000
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2TUNEINV
  7. 1TUNEEI
  8. 0CFDEO
3 fields
FieldBitsWhat it does
TUNEINV2Tune Event Input Invert
TUNEEI1Tune Event Input Enable
CFDEO0Clock Failure Detector Event Output Enable

INTENCLRInterrupt Enable Clear

Address
0x40001004
Reset
0x00000000
Access
read/write
Size
32-bit
15 fields
FieldBitsWhat it does
DFLLRCS28DFLL Reference Clock Stopped Interrupt Enable
DFLLLCKC27DFLL Lock Coarse Interrupt Enable
DFLLLCKF26DFLL Lock Fine Interrupt Enable
DFLLOOB25DFLL Out Of Bounds Interrupt Enable
DFLLRDY24DFLL Ready Interrupt Enable
DPLLLDRTO19DPLL Loop Divider Ratio Update Complete Interrupt Enable
DPLLLTO18DPLL Lock Timeout Interrupt Enable
DPLLLCKF17DPLL Lock Fall Interrupt Enable
DPLLLCKR16DPLL Lock Rise Interrupt Enable
DFLLULPNOLOCK10DFLLULP No Lock Interrupt Enable
DFLLULPLOCK9DFLLULP Lock Interrupt Enable
DFLLULPRDY8DFLLULP Ready interrupt Enable
OSC16MRDY4OSC16M Ready Interrupt Enable
XOSCFAIL1XOSC Clock Failure Detector Interrupt Enable
XOSCRDY0XOSC Ready Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x40001008
Reset
0x00000000
Access
read/write
Size
32-bit
15 fields
FieldBitsWhat it does
DFLLRCS28DFLL Reference Clock Stopped Interrupt Enable
DFLLLCKC27DFLL Lock Coarse Interrupt Enable
DFLLLCKF26DFLL Lock Fine Interrupt Enable
DFLLOOB25DFLL Out Of Bounds Interrupt Enable
DFLLRDY24DFLL Ready Interrupt Enable
DPLLLDRTO19DPLL Loop Divider Ratio Update Complete Interrupt Enable
DPLLLTO18DPLL Lock Timeout Interrupt Enable
DPLLLCKF17DPLL Lock Fall Interrupt Enable
DPLLLCKR16DPLL Lock Rise Interrupt Enable
DFLLULPNOLOCK10DFLLULP No Lock Interrupt Enable
DFLLULPLOCK9DFLLULP Lock Interrupt Enable
DFLLULPRDY8DFLLULP Ready interrupt Enable
OSC16MRDY4OSC16M Ready Interrupt Enable
XOSCFAIL1XOSC Clock Failure Detector Interrupt Enable
XOSCRDY0XOSC Ready Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x4000100C
Reset
0x00000000
Access
read/write
Size
32-bit
15 fields
FieldBitsWhat it does
DFLLRCS28DFLL Reference Clock Stopped Interrupt Enable
DFLLLCKC27DFLL Lock Coarse Interrupt Enable
DFLLLCKF26DFLL Lock Fine Interrupt Enable
DFLLOOB25DFLL Out Of Bounds Interrupt Enable
DFLLRDY24DFLL Ready Interrupt Enable
DPLLLDRTO19DPLL Loop Divider Ratio Update Complete
DPLLLTO18DPLL Lock Timeout
DPLLLCKF17DPLL Lock Fall
DPLLLCKR16DPLL Lock Rise
DFLLULPNOLOCK10DFLLULP No Lock
DFLLULPLOCK9DFLLULP Lock
DFLLULPRDY8DFLLULP Ready
OSC16MRDY4OSC16M Ready
XOSCFAIL1XOSC Clock Failure Detector
XOSCRDY0XOSC Ready

STATUSStatus

Address
0x40001010
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
FieldBitsWhat it does
DFLLRCS28DFLL Reference Clock Stopped
DFLLLCKC27DFLL Lock Coarse
DFLLLCKF26DFLL Lock Fine
DFLLOOB25DFLL Out Of Bounds
DFLLRDY24DFLL Ready
DPLLLDRTO19DPLL Loop Divider Ratio Update Complete
DPLLLTO18DPLL Lock Timeout
DPLLLCKF17DPLL Lock Fall
DPLLLCKR16DPLL Lock Rise
DFLLULPNOLOCK10DFLLULP No Lock
DFLLULPLOCK9DFLLULP Lock
DFLLULPRDY8DFLLULP Ready
OSC16MRDY4OSC16M Ready
XOSCCKSW2XOSC Clock Switch
XOSCFAIL1XOSC Clock Failure Detector
XOSCRDY0XOSC Ready

XOSCCTRLExternal Multipurpose Crystal Oscillator (XOSC) Control

Address
0x40001014
Reset
0x0080
Access
read/write
Size
16-bit
9 fields
FieldBitsWhat it does
STARTUP15:12Start-Up Time
  • 0 1 cycle
  • 1 2 cycles
  • 2 4 cycles
  • 3 8 cycles
  • 4 16 cycles
  • 5 32 cycles
  • 6 64 cycles
  • 7 128 cycles
  • 8 256 cycles
  • 9 512 cycles
  • 10 1024 cycles
  • 11 2048 cycles
  • 12 4096 cycles
  • 13 8192 cycles
  • 14 16384 cycles
  • 15 32768 cycles
AMPGC11Automatic Amplitude Gain Control
GAIN10:8Oscillator Gain
  • 0 2MHz max
  • 1 4MHz max
  • 2 8MHz max
  • 3 16MHz max
  • 4 30MHz max
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
SWBEN4Clock Switch Back Enable
CFDEN3Clock Failure Detector Enable
XTALEN2Crystal Oscillator Enable
ENABLE1Oscillator Enable

CFDPRESCClock Failure Detector Prescaler

Address
0x40001016
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2CFDPRESC2
  7. 1CFDPRESC1
  8. 0CFDPRESC0
1 field
FieldBitsWhat it does
CFDPRESC2:0Clock Failure Detector Prescaler
  • 0 OSC16M/1
  • 1 OSC16M/2
  • 2 OSC16M/4
  • 3 OSC16M/8
  • 4 OSC16M/16
  • 5 OSC16M/32
  • 6 OSC16M/64
  • 7 OSC16M/128

OSC16MCTRL16MHz Internal Oscillator (OSC16M) Control

Address
0x40001018
Reset
0x82
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3FSEL1
  6. 2FSEL0
  7. 1ENABLE
  8. 0–
4 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
FSEL3:2Oscillator Frequency Selection
  • 0 4MHz
  • 1 8MHz
  • 2 12MHz
  • 3 16MHz
ENABLE1Oscillator Enable

DFLLULPCTRLDFLLULP Control

Address
0x4000101C
Reset
0x0504
Access
read/write
Size
16-bit
7 fields
FieldBitsWhat it does
DIV10:8Division Factor
  • 0 Frequency Divided by 1
  • 1 Frequency Divided by 2
  • 2 Frequency Divided by 4
  • 3 Frequency Divided by 8
  • 4 Frequency Divided by 16
  • 5 Frequency Divided by 32
ONDEMAND7On Demand
RUNSTDBY6Run in Standby
DITHER5Tuner Dither Mode
SAFE4Tuner Safe Mode
BINSE3Binary Search Enable
ENABLE1Enable

DFLLULPDITHERDFLLULP Dither Control

Address
0x4000101E
Reset
0x00
Access
read/write
  1. 7–
  2. 6PER2
  3. 5PER1
  4. 4PER0
  5. 3–
  6. 2STEP2
  7. 1STEP1
  8. 0STEP0
2 fields
FieldBitsWhat it does
PER6:4Dither Period
  • 0 Dither Over 1 Reference Clock Period
  • 1 Dither Over 2 Reference Clock Period
  • 2 Dither Over 4 Reference Clock Period
  • 3 Dither Over 8 Reference Clock Period
  • 4 Dither Over 16 Reference Clock Period
  • 5 Dither Over 32 Reference Clock Period
STEP2:0Dither Step
  • 0 Dither Step = 1
  • 1 Dither Step = 2
  • 2 Dither Step = 4
  • 3 Dither Step = 8

DFLLULPRREQDFLLULP Read Request

Address
0x4000101F
Reset
0x00
Access
read/write
  1. 7RREQ
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–
1 field
FieldBitsWhat it does
RREQ7Read Request

DFLLULPDLYDFLLULP Delay Value

Address
0x40001020
Reset
0x00000080
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
DELAY7:0Delay Value

DFLLULPRATIODFLLULP Target Ratio

Address
0x40001024
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
RATIO10:0Target Tuner Ratio

DFLLULPSYNCBUSYDFLLULP Synchronization Busy

Address
0x40001028
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
DELAY3Delay Register Synchronization Busy
ENABLE1Enable Bit Synchronization Busy

DFLLCTRLDFLL48M Control

Address
0x40001030
Reset
0x0080
Access
read/write
Size
16-bit
11 fields
FieldBitsWhat it does
WAITLOCK11Wait Lock
BPLCKC10Bypass Coarse Lock
QLDIS9Quick Lock Disable
CCDIS8Chill Cycle Disable
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
USBCRM5USB Clock Recovery Mode
LLAW4Lose Lock After Wake
STABLE3Stable DFLL Frequency
MODE2Operating Mode Selection
ENABLE1DFLL Enable

DFLLVALDFLL48M Value

Address
0x40001034
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
COARSE15:10Coarse Value
FINE9:0Fine Value
DIFF31:16Multiplication Ratio Difference

DFLLMULDFLL48M Multiplier

Address
0x40001038
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
FSTEP25:16Fine Maximum Step
MUL15:0DFLL Multiply Factor
CSTEP31:26Coarse Maximum Step

DFLLSYNCDFLL48M Synchronization

Address
0x4000103C
Reset
0x00
Access
read/write
  1. 7READREQ
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–
1 field
FieldBitsWhat it does
READREQ7Read Request

DPLLCTRLADPLL Control A

Address
0x40001040
Reset
0x80
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
ONDEMAND7On Demand Clock Activation
RUNSTDBY6Run in Standby
ENABLE1DPLL Enable

DPLLRATIODPLL Ratio Control

Address
0x40001044
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
LDRFRAC19:16Loop Divider Ratio Fractional Part
LDR11:0Loop Divider Ratio

DPLLCTRLBDPLL Control B

Address
0x40001048
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
DIV26:16Clock Divider
LBYPASS12Lock Bypass
LTIME10:8Lock Time
  • 0 No time-out. Automatic lock
  • 4 Time-out if no lock within 8 ms
  • 5 Time-out if no lock within 9 ms
  • 6 Time-out if no lock within 10 ms
  • 7 Time-out if no lock within 11 ms
REFCLK5:4Reference Clock Selection
  • 0 XOSC32K Clock Reference
  • 1 XOSC Clock Reference
  • 2 GCLK Clock Reference
WUF3Wake Up Fast
LPEN2Low-Power Enable
FILTER1:0Proportional Integral Filter Selection
  • 0 Default Filter Mode
  • 1 Low Bandwidth Filter
  • 2 High Bandwidth Filter
  • 3 High Damping Filter

DPLLPRESCDPLL Prescaler

Address
0x4000104C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1PRESC1
  8. 0PRESC0
1 field
FieldBitsWhat it does
PRESC1:0Output Clock Prescaler
  • 0 DPLL output is divided by 1
  • 1 DPLL output is divided by 2
  • 2 DPLL output is divided by 4

DPLLSYNCBUSYDPLL Synchronization Busy

Address
0x40001050
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3DPLLPRESC
  6. 2DPLLRATIO
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
DPLLPRESC3DPLL Prescaler Synchronization Status
DPLLRATIO2DPLL Loop Divider Ratio Synchronization Status
ENABLE1DPLL Enable Synchronization Status

DPLLSTATUSDPLL Status

Address
0x40001054
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CLKRDY
  8. 0LOCK
2 fields
FieldBitsWhat it does
CLKRDY1DPLL Clock Ready
LOCK0DPLL Lock