18.7.7 External Multipurpose Crystal Oscillator Control B

Table 18-10. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: XOSCCTRLB
Offset: 0x18
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 WRTLOCK        
Access R/W 
Reset 0 
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
    GBW[1:0]GRESGMAN[1:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bit 31 – WRTLOCK Write Lock for CTRLB register

Note: Once the WRTLOCK bit is set, it can only be cleared by a reset.
ValueDescription
0The XOSCCTRLB register can be modified by a system write.
1The XOSCCTRLB register is write protected.

Bits 4:3 – GBW[1:0] AGC Gain Bandwidth (Gain Step Loop Delay)

Note:
  1. These bits are ignored if XOSCCTRLA.AGC=0, only used if XOSCCTRLA.AGC=1.
  2. The default setting should meet the vast majority of user crystal requirements. Internally, there are a maximum of 16 and a minimum of one AGC linear gain search steps the logic may utilize before locking. A lock will occur when the crystal is oscillating and the amplitude of the crystal signal is between a max and min fixed internal threshold for a fixed number of valid oscillator cycles. The GBW is the time for each of the possible AGC search steps settling time to allow the crystal to startup and amplitude to stabilize before determining if a lock is true or to continue to search for the required gain. The GBW bits represent a balance between start-up time and crystal power optimization. The lower the GBW delay time the faster the crystal start-up time but potentially at a higher crystal power level. The higher the GBW delay time the slower the crystal start-up time but with a better crystal power optimization level (i.e., less power).
  3. Use of resonators with this product have not been confirmed - use at your own discretion. When using a resonator, due to their long start-up times, it may be necessary to use a longer AGC GBW step settling time.
ValueDescription
11Reserved
10Reserved
01Update loop every ~25ms
00Update loop every ~6.25ms (Default)

Bit 2 – GRES Internal XOSC Gain Resistor

Important: If XOSCCTRLA.XTALEN = 0, clock oscillator instead of a crystal, then this bit is ignored. In all other configurations XOSCCTRLA.AGC=”x” or GMAN =0bxx this bit SHOULD always be set, XOSCCTRLB. GRES=1, by the user except in the case where the user is utilizing an external gain resistor between the XOSC XIN and XOUT pins.
ValueDescription
0Disconnect internal XOSC shunt Gain resistor (Default)
1Use internal XOSC shunt Gain resistor

Bits 1:0 – GMAN[1:0] Manual User Crystal Control Gain Setting (XOSCCTRLA.AGC=0)

Gm3 >Gm3 >Gm1>Gm0

Note: These bits are ignored if XOSCCTRLA.AGC=1.
ValueDescription
11Gain_3
10Gain_2
01Gain_1
00Gain_0 (Default)