2025-05-14 3:02 AM
Hi Team,
I am working on a project using the STM32H745 microcontroller, and I need to sample a 500 kHz sine wave using the ADC. I have configured the ADC with the following settings:
However, I would like to confirm:
Best Regards,
Gagan Gowda
2025-05-14 3:42 AM
Hi,
1->
sampling at 2x target frequency (500k -> 1Msps ) is nonsense - no matter, on what cpu.
2. >Are there any specific considerations or limitations I should be aware of when sampling high-frequency signals like this?
- low impedance buffer for ADC input
- high sampling frquency (for 500k sine, 5Ms would be fine), on H7 you can get 3..4Ms , so make use of it.
2025-05-14 4:45 AM
Hi @AScha.3
Thank you for your feedback.
Best Regards,
Gagan Gowda
2025-05-14 6:00 AM
In addition to Andrew Neil's recommendations ...
A sampling frequency of 1MHz is the minimum required by theory (Nyquist frequency).
This minimum only guarantees you have no alias effects.
But two samples per period tell you very little, especially not that it is a "sinus function".
It depends what you want to do with this data.
If 500kHz is the maximum expected signal frequency, 1MHz might be ok.