ADC output error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ADC output error

跳至解决方案
1,791 次查看
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,748 次查看
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,593 次查看
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,749 次查看
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,746 次查看
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,732 次查看
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,722 次查看
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,772 次查看
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 项奖励
回复