S32K146 ADC project examples wrong readings

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

S32K146 ADC project examples wrong readings

跳至解决方案
1,931 次查看
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,918 次查看
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,919 次查看
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,907 次查看
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 项奖励
回复