Issue with Inaccurate ADC Values on S32K3

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

Issue with Inaccurate ADC Values on S32K3

ソリューションへジャンプ
1,949件の閲覧回数
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,762件の閲覧回数
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,925件の閲覧回数
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,882件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
1,930件の閲覧回数
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,822件の閲覧回数
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,763件の閲覧回数
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,927件の閲覧回数
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 件の賞賛
返信