S32K146 ADC project examples wrong readings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K146 ADC project examples wrong readings

Jump to solution
1,305 Views
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 Kudos
Reply
1 Solution
1,292 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
1,293 Views
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 Kudos
Reply
1,281 Views
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 Kudos
Reply