Problem with Analog Digital Converter HC908GZ32

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

Problem with Analog Digital Converter HC908GZ32

1,495 次查看
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 回复数

761 次查看
monXii
Contributor III
i am using the Port A 2-7
0 项奖励
回复

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