Quote Originally Posted by Darrel Taylor View Post
Uno Momento por favor ...

Are you using 14-bit?
<br>
Sorry ?

I'm using the code for the 16F877 we worked on, basically just wanting to sort the analogue pots and menus out.

Code:
DEFINE ADC_BITS 10                ' Set-up ADC for fastest 10-bit results
DEFINE ADC_CLOCK 2
DEFINE ADC_SAMPLEUS 5
INCLUDE "DT_Analog.pbp"

MaxSetPoint  CON 500              ' Pot fully clockwise
MinSetPoint  CON 100              ' Pot fully counter clockwise 
ADbits = 14                       ' set A/D resolution to 14-bits
CMCON = 7                         ' disable Comparators
ADCON1 = %10000010                ' AN0-4 Analog, Right justify