Nucleo H723ZG ADC Sampling Problem
Hi
I'm trying to sample a sine wave between 400 and 500 kHz with the Nucleo H723ZG. I'm using the 16 bit adc 1 with following configuration:
- sampling rate: 2 MSps
- T_sampling: 16.5 clock cycles
- f_adc: 50 MHz (from PLL2P: 100 MHz)
- DMA circular mode
- continuous conversion mode
- adc trigger: regular conversion launched by software
I'm trying to calculate the correct frequency of the signal. The calculated frequency fluctuates between +-500Hz, which is not accurate enough.
The code to calculate the frequency has been tested with pre-generated values with a given frequency and works fine with an accuracy of +- 1Hz.
I already checked the reference voltage VREF, which is fine, and removed L1 (as described in https://community.st.com/t5/stm32-mcus-products/fluctuations-in-adc-value-of-stm32h743-mcu/m-p/331501#M79889).
There seems to be a problem with the sampling / sampling rate.
Any solutions will be highly appreciated .
Thank you

