cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 ADC can capture the maximum frequency of sine waves

hanqingze
Associate

The maximum sampling rate of STM32H743 ADC1 and ADC2 is 3.6MSPS. According to the aroma sampling principle, the maximum sine wave frequency that can be collected is 1.8MHz. I don't know if I understand it this way, right? I want to collect higher-frequency sine waves. Is there any way to use the built-in ADC? Can reducing the number of bits improve the sampling rate and collect higher-frequency sine waves?

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

>Can reducing the number of bits improve the sampling rate and collect higher-frequency sine waves?

Yes.  🙂

see ds :

AScha3_0-1714977885741.png

So up to 8 msps in 8bit mode possible; with all 3 ADCs interleaved up to 24msps .

 

+ see :

https://www.eevblog.com/forum/microcontrollers/stm32-triple-interleaved-example-code-by-st/

 

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

View solution in original post

3 REPLIES 3
LCE
Principal

Can reducing the number of bits improve the sampling rate and collect higher-frequency sine waves?

No.

Edit: see AScha.3's response below, seems I was wrong... I didn't know about that ADC feature. 

You cannot trick Mr. Nyquist (okay, there are a very few exceptions under very special conditions).

PS: look for some better translator, or is "aroma sampling principle" something I don't know? 😉 

AScha.3
Chief II

>Can reducing the number of bits improve the sampling rate and collect higher-frequency sine waves?

Yes.  🙂

see ds :

AScha3_0-1714977885741.png

So up to 8 msps in 8bit mode possible; with all 3 ADCs interleaved up to 24msps .

 

+ see :

https://www.eevblog.com/forum/microcontrollers/stm32-triple-interleaved-example-code-by-st/

 

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

You can sample any sine of any frequency. You just cannot reconstruct them from the samples if they are above the Nyquist frequency as you then have frequency folding (sampling 9MHz signal with 5MHz reconstructs to a 1MHz signal). However in some cases frequency folding can be beneficial such as using interleaved ADCs or undersampling. But in that case you need a higher analog bandwidth of your ADC, since a signal that's already filtered out can of course not be sampled. So you need to verify that by checking the datasheet.

One common misunderstanding about Nyquist is that you can sample signals (without folding) up to and including Fs/2. This is false as signals at Fs/2 appear as a constant signal (DC). So you can only sample below Fs/2. And in practice you want to go much lower because because your nyquist filter is not a perfect filter so it needs a lower cut off frequency then Fs/2 in order to filter out unwanted signals enough. Also filters distort amplitude and phase of signals in the passband close to the cut off frequency. For instance a 8MHz ADC with a 5th order low pass filter with a cutoff frequency of 2MHz. Signals at 4MHz are reduced in amplitude by 30dB. Signals between 2MHz and 4MHz have reduced amplitude (and therefore also reduced resolution). Signals below 2MHz can then be accurately captured. Don't forget to take into account the bandwidth of the ADC.

As AScha.3 pointed out you can achieve higher sampling rates at different resolutions and configurations for your ADC.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.