ADC output error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC output error

Jump to solution
1,817 Views
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 Kudos
Reply
1 Solution
1,774 Views
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

 

View solution in original post

6 Replies
1,619 Views
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 Kudos
Reply
1,775 Views
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,772 Views
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 Kudos
Reply
1,758 Views
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 Kudos
Reply
1,748 Views
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,798 Views
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 Kudos
Reply