29.8.6 32 KHz External Crystal Oscillator (XOSC32K) Control

Name: XOSC32K
Offset: 0x14
Reset: 0x2080
Property: PAC Write-Protection

Bit 15141312111098 
  CGM[1:0]WRTLOCK STARTUP[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 010000 
Bit 76543210 
 ONDEMANDRUNSTDBY EN1KEN32KXTALENENABLE  
Access R/WR/WR/WR/WR/WR/W 
Reset 100000 

Bits 14:13 – CGM[1:0] Control Gain Mode

These bits control the gain of the external crystal oscillator.

ValueNameDescription
0x1XTStandard mode
0x2HSHigh Speed mode

Bit 12 – WRTLOCK Write Lock

This bit locks the XOSC32K register for future writes, effectively freezing the XOSC32K configuration.

ValueDescription
0The XOSC32K configuration is not locked.
1The XOSC32K configuration is locked.

Bits 10:8 – STARTUP[2:0] Oscillator Start-Up Time

These bits select the start-up time for the oscillator.

The OSCULP32K oscillator is used to clock the start-up counter.

Table 29-2. Start-Up Time for 32 kHz External Crystal Oscillator
STARTUP[2:0] Number of OSCULP32K Clock CyclesNumber of XOSC32K Clock CyclesApproximate Equivalent Time
 [ms]
0x02048362.592
0x140963125.092
0x2163843500.092
0x33276831000.0092
0x46553632000.0092
0x513107234000.0092
0x626214438000.0092
0x7--Reserved
Note:
  1. Actual Start-Up time is 1 OSCULP32K cycle + 3 XOSC32K cycles.
  2. The given time assumes an XTAL frequency of 32.768 kHz.

Bit 7 – ONDEMAND On Demand Control

This bit controls how the XOSC32K behaves when a peripheral clock request is detected. For details, refer to Table 29-1.

Bit 6 – RUNSTDBY Run in Standby

This bit controls how the XOSC32K behaves during standby sleep mode. For details, refer to Table 29-1.

Bit 4 – EN1K 1 kHz Output Enable

ValueDescription
0The 1.024 kHz output is disabled.
1The 1.024 kHz output is enabled.

Bit 3 – EN32K 32 kHz Output Enable

ValueDescription
0The 32.768 kHz output is disabled.
1The 32.768 kHz output is enabled.

Bit 2 – XTALEN Crystal Oscillator Enable

This bit controls the connections between the I/O pads and the external clock or crystal oscillator.
ValueDescription
0External clock connected on XIN32. XOUT32 can be used as general-purpose I/O.
1Crystal connected to XIN32/XOUT32.

Bit 1 – ENABLE Oscillator Enable

ValueDescription
0The oscillator is disabled.
1The oscillator is enabled.