if you're using POT you have it wrong. look in the PBP manual. Depending your POT impedance, the capacitor might be too low... i hate POT. your PIC have ADCs.... just use it with ADCIN and set the according i/o properly.