MPC5746C ADC Wrong Channel

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

MPC5746C ADC Wrong Channel

743 次查看
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

标记 (2)
0 项奖励
回复
2 回复数

583 次查看
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

583 次查看
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 项奖励
回复