cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need an crystal Oscillator?

Ala
Senior
 
1 ACCEPTED SOLUTION

Accepted Solutions

The external crystal is needed only for USB, or when some timing task requires better accuracy than HSI.

0690X00000BwYYgQAN.png

E.g. as an asynchronous UART requires 5% accuracy, it might not work reliably in extreme temperatures.

View solution in original post

10 REPLIES 10
dbgarasiya
Senior II

you can use internal clock

Dear Dbarasiya

do you mean I don't not need to add a 8MHz crystal oscillator in my PCB?

berendi
Principal

Check the electrical characteristics chapter in the reference manual, both for ADC and the HSI internal oscillator. If they are adequate for your need, then no external components are needed apart from the decoupling capacitors.

Also read AN2834 How to get the best ADC accuracy in STM32 microcontrollers

dbgarasiya
Senior II

hope you understand what i means as @berendi​  has explained

dbgarasiya
Senior II

Best of luck

The external crystal is needed only for USB, or when some timing task requires better accuracy than HSI.

0690X00000BwYYgQAN.png

E.g. as an asynchronous UART requires 5% accuracy, it might not work reliably in extreme temperatures.

Dear berendi

your reply is very helping! thanks :folded_hands:

S.Ma
Principal

The internal frequency HSI has some tolerances across chips, temperature etc... you will get a min-max range from this.

Now check if all your peripherals are ok with this.

Using USB? Need probably HSE

Using high speed UART? Need probably HSE

Using RTC? Need probably 32.768kHz HSI

Dear .

so if I need UART, then I should add a 8MHz crystal oscillator, right?