MPC5746C ADC Wrong Channel

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5746C ADC Wrong Channel

734件の閲覧回数
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 返答(返信)

574件の閲覧回数
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

574件の閲覧回数
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 件の賞賛
返信