S32k144 ADC conversion and sampling time

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

S32k144 ADC conversion and sampling time

ソリューションへジャンプ
6,352件の閲覧回数
sarwath
Contributor IV

Hello Community,

 

I am using S32K144 EVB , how to calculate the conversion and sampling time. My ADC operating frequency is 40MHZ.

sarwath_1-1665741852029.png

 

sarwath_0-1665741826046.png

 

BR,

Sarwath

0 件の賞賛
返信
1 解決策
6,307件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Your ADC TOTAL CONVERSION TIME  = 1300 ns = 0.0013 ms

and sampling rate = 1/(SMPLTS * ADC Cycle) = 1/(12 * 25 ns)  ≃ 3.33 MHz

 

 

元の投稿で解決策を見る

5 返答(返信)
6,329件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @sarwath 

Please refer to character 44.5.4.5 "Sample time and total conversion time" of the S32K1xxRM.
Also the application note AN12217: S32K1xx ADC guidelines, spec and configuration, could be useful for you, this presents information of basic topics to get the most benefit from the use of the ADC module.

 

B.R.

VaneB

 

0 件の賞賛
返信
6,315件の閲覧回数
sarwath
Contributor IV

Hello @VaneB ,

I read the RM and I found the adc total conversion formula.

ADC TOTAL CONVERSION TIME = Sample Phase Time (set by SMPLTS + 1) + Hold
Phase (1 ADC Cycle) + Compare Phase Time (8-bit Mode = 20 ADC Cycles, 10-bit
Mode = 24 ADC Cycles, 12-bit Mode = 28 ADC Cycles) + Single or First continuous
time adder (5 ADC cycles + 5 bus clock cycles).

 

My SMPLTS = 12 , Bus clk freq =40MHZ and ADC clk freq =40 MHZ.

one Bus cycle =1/bus clk freq =1/40MHZ =25ns

one Adc cycle=1/ADC clk freq =1/40MHZ =25ns

ADC TOTAL CONVERSION TIME= (12+1)+1 ADC cycles +28 ADC cycles+5 ADC cycles +5 bus clock cycles

                                                       = 47 adc cycle + 5 bus cycle.

                                                       =47 * 25 ns + 5 * 25ns

                                                       =1300 ns (~1.3 millisecond)

My total ADC conversion time is 1.3 millisecond. is this correct ?

How to understand the sampling rate ( my SMPLTS is 12).

BR,

Sarwath

 

 

0 件の賞賛
返信
6,308件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Your ADC TOTAL CONVERSION TIME  = 1300 ns = 0.0013 ms

and sampling rate = 1/(SMPLTS * ADC Cycle) = 1/(12 * 25 ns)  ≃ 3.33 MHz

 

 

6,302件の閲覧回数
sarwath
Contributor IV

Thanks @VaneB . Now I am clear about this conversion and sampling rate.

0 件の賞賛
返信
6,098件の閲覧回数
sarwath
Contributor IV

Hello @VaneB ,

How to calculate correct the sample time in ADC config. Because it is affect my adc output.

sarwath_0-1677664095976.png

Thanks in advance,

Sarwath

 

0 件の賞賛
返信