STMicroelectronics AN2867 Oscillator Design Guide for STM8S, STM8A and STM32F1 Microcontrollers

This application note introduces the Pierce oscillator basics and provides some guidelines for a good oscillator design.


STMicroelectronics AN2867 Oscillator Design Guide for STM8S, STM8A and STM32F1 Microcontrollers - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
24
File format
PDF
File size
279 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
AN2867
MD5 checksum
C3C30ECC10222CE0065AFAFDBEACC566

About this manual

This document introduces the basics of the Pierce oscillator topology and explains how to properly design an oscillator circuit to avoid deployment delays caused by non-functional crystals. It details the theoretical principles required for stable operation, including feedback resistor roles, load capacitance calculations, drive level measurements, and startup time considerations.

The guide offers practical advice on selecting suitable external components and provides a list of recommended crystal oscillators and ceramic resonators specifically for STM32F1 and STM8A/S series microcontrollers. Additionally, it includes critical PCB layout hints to minimize stray capacitance and inductance, ensuring reliable oscillator performance.

What's inside

  • Quartz crystal properties
  • Oscillator theory
  • Pierce oscillator circuitry
  • Feedback resistor RF selection
  • Load capacitor CL calculation
  • Drive level DL measurement
  • External resistor RExt calculation
  • Startup time analysis
  • Crystal pullability
  • PCB layout hints

Specifications

Applicable MicrocontrollersSTM8S, STM8A, STM32F1
Document ID15287 Rev 6

Frequently asked questions

What is the role of the feedback resistor RF in ST microcontrollers?

In most cases, RF is embedded to make the internal inverter act as an amplifier by biasing it at Vout = Vin and forcing it to operate in the linear region.

When is the external resistor RExt mandatory?

RExt is only mandatory if the dissipated power in the crystal exceeds the drive level specified by the crystal manufacturer; otherwise, its value is 0 Ω.

What PCB protection is recommended for LSE quartz and oscillator paths?

It is highly recommended to apply conformal coatings to protect against moisture, dust, humidity, and temperature extremes that may lead to startup problems.

Download PDF (279 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →