I imagine that you are only seeing 2 digits of a much larger number that was calculated wrong because either the A/D wasn't set up right or a variable size is wrong.
Make sure you have these in your program.
Code:temp_word VAR WORD VDD VAR WORD DEFINE ADC_BITS 10 ADCON0.7 = 1
Bookmarks