PIC32MX795F512L OSC registers

The 2 registers of OSC (Oscillator and clocks), from 0xBF80F000, with their reset value and every field. The PIC32MX795F512L has 789 registers in 67 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
0xBF80F000
Reset
0x00000000
Access
read/write
Size
32-bit
15 fields
FieldBitsWhat it does
PLLODIV29:27Output Divider for PLL
  • 0 PLL output divided by 1
  • 1 PLL output divided by 2
  • 2 PLL output divided by 4
  • 3 PLL output divided by 8
  • 4 PLL output divided by 16
  • 5 PLL output divided by 32
  • 6 PLL output divided by 64
  • 7 PLL output divided by 256
FRCDIV26:24Internal Fast RC Oscillator Clock Divider bits
  • 0 FRC divided by 1
  • 1 FRC divided by 2 (default setting)
  • 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
SOSCRDY22Secondary Oscillator (SOSC) Ready Indicator bit
  • 0 Secondary Oscillator is still warming up or is turned off
  • 1 Indicates that the Secondary Oscillator is running and is stable
PBDIV20:19Peripheral Bus Clock (PBCLK) Divisor bits
  • 0 PBCLK is SYSCLK divided by 1
  • 1 PBCLK is SYSCLK divided by 2
  • 2 PBCLK is SYSCLK divided by 4
  • 3 PBCLK is SYSCLK divided by 8 (default)
PLLMULT18:16Phase-Locked Loop (PLL) Multiplier bits
  • 0 Clock is multiplied by 15
  • 1 Clock is multiplied by 16
  • 2 Clock is multiplied by 17
  • 3 Clock is multiplied by 18
  • 4 Clock is multiplied by 19
  • 5 Clock is multiplied by 20
  • 6 Clock is multiplied by 21
  • 7 Clock is multiplied by 24
COSC14:12Current Oscillator Selection bits
  • 0 Internal Fast RC (FRC) Oscillator
  • 1 Internal Fast RC Oscillator with PLL module via Postscaler (FRCPLL)
  • 2 Primary Oscillator (POSC) (XT/HS/EC)
  • 3 Primary Oscillator (POSC) with PLL module (XTPLL/HSPLL/ECPLL)
  • 4 Secondary Oscillator (SOSC)
  • 5 Internal Low-Power RC (LPRC) Oscillator
  • 6 Internal Fast RC (FRC) Oscillator divided by 16
  • 7 Internal Fast RC (FRC) Oscillator divided by OSCCON(FRCDIV) bits
NOSC10:8New Oscillator Selection bits
  • 0 Internal Fast Internal RC Oscillator (FRC)
  • 1 Internal Fast Internal RC Oscillator with PLL module via Postscaler (FRCPLL)
  • 2 Primary Oscillator (XT/HS/EC)
  • 3 Primary Oscillator with PLL module (XTPLL/HSPLL/ECPLL)
  • 4 Secondary Oscillator (SOSC)
  • 5 Internal Low-Power RC (LPRC) Oscillator
  • 6 Internal Fast RC Oscillator (FRC) divided by 16
  • 7 Internal Fast RC Oscillator (FRC) divided by OSCCON(FRCDIV) bits
CLKLOCK7Clock Selection Lock Enable bit
  • 0 (If FCKSM(1:0) is 1x) Clock and PLL selections are not locked and may be modified / (If FCKSM(1:0) is 0x) Clock and PLL selections are never locked and may be modified
  • 1 (If FCKSM(1:0) is 1x) Clock and PLL selections are locked / (If FCKSM(1:0) is 0x) Clock and PLL selections are never locked and may be modified
ULOCK6USB PLL Lock Status bit
  • 0 Indicates that the USB PLL module is out of lock or USB PLL module start-up timer is in progress or USB PLL is disabled
  • 1 Indicates that the USB PLL module is in lock or USB PLL module start-up timer is satisfied
SLOCK5PLL Lock Status bit
  • 0 PLL module is out of lock
  • 1 PLL module is in lock or PLL module start-up timer is satisfied
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
UFRCEN2USB FRC Clock Enable bit
  • 0 Use the Primary Oscillator or USB PLL as the USB clock source
  • 1 Enable FRC as the clock source for the USB clock source
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(2:0) bits

OSCTUNFRC Tuning Register

Address
0xBF80F010
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
TUN5:0FRC Oscillator Tuning bits
  • 0 Center frequency. Oscillator runs at minimal frequency (8 MHz)
  • 31 Center frequency + 12.5%
  • 32 Center frequency - 12.5%