Example: tourism industry

AN2867 Application note

October 2021AN2867 Rev 151/591AN2867 Application noteOscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs IntroductionMany designers know oscillators based on Pierce-Gate topology (hereinafter referred to as Pierce oscillators), but not all of them really understand how they operate, and only a few master their design. In practice, limited attention is paid to the oscillator design, until it is found that it does not operate properly (usually when the product where it is embedded is already being produced). A crystal not working as intended results in project delays if not overall oscillator must get the proper amount of attention during the design phase, well before moving to manufacturing, to avoid the nightmare scenario of products being returned from the applica

required to make the crystal oscillate at the nominal frequency. Table . 2. gives an example of equivalent crystal circuit component values to have a nominal frequency of 8 MHz. Table 2. Example of equi. Using equations (2), (3) and (4) it is possible to determine F. s, F. a. and F. p. of this crystal: F. s = 7988768 Hz F. a = 8008102 Hz If the ...

Tags:

  Notes, Make

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of AN2867 Application note

1 October 2021AN2867 Rev 151/591AN2867 Application noteOscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs IntroductionMany designers know oscillators based on Pierce-Gate topology (hereinafter referred to as Pierce oscillators), but not all of them really understand how they operate, and only a few master their design. In practice, limited attention is paid to the oscillator design, until it is found that it does not operate properly (usually when the product where it is embedded is already being produced). A crystal not working as intended results in project delays if not overall oscillator must get the proper amount of attention during the design phase, well before moving to manufacturing, to avoid the nightmare scenario of products being returned from the Application note introduces the Pierce oscillator basics and provides guidelines for the oscillator design.

2 It also shows how to determine the different external components, and provides guidelines for correct PCB design and for selecting suitable crystals and external speed-up the Application development the recommended crystals (HSE and LSE) for the products listed in Table 1 are detailed in Section 5: Recommended resonators for STM32 MCUs/MPUs and Section 6: Recommended crystals for STM8AF/AL/S microcontrollers. Table 1. Applicable productsTypeProduct categoriesMicrocontrollersSTM8S Series, STM8AF Series and STM8AL SeriesSTM32 32-bit Arm Cortex MCUsMicroprocessorsSTM32 Arm Cortex Rev 15 Contents1 Quartz crystal properties and model.

3 62 Oscillator theory .. resistance .. oscillator principles .. 103 Pierce oscillator design .. to Pierce oscillators .. resistor .. capacitance .. transconductance .. level and external resistor calculation .. the drive level .. drive level measurement method .. the external resistor .. time .. pullability .. factor .. methodology .. factor for STM32 and STM8 oscillators .. modes .. are fundamental and overtone modes? .. overtone mode: pros and cons.

4 For crystals interfaced with STM32 products .. 224 Guidelines to select a suitable crystal and external components .. oscillators embedded in STM32 MCUs/MPUs .. to select an STM32-compatible crystal .. 265 Recommended resonators for STM32 MCUs/MPUs .. 29AN2867 Rev 153 high-speed resonators .. low-speed resonators .. 296 Recommended crystals for STM8AF/AL/S microcontrollers .. numbers of recommended crystal oscillators .. ceramic resonators .. 447 Tips for improving oscillator stability.

5 Design guidelines .. design examples .. guidelines .. sensitivity to PC13 activity .. 518 Reference documents .. 539 FAQs .. 5410 Conclusion .. 5511 Revision history .. 56 List of tablesAN28674/59AN2867 Rev 15 List of tablesTable products .. 1 Table of equivalent circuit parameters .. 7 Table feedback resistor values for given frequencies .. 12 Table factor (Sf) for STM32 and STM8 oscillators.. 19 Table oscillators embedded into STM32 MCUs/MPUs .. 25 Table oscillators embedded in STM32 MCUs/MPUs.

6 29 Table crystal / MEMS resonators for the LSE oscillator in STM32 products .. 30 Table compatible crystals (not exhaustive list).. 43 Table compatible crystals (not exhaustive list).. 43 Table conditions (for consumer) .. 44 Table conditions (for CAN-BUS) .. 44 Table revision history .. 56AN2867 Rev 155/59AN2867 List of figures5 List of figuresFigure crystal model .. 6 Figure in the frequency domain.. 6 Figure curve of a dipole showing a negative trans-resistance area (in purple) .. 9 Figure diagram of a typical oscillation loop based on a crystal resonator.

7 10 Figure oscillator circuitry .. 11 Figure transfer function .. 12 Figure drive measurement with a current probe .. 15 Figure resistance measurement methodology description .. 19 Figure and overtone frequencies of an AT-cut quartz crystal .. 20 Figure crystal theoretical model with third overtone.. 21 Figure implementation for third overtone .. 21 Figure of low-speed crystal resonators .. 23 Figure layout for an oscillator circuit .. 46 Figure with separated GND plane and guard ring around the oscillator.

8 47 Figure plane .. 47 Figure around the oscillator.. 47 Figure design (PCB design guidelines not respected) .. 48 Figure design (following guidelines) .. 49 Figure plane .. 49 Figure layer view.. 49 Figure guidelines not respected .. 50 Figure guidelines respected .. 51 Quartz crystal properties and modelAN28676/59AN2867 Rev 151 Quartz crystal properties and modelA quartz crystal is a piezoelectric device converting electric energy into mechanical energy and vice versa. The transformation occurs at the resonant frequency.

9 The quartz crystal can be modeled as shown in Figure 1. Quartz crystal model C0: represents the shunt capacitance resulting from the capacitor formed by the electrodes Lm (motional inductance): represents the vibrating mass of the crystal Cm (motional capacitance): represents the elasticity of the crystal Rm (motional resistance): represents the circuit lossesThe impedance of the crystal (assuming that Rm is negligible) is given by equationZjw----w2Lm Cm 1 C0Cm+ w2Lm Cm C0 ---------------------------------------- ---------------------------------------- ------- =Figure 2 represents the impedance in the frequency 2.

10 Impedance in the frequency domain(1)MS36117V1QC0 RmCmLmFsFaImpedanceInductive behavior:the quartz oscillatesArea of parallelresonance: FpCapacitive behavior:no oscillationPhase (deg)FrequencyFrequency+90 90ai15834bAN2867 Rev 157/59AN2867 Quartz crystal properties and model58Fs is the series resonant frequency when the impedance Z = 0. Its expression can be deduced from equation (1) as follows:Fs12 LmCm------------------------------=Fa is the anti-resonant frequency when impedance Z tends to infinity. Using equation (1), it is expressed as follows:FaFs1 CmC0---------+=The region delimited by Fs and Fa is usually called the area of parallel resonance (shaded area in Figure 2).


Related search queries