PIC32MK1024GPK100 REFO2 registers

The 2 registers of REFO2 (Reference clock output 2), from 0xBF8012A0, with their reset value and every field. The PIC32MK1024GPK100 has 1208 registers in 107 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.

REFO2 Reference clock output 2

REFO2CONReference Oscillator Control Register

Address
0xBF8012A0
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
RODIV30:16Reference Clock Divider bits
ON15Output Enable bit
  • 0 Reference Oscillator Module disabled
  • 1 Reference Oscillator Module enabled
SIDL13Peripheral Stop in Idle Mode bit
  • 0 Continue module operation in Idle mode
  • 1 Discontinue module operation when the device enters Idle mode
OE12Reference Clock Output Enable bit
  • 0 Reference clock is not driven out on REFCLKOx pin
  • 1 Reference clock is driven out on REFCLKOx pin
RSLP11Reference Oscillator Module Run in Sleep bit
  • 0 Reference Oscillator Module output is disabled in Sleep
  • 1 Reference Oscillator Module output continues to run in Sleep
DIVSWEN9Divider Switch Enable bit
  • 0 Divider switch is complete
  • 1 Divider switch is in progress
ACTIVE8Reference Clock Request Status bit
  • 0 Reference clock request is not active
  • 1 Reference clock request is active
ROSEL3:0Reference Clock Source Select bits
  • 0 System clock SYSCLK
  • 1 Peripheral Clock 1 PBCLK1
  • 2 Primary Oscillator POSC
  • 3 Internal Fast Oscillator FRC
  • 4 Low Power Oscillator LPRC
  • 5 Secondary Oscillator SOSC
  • 6 USB PLL UPLL
  • 7 System PLL Output SPLL
  • 8 Reference Clock Input REFCLKI

REFO2TRIMReference Oscillator Trim Register (x = 1-4)

Address
0xBF8012B0
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
ROTRIM31:23Reference Oscillator Trim bits
  • 0 0 divisor added to RODIV value
  • 1 1/512 divisor added to RODIV value
  • 2 2/512 divisor added to RODIV value
  • 256 256/512 divisor added to RODIV value
  • 510 510/512 divisor added to RODIV value
  • 511 511/512 divisor added to RODIV value