Hi,
Let's see
Ambient temp is ~ 300°K LM 135 outputs 3v
ADC Counts = 3/5*256 = 153 ... that's OK
mmmmmmh, what about connecting AN3 input to Vss ... and making it an input (!)
or MUCH BETTER correcting your ADCON1 settings ...
cause , for now, you do not have any Vref at all ...
AND you've forgotten to connect the second GND ( or VSS ) PIN !!!
Alain
Last edited by Acetronics2; - 3rd April 2008 at 16:09.
Reason: GND PIn !
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks