Im trying to understand how is the value of ADACK calculated.
Im using the Asynchronous mode for clocking the ADC (ADICLK=11) and ADIV=11 (divide by 8).
The core clock runs at 120Mhz.
Which board are you using?
For example if you are using the FRDM K64F you can check the datasheet document chapter 3 ADC Electrical Characteristics
As you can see the frequency depends of the configuration of the ADLPC register CFG1 and ADHSC register CFG2.
And if you want to calculate the ADC time conversion you can check the following equation,
The equation is explained in the reference manual, 184.108.40.206 Sample time and total conversion time, explains how to calculate the time and the possible options, for ADC conversions cycles.
Let me know if you have problems with the asynchronous clock source
Hope it helps
Thanks for replying.
I am using the app. sample in the SDK marked as adc16\polling as the base for testing the ADC.
The board is a customized K22FN512 based board.
In order to post process the samples (FFTs etc.) i need to know the exact sampling rate, so the range, as an example of 3Ms to 7.3Ms is not accurate enough.
The sampling rate in asynchronous mode, could change depending of a lot of factors, for example the temperature, but if you want to calculate the exact sampling rate, I recommend you to use the bus clock for conversion time.
Let me know if you have problems with the conversion time
Retrieving data ...