Clocks
3
Clocks
Three different clock sources can be used to drive the system clock (SYSCLK):
•
HSI oscillator clock (high-speed internal clock signal)
•
HSE oscillator clock (high-speed external clock signal)
•
PLL clock
The devices have two secondary clock sources:
•
40 kHz low-speed internal RC (LSI RC), driving the independent watchdog and,
optionally, the RTC used for Auto-wakeup from the Stop/Standby modes.
•
32.768 kHz low-speed external crystal (LSE crystal), optionally driving the real-time
clock (RTCCLK)
Each clock source can be switched on or off independently when it is not used, to optimize
the power consumption.
Refer to the reference manuals for the description of the clock tree:
•
RM0008 for STM32F101xx, STM32F102xx, STM32F103xx and STM32F105xx/107xx
microcontrollers
•
RM0041 for STM32F100xx value line microcontrollers
3.1
HSE OSC clock
The high-speed external clock signal (HSE) can be generated from two clock sources:
•
HSE external crystal/ceramic resonator (see
•
HSE user external clock (see
1. The value of R
(resonator series resistance).
2. Load capacitance C
pin capacitance and board or trace PCB-related capacitance. Typically, it is between 2 and 7 pF. Refer to
Section 6
12/29
Figure 6. External clock
Hardware configuration
OSC_IN
OSC_OUT
(Hi-Z)
External source
ai14369
depends upon the crystal characteristics. Typical value is in the range of 5 to 6 R
EXT
has the following formula: C
L
to minimize its value.
Figure
Figure
6)
Figure 7. Crystal/ceramic resonators
= C
x C
/ (C
L
L1
L2
AN2586 Rev 8
7)
Hardware configuration
STM32F10xxx
OSC_IN
OSC_OUT
R
C
C
L1
L2
+ C
) + C
, where: C
L1
L2
stray
(1)
EXT
ai14370
S
is the
stray
Need help?
Do you have a question about the STM32F10 Series and is the answer not in the manual?
Questions and answers