Skip to main content
Associate II
Mar 15, 2024 11:04 AM UTC
Question

Choosing clock source for ADC

Hi There,

I am using STM32C031C6 evaluation board. I am using ADC_IN1 for the ADC measurement. I want to use internal clock source for my board. I want a stable ADC output. 

1. Which internal clock source should I choose for the stable ADC output?

a) HSI48 (48 MHz)

or

b) LSI (32 kHz) 

STM32C031C6 has sampling rate of 2.5MSps. I am going to use less samples. I want a stable ADC output. 

 

Kindly give your suggestions and answers. Thanks in advance!

This topic has been closed for replies.

7 replies

AScha.3
Super User
Mar 15, 2024 11:14 AM UTC

Hi,

HSI48 , or (best) HSE (also 48M).

 

AScha3_0-1710501354663.png

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II
Mar 15, 2024 11:23 AM UTC

Thanks @AScha.3 !

Unfortunately, I want to use Internal Clock Source. HSE is an external source.

TDK
Mar 15, 2024 1:38 PM UTC

Use the default 48 MHz HSI48.

"If you feel a post has answered your question, please click ""Accept as Solution""."
mƎALLEm
ST Technical Moderator
Mar 15, 2024 2:06 PM UTC

Hello,

I want a stable ADC output. 

What do you mean by stable? how much?

According to the STM32C031 datasheet these clock sources jitter depends on the voltage and the temperature.  So you need to assess this "stability" according to your final product environment/needs.

 

SofLit_0-1710511417109.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate II
Mar 18, 2024 3:07 AM UTC

The table shows the frequency produced by the oscillators and its characteristics. 

I want to measure accurate voltage given to ADC_IN1 pin. The measurement should be accurate and stable.

mƎALLEm
ST Technical Moderator
Mar 18, 2024 7:21 AM UTC

Hello,

I thought you were referring to "sampling jitter" not the stability of the conversion. In that case you can refer to the AN2834 "How to optimize the ADC accuracy in the STM32 MCUs".

Check your VDDA/Vref+ power supply. The averaging samples is one of the technics to get more stable conversion.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
ST Employee
Mar 18, 2024 11:57 AM UTC

Hi All,

 

This question has been routed to our online support center for direct support.

 

Regards,
Jake

ST Support