ADC output error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,304件の閲覧回数
sarwath
Contributor IV

Hello Community,

S32k144 part number : FS32K144HAT0MLLT

I am facing issue with the ADC conversion.

My bus clock (48Mhz) and ADC clock (24MHz) with 12 bit resolution and 12 sample time.

Vin= 0 to 3.3v.

I am got the ADC output for my Vin (0 to 3.3). I only get results 0 or 4095. I'm not getting a linear output. Instead, I'm getting low(0) and high(4095) values . How to solve this problem.

sarwath_0-1672386860800.png

 

Thanks in advance,

Sarwath

 

0 件の賞賛
1 解決策
1,261件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @sarwath,

Can you scope the Vin signal during the conversion?

Do you use the correct channel?

Please double check the VREFH reference.

Have you tried using a longer sample time or slower ADC clock?

 

Thanks,

BR, Daniel

 

元の投稿で解決策を見る

6 返答(返信)
1,106件の閲覧回数
RachelGomez123
Contributor I

One way to reduce ADC errors is to augment the design by using larger analog components. This approach improves matching, and therefore distortion numbers, but requires more area and power.

Regards,

Rachel Gomez

0 件の賞賛
1,262件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @sarwath,

Can you scope the Vin signal during the conversion?

Do you use the correct channel?

Please double check the VREFH reference.

Have you tried using a longer sample time or slower ADC clock?

 

Thanks,

BR, Daniel

 

1,259件の閲覧回数
sarwath
Contributor IV

Hello @danielmartynek ,

I am using FIRC as my system source clock and SPLL , SOSC are disabled.

Yes I  verified the Vin signal during the conversion. It is constant 1.5v

I am using channel ADC0_SE4.

 VREFH =3.3v.

I gave longer sample time =250 and slower ADC clock =24Mhz and I am still getting the output RA as 0 or 4095.

I have attached my register values below,

 

sarwath_0-1672667235025.png

sarwath_1-1672667255467.png

 

sarwath_2-1672667269487.png

B.R,

Sarwath

 

 

0 件の賞賛
1,245件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @sarwath,

Do you use PTB0?

danielmartynek_0-1672740361479.png

What is the ADC_INTERLEAVE_EN configuration in your project?

danielmartynek_1-1672740398676.png

 

Regards,

Daniel

 

 

 

 

 

0 件の賞賛
1,235件の閲覧回数
sarwath
Contributor IV

Hello @danielmartynek ,

Thanks for your response.

We found the problem root cause. ADC VREFH and VREHL pins supply are given wrongly. Now we corrected that and adc is working good.

BR,

Sarwath

1,285件の閲覧回数
sarwath
Contributor IV

Hello,

I have attached my ADC0 register values,

RA values is 0xFFF so I am getting 4095 as my ADC0 result

sarwath_0-1672566078356.png

 

 

0 件の賞賛