Skip to main content
Associate
Nov 11, 2026 4:35 PM UTC
Question

Hardware Oversampling and sampling time

Good evening,

 

I am interested in learning more about how hardware oversampling actually works.

 

I have read tons of ANs and RMs but still have not understood the relation between sampling time aka the time needed for the Cadc to be charged and oversampling.

Is oversampling equal to the “switch” next to Cadc getting opened and closed more quickly and more frequently, thus getting more samples, or I am getting this all wrong?

Plus what about the Nyquist freq? Should I be careful with oversampling and why?

Any explanation will be appreciated.

 

thanks in advance.

3 replies

TDK
Nov 11, 2026 4:41 PM UTC

It takes multiple samples of the same channel instead of one. Each sample within that follows the same timing rules as it does for a single sample. So an oversampling of 2x takes twice as long. Same charging time, same conversion time.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
Nov 11, 2026 5:04 PM UTC

Thanks for your response.

But just to be sure, this means that the sampling time stays the same, and thus whatever Voltage the Cadc would charge in normal sampling is the same as in oversampling. The difference is later on, in the SAR circuit and then the oversampler?

I just do not understand the part where “it takes multiple samples”, if the part where the Cadc charges stays the same.

If you have any recommendation on datasheets, videos or anything would be really appreciated.

TDK
Nov 11, 2026 5:34 PM UTC

this means that the sampling time stays the same, and thus whatever Voltage the Cadc would charge in normal sampling is the same as in oversampling

Yes

I just do not understand the part where “it takes multiple samples”

That is what oversampling is. Multiple samples that are then postprocessed to a single reading. It’s not a separate mode where the sampling time is changed. It’s multiple single samples that are then averaged or combined in some manner. It’s exactly the same as if you took multiple samples and then post-processed them in software.

 

If you have any recommendation on datasheets, videos or anything would be really appreciated.

The RM describes the process of oversampling for this chip. Wikipedia can describe oversampling in more general terms. I’m sure if you typed up something into your favorite AI, it could explain things competently. YouTube can be searched if you prefer videos but those often leave out specifics. If you ask more specific questions, those could be answered.

https://www.st.com/resource/en/application_note/an5537-how-to-use-adc-oversampling-techniques-to-improve-signaltonoise-ratio-on-stm32-mcus-stmicroelectronics.pdf

Lots of info out there.

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