AT32F421 Series Reference Manual
2022.11.11 Page 49 Rev 2.02
4.3.1 Clock control register (CRM_CTRL)
No-wait states, accessible by bytes, half-words or words.
Kept at its default value.
PLL clock stable
This bit is set by hardware after PLL is ready.
0: PLL clock is not ready.
1: PLL clock is ready.
PLL enable
This bit is set and cleared by software. It can also be
cleared by hardware when entering Standby or
Deepsleep mode. When the PLL clock is used as the
system clock, this bit cannot be cleared.
0: PLL is OFF
1: PLL is ON.
Kept at its default value.
Clock failure detector enable
0: OFF
1: ON
High speed external crystal bypass
This bit can be written only if the HEXT is disabled.
0: OFF
1: ON
High speed external crystal stable
This bit is set by hardware after HEXT becomes stable.
0: HEXT is not ready.
1: HEXT is ready.
High speed external crystal enable
This bit is set and cleared by software. It can also be
cleared by hardware when entering Standby or
Deepsleep mode. When the HEXT clock is used as the
system clock, this bit cannot be cleared
0: OFF.
1: ON
High speed internal clock calibration
The default value of this field is the initial factory
calibration value.
When the HICK output frequency is 48 MHz, it needs
adjust 240 kHz (design value) based on this frequency for
each HICKCAL value change; when HICK output
frequency is 8 MHz (design value), it needs adjust 40 kHz
based on this frequency for each HICKCAL value change.
Note: This bit can be written only if the HICKCAL_KEY[7:
0] is set as 0x5A.
High speed internal clock trimming
These bits work with the HICKCAL[7: 0] to determine the
HICK oscillator frequency. The default value is 32, which
can trim the HICK to be ±1%.
High speed internal clock stable
This bit is set by hardware after the HICK is ready.
0: Not ready
1: Ready
High speed internal clock enable
This bit is set and cleared by software. It can also be set
by hardware when exiting Standby or Deepsleep mode.
When a HEXT clock failure occurs. This bit can also be
set. When the HICK is used as the system clock, this bit
cannot be cleared.
0: Disabled
1: Enabled