MPC5746C ADC Wrong Channel

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

MPC5746C ADC Wrong Channel

657 Views
medhedibasly
Contributor III

Hello,

I'm working with MPC574xG EVB, and i'm trying to do a simple ADC acquisition.

i took the ADC exemple and try to make it work. when reading the CDATA register i found value = 0.

but after trying different configuration it worked, the changes i made are to read the voltage from ADC1 Channel 9 instead of ADC1 Channel 0. the Pot output is connected to PB4 which correspond to ADC1_P[0], but reading the data from Channel 0 give always a 0.

is there an explication for that, or i missed some info from the RM.

Thanks,

Hedi

Tags (2)
0 Kudos
2 Replies

497 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi Heidi,

This example converts channel 3 of ADC0 and channel 9 of ADC1.

There is mistake in comment

pastedImage_1.png

regards,

Peter

497 Views
medhedibasly
Contributor III

Thank you for your reply, i already solved the issue, i missed the ADC channels mapping from the reference manual,, you can see from the table below that ADC1_P[0] is connected to channel 9, the confusion i did was to link the index of the Name to the ADC channel, but the correct analyse is to check the ADC channels mapping from the reference manual.

pastedImage_3.png

0 Kudos