Skip to main content
WPong.1
Associate II
October 28, 2021
Solved

How to calculate capacitor value for 32.768 kHz cystal (RTC for STM32F030R8T6)

How to calculate capacitor value for 32.768 kHz cystal (RTC for STM32F030R8T6)

This topic has been closed for replies.
PMath.4
PMath.4Best answer
Senior III
October 28, 2021

Crystals have a defined internal capacitance which you are trying to match. The two capacitors are effectively in series which halves their effective capacitance. So if you have a 10pF crystal then you need two 20pf capacitors.

EXCEPT

The circuit tracks also have capacitance and this should be taken into account to reduce slightly the required value of the capacitors. So in my example you might start with two 16pF or 2 18pF capacitors

4 replies

eeeeee
Associate III
October 28, 2021

From the reference design of the STM32F030R8T6 I see they are using two 10 pF capacitors for the LSE oscillator. Would that be enough information?

Javier1
Principal
October 28, 2021

eeeeee

hit me up in https://www.linkedin.com/in/javiermuñoz/
PMath.4
PMath.4Best answer
Senior III
October 28, 2021

Crystals have a defined internal capacitance which you are trying to match. The two capacitors are effectively in series which halves their effective capacitance. So if you have a 10pF crystal then you need two 20pf capacitors.

EXCEPT

The circuit tracks also have capacitance and this should be taken into account to reduce slightly the required value of the capacitors. So in my example you might start with two 16pF or 2 18pF capacitors

WPong.1
WPong.1Author
Associate II
October 28, 2021

Thank you. I just found this Infomation in "Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs"

0693W00000FE2l7QAD.png