Issue with Inaccurate ADC Values on S32K3

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

Issue with Inaccurate ADC Values on S32K3

跳至解决方案
1,898 次查看
NewbieNerd
Contributor III

Dear S32K3 Team,

I am encountering an issue with inaccurate ADC readings. Here are the details:

  • I am using ADC_0 configured with a 14-bit resolution, and the issue is occurring on Channels 40 and 44. Both channels exhibit the same abnormal behavior.
  • Specifically, when the input voltage is below 4.7V, the ADC value reads approximately 132xx.
  • However, when the input voltage exceeds 4.7V, the ADC value drops to approximately 118xx.
  • The hardware correctly reads the voltage, so this appears to be a software configuration issue.

Could you please help identify the root cause of this issue and suggest potential solutions?

Best regards

0 项奖励
回复
1 解答
1,711 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

I don't understand too much what is purpose of D110. Usually current limiting resistor is used instead. It could be source of issues. Also filtering capacitor C105 seems to be too small and it should be placed towards ADC input.

Pay attention to PDF guide I have attached to following thread helping to understand how to choose external ADC components:
https://community.nxp.com/t5/S32K/Smoke-detector-interfacing-with-FS32K146HAT0MLLT/m-p/1773787?profi...

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,874 次查看
NewbieNerd
Contributor III

You are correct.

When increasing the resistance value on the ADC input voltage, the ADC result decreases, and when lowering the resistance value, the ADC result increases. However, if the voltage exceeds 4.7V, the ADC result becomes lower than the value at 4.7V (showing a value around 3.xV instead).

0 项奖励
回复
1,831 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Would you please provide scheme of connection of external ADC circuits?

0 项奖励
回复
1,879 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

You says, not only that converted value is saturated but even drops down. Is is so?

Please provide details about your measurement, connection and configuration.

0 项奖励
回复
1,771 次查看
NewbieNerd
Contributor III

Thank you for your reply!

And no worries about the delayed response due to the New Year's holiday.

I noticed an error in my previous explanation. PTC25's ADC value appears to be functioning normally, meaning that when the input voltage increases or decreases, the ADC value follows accordingly.

The issue lies with the ADC connected to PTD2.

    • At 4.6xV, the ADC output is around 132xx.
    • At 4.7xV, the ADC output drops to around 113xx.
    • When the voltage remains stable, the ADC output does not fluctuate significantly and maintains a consistent trend.

I'll share the ADC circuit diagrams with you.

adc_1.pngadc_2.png

0 项奖励
回复
1,712 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

I don't understand too much what is purpose of D110. Usually current limiting resistor is used instead. It could be source of issues. Also filtering capacitor C105 seems to be too small and it should be placed towards ADC input.

Pay attention to PDF guide I have attached to following thread helping to understand how to choose external ADC components:
https://community.nxp.com/t5/S32K/Smoke-detector-interfacing-with-FS32K146HAT0MLLT/m-p/1773787?profi...

 

0 项奖励
回复
1,876 次查看
NewbieNerd
Contributor III

Thank you for your response.

First of all, I am conducting measurements using PTC25 (ADC_S20) and PTD2 (ADC_S16).
The ADC hardware in use is ADC 0.

adc_general.pngadcgroup_0.pngadcgroup_1.pngadchw0_1.pngadchw0_2.png

0 项奖励
回复