
Originally Posted by
passion1
Paul
Thank you.
When I connect the circuit ground to AN3 and convert, I get values fluctuating between 12-18.
When I connect the +5V supply to AN3, the values initially fluctuate between 248-255 and eventually stabilizes at 255.
I will be trying some of your other suggestions now and report back....
Passion,
That is good news - your ADC is working. However, ....
You should get a solid 0 and a solid 255 - Try turning off the HPWM and other stuff going on and see what you get for these conversions (i.e., leave everything off and convert these two at the beginning of your code and see what you get.)
Again...what is your power supply?-
Let us know
EDIT: Your goal is to make the ADC work alone and then slowly add your other stuff and see what is causing the problem. Then you can address it ... a systematic approach!
Last edited by paul borgmeier; - 26th July 2007 at 09:09.
Reason: more info
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks