Problem with Analog Digital Converter HC908GZ32

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

Problem with Analog Digital Converter HC908GZ32

1,167件の閲覧回数
monXii
Contributor III
hello..
i have the hc908gz32 and want to convert some analog inputs!
i can read out it correctly.. i use no interrupts, only 1 conversion mode and the 8-Bit trunction mode..
if i only read 1 channel.. there is no problem.. but when i change the channel it doesnt work anymore?!
what can i do wrong at this point?
i only change the my variable.. ADSCR = channel;
this happens every second.. if i doesnt change "channel" there is no problem..
but when i change it, the ADRL is everytime like F7 - FF..

what must i do, to change the channel?
i tried to shut down the AD-Converter before changing.. but no effect..

sorry for my bad english..
hope anyone can help me.. thanks!
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

433件の閲覧回数
monXii
Contributor III
i am using the Port A 2-7
0 件の賞賛
返信

432件の閲覧回数
Denn
Contributor I
Hello Monxi,
 
Can I see your code just in case if you have not solved it? How did you initialize the ADC control registers?
 
 
Regards,
Denn
0 件の賞賛
返信