18.6.10 Reference Oscillator x Control

Note:
  • Do not write REFOCON.ROSEL while the REFOCON.ACTIVE bit is ‘1’. This results in undefined behavior.
  • Do not write REFOCON when REFOCON.ON != REFOCON.ACTIVE. This results in undefined behavior.
  • This register can always be accessed regardless of the SYSKEY value.
Name: REFOxCON
Offset: 0x28 + (x-1)*0x08 [x=1..6]
Reset: 0x00000000

Bit 3130292827262524 
  RODIV14RODIV13RODIV12RODIV11RODIV10RODIV9RODIV8 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 2322212019181716 
 RODIV7RODIV6RODIV5RODIV4RODIV3RODIV2RODIV1RODIV0 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 ONFRZSIDLOERSLP DIVSW_ENACTIVE 
Access R/WR/WR/WR/WR/WHC/ R/WHS/HC/ R 
Reset 0000000 
Bit 76543210 
     ROSEL3ROSEL2ROSEL1ROSEL0 
Access R/WR/WR/WR/W 
Reset 0000 

Bits 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 – RODIV Reference Clock Divider bits

Specifies 1/2 period of reference clock in the source clocks.

For example, period of REFO_CLK = [Reference source * 2] * RODIV.

ValueDescription
0x7FFFREFOx clock is Base clock frequency divided by 65,534 (32,767 *2)
0x7FFEREFOx clock is Base clock frequency divided by 65,532 (32,766 * 2)
...
...
...
0x0003REFOx clock is Base clock frequency divided by 6 (3*2)
0x0002REFOx clock is Base clock frequency divided by 4 (2*2)
0x0001REFOx clock is Base clock frequency divided by 2 (1*2)
0x0000REFOx clock is same frequency as Base clock (no divider)

Bit 15 – ON Output Enable bit

ValueDescription
1Enables the Reference Oscillator Module
0Disables the Reference Oscillator Module

Bit 14 – FRZ Freeze in Debug mode bit

ValueDescription
1When emulator is in the Debug mode, module freezes operation
0When emulator is in the Debug mode, module continues operation

Bit 13 – SIDL Peripheral Stop in Idle Mode bit

ValueDescription
1Discontinue module operation when device enters the Idle mode
0Continues module operation in the Idle mode

Bit 12 – OE Reference Clock Output Enable bit

ValueDescription
1Reference clock is driven out on REFOx pin
0Reference clock is not driven out on REFOx pin

Bit 11 – RSLP Reference Oscillator Run in Standby Sleep bit

Note: This bit is ignored when ROSEL[3:0] = (0000 or 0001).
ValueDescription
1Reference Oscillator output continues to run in Standby Sleep
0Reference Oscillator output is disabled in Standby Sleep

Bit 9 – DIVSW_EN Clock RODIV/ROTRIM switch enabled

ValueDescription
1Clock Divider Switching is in progress
0Clock Divider Switch is completed

Bit 8 – ACTIVE Reference Clock Request Status bit

ValueDescription
1Reference clock request is active (User must not update this REFOCON register)
0Reference clock request is not active (User can update this REFOCON register)

Bits 0, 1, 2, 3 – ROSEL Reference Clock Source Select bits

Select one of various clock sources to be used as the reference clock.
ValueDescription
1100-1111Reserved
1011REFI Pin
1010System clock, SYS_CLK (reference clock reflects any device clock switching)
1001Peripheral clock, PB1_CLK (reference clock reflects any peripheral clock switching)
1000 Ethernet PLL (Clock-1)
0111 System PLL (Clock-3), SPLL_CLK3
0110USB PLL (Clock-1)
0101Ethernet PLL (Clock-2)
0100LPRC
0011SOSC
0010POSC
0001System PLL (Clock-1), SPLL_CLK1
0000FRC