yes thats was the problem, Actually my sensor specs do not go higher then 3.6, oddly enough I calculated 4.98. I changed the ADCON1 to have a reference voltage of 4 volt and implemented it. it now goes up to 1008, which is better. thanks for all the help k --- Jinx wrote: > > > 807. this is equivalent to a voltage of 3.7, and > the > > Vdd is at 5 volt so as the maximum input analog > > voltage. why doesn,t it go higher then 807 > > Ken, > > 807/1023 * 5 = 3.94 > > What source impedance and what acquisition time ? > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > ____________________________________________________________________________________ Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates (http://voice.yahoo.com) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist