cancel
Showing results for 
Search instead for 
Did you mean: 

Choosing Internal vs external Clock

DJMicro
Associate

I do a project with the newer STM32 G , C series and i am curious what are the benefits of external clock vs using the internal clock, because it will save cost and layout space ?

2 REPLIES 2
Andrew Neil
Super User

Internal RC clocks typically don't have the accuracy & stability of an external crystal or other clock source.

So check the datasheet carefully; if the specs meet your requirements, then the internal oscillators will be fine - if they don't, you'll need something else.

This is particularly important for things like UART - especially at higher baud rates.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
Super User

An HSE-based clock will be more accurate. Often needed for things like USB.

 

Apart from that, it's mostly downsides. More components, more power, potential for interference or bad layout.

TDK_0-1765983339117.png

TDK_1-1765983366676.png

 

Unless you need it for something, I'd stick with the HSI clock.

If you feel a post has answered your question, please click "Accept as Solution".