PIC32MM0256GPM028 OSC registers

The 4 registers of OSC (Oscillator and clocks), from 0xBF802680, with their reset value and every field. The PIC32MM0256GPM028 has 419 registers in 52 peripherals, one page each.

Most PIC32 SFRs have three more registers right after them: CLR at +4, SET at +8 and INV at +C (T1CONCLR, T1CONSET, T1CONINV), which clear, set or flip just the bits written as 1, in one write.

OSC Oscillator and clocks

OSCCONOscillator Control Register

Address
0xBF802680
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
FieldBitsWhat it does
FRCDIV26:24Internal Fast RC Oscillator Clock Divider bits
  • 0 FRC divided by 1 (default setting)
  • 1 FRC divided by 2
  • 2 FRC divided by 4
  • 3 FRC divided by 8
  • 4 FRC divided by 16
  • 5 FRC divided by 32
  • 6 FRC divided by 64
  • 7 FRC divided by 256
DRMEN23
SLP2SPD21
COSC14:12Current Oscillator Selection bits
  • 0 Internal Fast RC (FRC) Oscillator divided by FRCDIV bits (FRCDIV)
  • 1 System PLL (SPLL)
  • 2 Primary Oscillator (POSC) (HS or EC)
  • 3 Reserved
  • 4 Secondary Oscillator (SOSC)
  • 5 Internal Low-Power RC (LPRC) Oscillator
  • 6 Reserved
  • 7 Reserved
NOSC10:8New Oscillator Selection bits
  • 0 Internal Fast RC (FRC) Oscillator divided by FRCDIV bits (FRCDIV)
  • 1 System PLL (SPLL)
  • 2 Primary Oscillator (POSC) (HS or EC)
  • 3 Reserved
  • 4 Secondary Oscillator (SOSC)
  • 5 Internal Low-Power RC (LPRC) Oscillator
  • 6 Reserved
  • 7 Reserved
CLKLOCK7Clock Selection Lock Enable bit
  • 0 Clock and PLL selections are not locked and may be modified
  • 1 Clock and PLL selections are locked
SLPEN4Sleep Mode Enable bit
  • 0 Device will enter Idle mode when a WAIT instruction is executed
  • 1 Device will enter Sleep mode when a WAIT instruction is executed
CF3Clock Fail Detect bit
  • 0 No clock failure has been detected
  • 1 FSCM has detected a clock failure
SOSCEN1Secondary Oscillator Enable bit
  • 0 Disable Secondary Oscillator
  • 1 Enable Secondary Oscillator
OSWEN0Oscillator Switch Enable bit
  • 0 Oscillator switch is complete
  • 1 Initiate an oscillator switch to selection specified by NOSC bits

SPLLCONSystem PLL Control Register

Address
0xBF8026A0
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
PLLODIV26:24System PLL Output Clock Divider bits
  • 0 PLL Divide by 1
  • 1 PLL Divide by 2
  • 2 PLL Divide by 4
  • 3 PLL Divide by 8
  • 4 PLL Divide by 16
  • 5 PLL Divide by 32
  • 6 PLL Divide by 64
  • 7 PLL Divide by 256
PLLMULT22:16System PLL Multiplier bits
  • 0 Multiply by 2
  • 1 Multiply by 3
  • 2 Multiply by 4
  • 3 Multiply by 6
  • 4 Multiply by 8
  • 5 Multiply by 12
  • 6 Multiply by 24
PLLICLK7System PLL Input Clock Source bit
  • 0 POSC is selected as the input to the System PLL
  • 1 FRC is selected as the input to the System PLL

CLKSTATOscillator Clock Status Register

Address
0xBF802770
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
SPLLRDY7System PLL (SPLL) Ready Status bit
  • 0 SPLL is not ready
  • 1 SPLL is ready
LPRCRDY5Low-Power RC (LPRC) Oscillator Ready Status bit
  • 0 LPRC is disabled or not operating
  • 1 LPRC is stable and ready
SOSCRDY4Secondary Oscillator (SOSC) Ready Status bit
  • 0 SOSC is disabled or not operating
  • 1 SOSC is stable and ready
POSCRDY2Primary Oscillator (POSC) Ready Status bit
  • 0 POSC is disabled or not operating
  • 1 POSC is stable and ready
SPDIVRDY1System PLL Ready Status bit
  • 0 Divided System PLL is not ready
  • 1 Divided System PLL is ready
FRCRDY0Fast RC (FRC) Oscillator Ready Status bit
  • 0 FRC is disabled for not operating
  • 1 FRC is stable and ready

OSCTUNFRC Tuning Register

Address
0xBF802880
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
ON15
SIDL13
SRC12
LOCK11
POL10
OR9
ORPOL8
TUN5:0FRC Oscillator Tuning bits
  • 0 Center frequency; Oscillator runs at nominal frequency (8 MHz)
  • 31 Center frequency +1.453%
  • 32 Center frequency -1.5%