12.5.8 Internal High-Frequency Oscillator Control A
Name: | OSCHFCTRLA |
Offset: | 0x08 |
Reset: | 0x0C |
Property: | Configuration Change Protection |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RUNSTDBY | ALGSEL | FRQSEL[3:0] | AUTOTUNE[1:0] | ||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |
Bit 7 – RUNSTDBY Run Standby
This bit controls whether the internal high-frequency oscillator (OSCHF) is always running or not.
Note:
- The requesting peripheral, or the main clock, must take the oscillator start-up time into account.
- The oscillator signal is only available if requested and will be available after two OSCHF cycles.
Value | Description |
---|---|
0 | The OSCHF oscillator will only run when requested by a peripheral or by the main clock (1) |
1 | The OSCHF oscillator will always run in Active, Idle and Standby sleep modes (2) |
Bit 6 – ALGSEL Algorithm Selection
Note:
- Using the binary search algorithm may temporarily change the oscillator output frequency to up half the tune range, affecting timing critical asynchronous peripherals running, such as the USART or a timer generating PWM waveforms.
Value | Description |
---|---|
0 | Binary search(1) |
1 | Incremental search up to five tune steps |
Bits 5:2 – FRQSEL[3:0] Frequency Select
Value | Name | Description |
---|---|---|
0x00 | 1M | 1 MHz output |
0x01 | 2M | 2 MHz output |
0x02 | 3M | 3 MHz output |
0x03 | 4M | 4 MHz output (default) |
0x04 | - | Reserved |
0x05 | 8M | 8 MHz output |
0x06 | 12M | 12 MHz output |
0x07 | 16M | 16 MHz output |
0x08 | 20M | 20 MHz output |
0x09 | 24M | 24 MHz output |
Other | - | Reserved |
Bits 1:0 – AUTOTUNE[1:0] Automatic Oscillator Tune
This bit field controls whether the internal high-frequency oscillator (OSCHF) auto-tune functionality is enabled or not.
Value | Name | Description |
---|---|---|
0x00 | OFF | Automatic oscillator frequency tune disabled |
0x01 | 32K | Automatic oscillator frequency tune against XOSC32K enabled |
0x02 | SOF | Automatic oscillator frequency tune against USB SOF enabled |