Have you tried just converting one channel and not multiplexing the ADC? I have had issues before because a previous channel precharged the ADC and would see the same kind of "bias" voltage even though the channel being converted is grounded.
Have you tried just converting one channel and not multiplexing the ADC? I have had issues before because a previous channel precharged the ADC and would see the same kind of "bias" voltage even though the channel being converted is grounded.
Tim Barr
Once again, Melanie, you've saved my bacon!
It was Vref+ and Vref-. This is what I needed to do:
ADCON1 = %11101000
Bit 2 "0" selects Vss (internal) for Vref-
Bits 1-0 "0" selects Vdd (internal) for Vref+
No wonder the result was screwy!
Thanks!
Tim, thanks for your note, too. I'll remember that as a troubleshooting tip for the future.
Russ
N0EVC, xWB6ONT, xWN6ONT
"Easy to use" is easy to say.
Bookmarks