Lse Osc Clock; External Source (Lse Bypass); External Crystal/Ceramic Resonator (Lse Crystal); Figure 9. External Clock - ST STM32L152-EVAL Application Note

Getting started with hardware development
Hide thumbs Also See for STM32L152-EVAL:
Table of Contents

Advertisement

Clocks
3.3

LSE OSC clock

The low-speed external clock signal (LSE) can be generated from two possible clock
sources:
LSE user external clock (see
LSE external crystal/ceramic resonator (see
Figure 9.
1. To avoid exceeding the maximum value of C
resonator with a load capacitance C
2. OSC32_IN and OSC_OUT pins can be also used as GPIOs, but it is recommended not to use them as
both RTC and GPIO pins in the same application.
3. The value of R
value is in the range of 5 to 6 R
(Oscillator design guide for ST microcontrollers).
3.3.1

External source (LSE bypass)

In this mode, an external clock source must be provided. It must have a frequency of
32.768 kHz. The external clock signal (square, sine or triangle) with a duty cycle of about
50% has to drive the OSC32_IN pin while the OSC32_OUT pin must be left high impedance
(see
Figure
3.3.2

External crystal/ceramic resonator (LSE crystal)

The LSE crystal is a 32.768 kHz low-speed external crystal or ceramic resonator. It has the
advantage of providing a low-power, but highly accurate clock source to the real-time clock
peripheral (RTC) for clock/calendar or other timing functions.
The oscillator can be switched on and off by software (default is off). When switched on, the
oscillator is not stable immediately. A bit is set in the RCC_CSR register when the oscillator
becomes stable and an interrupt can be generated if enabled in the RCC_CIR register.
The resonator and the load capacitors have to be connected as close as possible to the
oscillator pins in order to minimize output distortion and startup stabilization time. The load
capacitance values must be adjusted according to the selected oscillator (see
16/30
(1)(2)
External clock
Hardware configuration
OSC32_IN
OSC32_OUT
(Hi-Z)
External source
ai14371
L
depends on the crystal characteristics. A 0 Ω resistor works but, is not optimal. A typical
EXT
(resonator series resistance). To fine tune the R
S
9).
Doc ID 17496 Rev 5
Figure
9)
Figure
Figure 10. Crystal/ceramic resonators
and C
(15 pF), it is strongly recommended to use a
L1
L2
≤ 7 pF. Never use a resonator with a load capacitance of 12.5 pF.
10)
value refer to AN2867
S
AN3216
(2)
Figure
10).

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L152-EVAL and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32l152vbStm32l1 seriesStm32l152vbt6

Table of Contents