12.5.12 External High-Frequency Oscillator Control A

Name: XOSCHFCTRLA
Offset: 0x20
Reset: 0x00
Property: Configuration Change Protection

Bit 76543210 
 RUNSTDBY CSUTHF[1:0]FRQRANGE[1:0]SELHFENABLE 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bit 7 – RUNSTDBY Run Standby

This bit controls whether the External High-Frequency Oscillator (XOSCHF) is always running or not when the ENABLE bit is ‘1’.

Note:
  1. The requesting peripheral, or the main clock, must take the oscillator start-up time into account.
  2. The oscillator signal is only available if requested, and will be available after two XOSCHF cycles if the initial crystal start-up time has already ended.
ValueDescription
0The XOSCHF oscillator will only run when requested by a peripheral or by the main clock (1)
1The XOSCHF oscillator will always run in Active, Idle and Standby sleep modes (2)

Bits 5:4 – CSUTHF[1:0] Crystal Start-Up Time

This bit field controls the start-up time for the External High-Frequency Oscillator (XOSCHF) when the Source Select (SELHF) bit is ‘0’.
Note: This bit field is read-only when the ENABLE bit or the External Crystal/Clock Status (XOSCHFS) bit in the Main Clock Status (MCLKSTATUS) register is ‘1’.
ValueNameDescription
0x0256 256 XOSCHF cycles
0x11K1K XOSCHF cycles
0x24K4K XOSCHF cycles
0x3-Reserved

Bits 3:2 – FRQRANGE[1:0] Frequency Range

This bit field controls the maximum frequency supported for the external crystal. The larger the range selected, the higher the current consumption by the oscillator.

Note: If a crystal with a frequency higher than the maximum supported CLK_CPU frequency is used, and it is used as the main clock, it is necessary to divide it down by writing the appropriate configuration to the PDIV bit field in the Main Clock Control B register.
ValueNameDescription
0x08MMax. 8 MHz XTAL frequency
0x116MMax. 16 MHz XTAL frequency
0x224MMax. 24 MHz XTAL frequency
0x332MMax. 32 MHz XTAL frequency

Bit 1 – SELHF Source Select

This bit controls the source of the External High-Frequency Oscillator (XOSCHF).

Note: This bit field is read-only when the ENABLE bit or the External Crystal/Clock Status (XOSCHFS) bit in the Main Clock Status (MCLKSTATUS) register is ‘1’.
ValueNameDescription
0XTALExternal Crystal on the XTALHF1 and XTALHF2 pins
1EXTCLKExternal Clock on the XTALHF1 pin

Bit 0 – ENABLE Enable

This bit controls whether the External High-Frequency Oscillator (XOSCHF) is enabled or not.

ValueDescription
0The XOSCHF oscillator is disabled
1The XOSCHF oscillator is enabled and overrides normal port operation for the respective oscillator pins