Problem with Analog Digital Converter HC908GZ32

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

Problem with Analog Digital Converter HC908GZ32

1,168 Views
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!
Labels (1)
0 Kudos
Reply
2 Replies

434 Views
monXii
Contributor III
i am using the Port A 2-7
0 Kudos
Reply

433 Views
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 Kudos
Reply