Problem reading eqadc in MPC5634 in analog input 0 to 5V

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

Problem reading eqadc in MPC5634 in analog input 0 to 5V

993 Views
jorgeramon
Contributor II

When testing the program eqadc cookbook simple scan does not read the input value that is connected to a potentiometer correctly. For example, when frame 5v brand eqadc 0x2380 in the result.

 

Attached circuit and CodeWarrior in the image.

Thank you.

Labels (1)
Tags (2)
2 Replies

742 Views
jorgeramon
Contributor II

Thanks 

0 Kudos

742 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I would rather recommend to use codes from my examples shared here:

Example MPC5644A eQADC channel 146 conversion+calibration CW210 

Example MPC5674F eQADC+eDMA Single_Scan CW210 

Example MPC5674F eQADC+eDMA Continuous_Scan CW210 

 

In the past I have tried it with MPC5634M as well - I am attaching example code.