2023-06-09 07:04 AM
I have set the ADC clock frequency to 80 MHz and I am operating the ADC1 and ADC2 in dual regular simultaneous mode where sampling cycles I have set to 2.5cycles each, so what will be the sampling frequency for the signal?
2023-06-09 07:31 AM
From calculations:
Total conversion time = (2.5 + 12.5) / 80MHz
so, Sampling Frequency = 80 / (2.5 + 12.5) = 5.33MS/s = 5 MHz for each ADC.
But what happens when it operates in dual regular simultaneous mode? Does it get half/same/doubled?
When I capture the input signal of 100KHz and plot FFT; at 2MS/s I get a correct FFT peak frequency not at 5.3MS/s. 2MS/s is not even a half of 5.33MS/s.
Please help with the calculations.
2023-06-09 08:47 AM
>in dual regular simultaneous mode?>Does it get half/same/doubled?
no, nothing. you just get result of both adc at same time , in their data registers.
2023-06-09 09:05 AM
Yes agree but what is the sampling time for the both ADCs?
2023-06-11 11:56 PM
I think if your ADC clock are 80 MHz- then 15 ADC cycles takes 187,5 nsec. If you have regular simultaneous mode, it will still takes 187.5 nsec, but you should have 2 results (one from each ADC).
Did you try to measure it? If not, try to measure how long takes to get e.g. 500 samples (ideally using DMA) - then you can compare.
Also you can double check ADC clock - do you have sync or async clock?
2023-06-12 03:17 AM
I have a async clock. After conversion, I am serially transmitting data to MATLAB and there checking the FFT. There at 2MHz I am getting the correct frequency.
How do you measure the time required to convert some x no. of samples?
2023-06-12 03:56 AM
you can turn some pin to high, then start to measure 500 samples and when finished you turn the same pin to low - on osciloscope you can measure the time...
Probably your sampling freq will be different then you expect