S32K146 ADC project examples wrong readings

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

S32K146 ADC project examples wrong readings

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

adc.jpg

Hello,

I have the EVB S32K146 and I am trying to use  adc_hwtrigger_s32k146 and adc_swtrigger_s32k146 and the readings are wrong.

No matter the value of the potentiometer, the output toggle randomly between 0.0109V and 0.0122 V

I have no problem using adc_pal_s32k146. Here the values are read correctly in SW and HW trigger mode.

I would use adc_pal_s32k146 for my project but the issue is that the ADC PAL driver has no support for DMA.

Could you please guide me on how to solve this issue?

Best regards,
Claudiu

 

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

Hi@csava

        Regarding the demo "adc_hwtrigger_s32k146",I made a test on S32K146EVB, and it works fine on my side.

Senlent_0-1637117220311.png

 

 Then test "adc_swtrigger_s32k146",

Senlent_2-1637117555436.png

       Both examples work well on S32K146EVB, so I'm pretty sure there should be no problem with these two routines, may be you can try check if the code has been modified or other reasons.

 

Those  tests based on :

SDK: S32K1xx RTM SDK 3.0.0

 IDE:  S32K Design Studio for ARM 2018.R1

Hardware:S32K146EVB

 

BR!

      Jim,

-------------------------------------------------------------------------------
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 件の賞賛
返信
2 返答(返信)
1,914件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@csava

        Regarding the demo "adc_hwtrigger_s32k146",I made a test on S32K146EVB, and it works fine on my side.

Senlent_0-1637117220311.png

 

 Then test "adc_swtrigger_s32k146",

Senlent_2-1637117555436.png

       Both examples work well on S32K146EVB, so I'm pretty sure there should be no problem with these two routines, may be you can try check if the code has been modified or other reasons.

 

Those  tests based on :

SDK: S32K1xx RTM SDK 3.0.0

 IDE:  S32K Design Studio for ARM 2018.R1

Hardware:S32K146EVB

 

BR!

      Jim,

-------------------------------------------------------------------------------
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,902件の閲覧回数
csava
Contributor I

Thank you,

The issue was that I did not generate the files for the Procesor Code, after the project was created.

Best regards,
Claudiu

0 件の賞賛
返信