STM32F103 LSE load capacitance calculations (RTC)
Hello STM Comunity,
I am making this post because I have reviewed many reference schematics for the use of the STM32F103C8T6, and in most of them, I see that they use 20pF load capacitors for the LSE circuit.
The datasheet literally states that the value of the load capacitors should not exceed 15pF (considering that both are of the same value) and that the load capacitance of the quartz crystal should not exceed 7pF.
It also indicates the maximun LSE driving current (1,4uA) and the oscillator transconductance gm (5uA/V)


To illustrate this a bit, I have taken as an example a crystal with the following characteristics:
- Nominal frequency (f_nom): 32,768 Khz
- Drive level (DL): 0,5uW
- Load capacitance (CL) : 7pF
- Motional resistance (ESR) typ: 65Kohm
- Motional capacitance (C1): 6,4fF
- Shunt capacitance (C0): 1,3pF
- Motional inductance (L1):3,7kH
The application note AN2867 (Guidelines for oscillator design on STM8AF/AL/S, and STM32 MCUs/MPUs) shows all the calculations needed to select the correct value of the capacitors for the LSE crystal.



Next, I am going to show an example of how I performed the calculations using a quartz crystal that has the maximum load capacitance allowed according to the datasheet. I hope this information will be useful for you in the future.
![]()
Assuming that Cstray in double-sided circuits ranges between 1pF and 2pF according to this post: https://community.st.com/t5/stm32-mcus-boards-and-hardware/stm32f103c8-production-board-schematic/m-p/140427#M4538 the formula would be like thefollowing (CStray = 1pf):
![]()
Oscillator trasconductance:
![]()
< 1uA/V
> 5
Drive level:
< 0,5uW
Taking all of the above into account and according to the calculations I have performed, the maximum capacity that the crystal load capacitors could have would be 14pF assuming that C_stray is 0 and that the quartz crystal has a CL of 7pF. Therefore, I don't understand why the schematics have 20pF capacitors for the LSE circuit. Below, I indicate some reference schematics:
- https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F103C8T6-Black_Board.pdf
- https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F103C8T6-STM32_Smart_V2.0.pdf
- https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F103C8T6-Blue_Pill.pdf
Could someone in this community explain if it is my mistake, or are the schematics I indicated above incorrect?
Thanks in advance!
