ADACK Setup

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADACK Setup

826件の閲覧回数
benatar
Contributor I

Hi,

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.

Thanks,

Ben.

0 件の賞賛
3 返答(返信)

585件の閲覧回数
benatar
Contributor I

Hello Mario,

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.

Thanks,

Ben.

0 件の賞賛

585件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi ben

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

Hope it helps

Mario

0 件の賞賛

585件の閲覧回数
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Ben

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 adc.png

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,

adc_equiation.png


The equation is explained in the reference manual, 35.4.4.5 Sample time and total conversion time, explains how to calculate the time and the possible options, for ADC conversions cycles.

http://www.nxp.com/files/microcontrollers/doc/ref_manual/K64P144M120SF5RM.pdf?fpsp=1&WT_TYPE=Referen...

Let me know if you have problems with the asynchronous clock source

Hope it helps

Mario

0 件の賞賛