Skip to main content
SNorm.1
Associate III
September 22, 2021
Solved

How to choose an external crystal for STM?

  • September 22, 2021
  • 4 replies
  • 5340 views

The MCU of STM selects the external crystal, whether to choose a high frequency or a low one, what are the instructions?

For example, for stm32L486, the datasheet gives the maximum main frequency as 80MHz, so 4Mhz, 8Mhz, 16Mhz, 20Mhz, 40Mhz can be reached by multiplying the external crystal. So which frequency is the most suitable one to choose? What is the principle to choose? Are there any rules and regulations? For example, the consideration of EMI, power consumption, etc.

This topic has been closed for replies.
Best answer by Imen.D

Hello @SNorm.1​ ,

I advise you to refer to this AN2867 Application note "Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs" and check the Table 7 for recommended crystal, that may help you on your needs.

Hope this helps you!

If you are satisfied of my answer, please mark it as "Best", so that this thread will be marked as solved.

Imen

4 replies

Imen.DBest answer
Technical Moderator
September 22, 2021

Hello @SNorm.1​ ,

I advise you to refer to this AN2867 Application note "Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs" and check the Table 7 for recommended crystal, that may help you on your needs.

Hope this helps you!

If you are satisfied of my answer, please mark it as "Best", so that this thread will be marked as solved.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Javier1
Principal
September 22, 2021

Your chip doesnt care about the XTAL frequency if its within specs. (never had a problem with 8 16 or 24Mhz)

In cubeMx , the xtal resonant freq your microcontroller is expecting can be programmed.

After that ,the microcontroller will get its internal working frequency trough plls and clock wizardy.

I allways choose the oneXTAL they use in the corresponding nucleo board.... because im lazy.

hit me up in https://www.linkedin.com/in/javiermuñoz/
SNorm.1
SNorm.1Author
Associate III
September 26, 2021

Thank you for your responses! It was very helpful to me.

Technical Moderator
September 27, 2021

Hi @SNorm.1​ ,

Please select the post which is "Best Answer". This will help other users find this answer more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
S.Ma
Principal
September 26, 2021

The choice of external clock also depends on its precision over the operating range. USB, Ethernet are more demanding. The frequency may alter power consumtion as well.