Hi, Champion

DO NOT use POT for quite precise measurements ... doesn't worth ANYTHING.

( Just good to make a 2 Wires 16 Keys Keypad ... or 16 positions switch !!! )

The first bearable approach for measuring is to use RCTime, but you WON'T measure 0 - 5v

Only 1.5v - 5v ... due to the Pic Inputs.

With cap tied to Vcc and R tied to ground, you should have ~ T = 1.2*R*C ... !!!

Think to let enough time for the capacitor to be fully charged before measuring ...

If really precise measure ... think to ADC 831 ... or easier, 16F684,688,819 or ...16F88


Alain