Some Adc channels always returning 0

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

Some Adc channels always returning 0

ソリューションへジャンプ
1,815件の閲覧回数
AnthonyPinard
Contributor I

Hello all, 

I am using S32K312, RTD 2.0.3 and Tresos 29.0.0

I have a problem with the ADC module. Currently, Adc0 is SW triggered and Adc1 is triggered by the BCTU. Everything works great except for a small detail.... two channels of the Adc0 instance are always returning 0.

Six of the eight channels are returning perfectly coherent values while channels S8 and S9 always read 0 when there is in fact a voltage applied on their pin. (confirmed with scope) The NCMR1 register reads 0x0000_047B, which means the concerned channels are supposed to be converted. The 8 channels are in the same group, and they are all configured the same way. The pins are all configured as the right Adc channel.

I tried triggering Adc0 by Hw and with the BCTU, but it did not help my cause. I also tried shutting off Adc1 to see if it was interrupting Adc0. Finally, I tried triggering only the two problematic channels but, they still read 0.

Any idea what could be causing this issue? 

 

Thanks,

0 件の賞賛
返信
1 解決策
1,800件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Which two pins do you connect the analog signals of ADC0 S8 and S9 to? There is a bug in RTD 2.0.x that may cause this problem. Please see the discussion here: S32K312 - ADC Problem


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,801件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Which two pins do you connect the analog signals of ADC0 S8 and S9 to? There is a bug in RTD 2.0.x that may cause this problem. Please see the discussion here: S32K312 - ADC Problem


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
1,788件の閲覧回数
AnthonyPinard
Contributor I

Hi Robin, 

The two channels are PTA0 and PTA1. However, I noticed that the channels are triggering on pins PTB13 and PTB14, which are configured as GPIOs. 

Is it because ADC0_S8 and ADC0_S9 are supposed to be only available through the port B and not port A?

Thanks

0 件の賞賛
返信
1,763件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1902816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%B8%80%E9%83%A8%E3%81%AEADC%E3%83%81%E3%83%A3%E3%83%B3%E3%83%8D%E3%83%AB%E3%81%AF%E5%B8%B8%E3%81%AB0%E3%82%92%E8%BF%94%E3%81%97%E3%81%BE%E3%81%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1902816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%9A%86%E3%81%95%E3%82%93%E3%80%81%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%82%3C%2FP%3E%3CP%3ES32K312%E3%80%81RTD%202.0.3%E3%80%81Tresos%2029.0.0%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%3C%2FP%3E%3CP%3EADC%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E7%8F%BE%E5%9C%A8%E3%80%81Adc0%E3%81%AFSW%E3%81%A7%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%95%E3%82%8C%E3%80%81Adc1%E3%81%AFBCTU%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%E5%B0%8F%E3%81%95%E3%81%AA%E3%83%87%E3%82%A3%E3%83%86%E3%83%BC%E3%83%AB%E4%BB%A5%E5%A4%96%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8D%E3%81%BE%E3%81%99...%20Adc0%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%81%AE2%E3%81%A4%E3%81%AE%E3%83%81%E3%83%A3%E3%83%B3%E3%83%8D%E3%83%AB%E3%81%AF%E5%B8%B8%E3%81%AB0%E3%82%92%E8%BF%94%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E8%E3%81%A4%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AE%E3%81%86%E3%81%A16%E3%81%A4%E3%81%AF%E5%AE%8C%E5%85%A8%E3%81%AB%E3%82%B3%E3%83%92%E3%83%BC%E3%83%AC%E3%83%B3%E3%83%88%E3%81%AA%E5%80%A4%E3%82%92%E8%BF%94%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%83%81%E3%83%A3%E3%83%8D%E3%83%ABS8%E3%81%A8S9%E3%81%AF%E3%80%81%E5%AE%9F%E9%9A%9B%E3%81%AB%E3%81%AF%E3%83%94%E3%83%B3%E3%81%AB%E9%9B%BB%E5%9C%A7%E3%81%8C%E5%8D%B0%E5%8A%A0%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E5%B8%B8%E3%81%AB0%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82(Scope%E3%81%A7%E7%A2%BA%E8%AA%8D%E6%B8%88%E3%81%BF)NCMR1%E3%83%AC%E3%82%B8%E3%82%B9%E3%82%BF%E3%81%AF0x0000_047B%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E9%96%A2%E9%80%A3%E3%81%99%E3%82%8B%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%8C%E5%A4%89%E6%8F%9B%E3%81%95%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%828%E3%81%A4%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AF%E5%90%8C%E3%81%98%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E3%81%AB%E5%B1%9E%E3%81%97%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81%E3%81%99%E3%81%B9%E3%81%A6%E5%90%8C%E3%81%98%E6%96%B9%E6%B3%95%E3%81%A7%E6%A7%8B%E6%88%90%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%83%94%E3%83%B3%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E6%AD%A3%E3%81%97%E3%81%84ADC%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%A8%E3%81%97%E3%81%A6%E6%A7%8B%E6%88%90%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3EHw%E3%81%A8BCTU%E3%81%A7Adc0%E3%82%92%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%9D%E3%82%8C%E3%81%AF%E7%A7%81%E3%81%AE%E5%8E%9F%E5%9B%A0%E3%82%92%E5%8A%A9%E3%81%91%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%E3%81%BE%E3%81%9F%E3%80%81Adc1%20%E3%82%92%E3%82%B7%E3%83%A3%E3%83%83%E3%83%88%E3%83%80%E3%82%A6%E3%83%B3%E3%81%97%E3%81%A6%E3%80%81Adc0%20%E3%82%92%E4%B8%AD%E6%96%AD%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E6%9C%80%E5%BE%8C%E3%81%AB%E3%80%81%E5%95%8F%E9%A1%8C%E3%81%AE%E3%81%82%E3%82%8B2%E3%81%A4%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AE%E3%81%BF%E3%82%92%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%81%9D%E3%82%8C%E3%81%A7%E3%82%820%E3%81%A8%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%AE%E5%8E%9F%E5%9B%A0%E3%81%8C%E4%BD%95%E3%81%A7%E3%81%82%E3%82%8B%E3%81%8B%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1905189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A5%E6%99%82%3A%E4%B8%80%E9%83%A8%E3%81%AEADC%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AF%E5%B8%B8%E3%81%AB0%E3%82%92%E8%BF%94%E3%81%97%E3%81%BE%E3%81%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%84%E3%81%84%E3%81%88%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E3%80%81RTD%E3%81%AE%E3%83%90%E3%82%B0%E3%81%8C%E5%8E%9F%E5%9B%A0%E3%81%A7%E3%81%82%E3%82%8B%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-ADC-HAS-ADC-INTERLEAVE-problem%2Fm-p%2F1548855%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-ADC-HAS-ADC-INTERLEAVE-problem%2Fm-p%2F1548855%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E