Now you have to forget POT but use ADCIN instead. Just your POT on your PORTA, no capacitor in serie.
Your PIC have ADCs AND analog comparator on PORTA... it's useless to use POT.
Datasheet section 12.0 and 13.0.
You need to disable the comparator first.. something is right in my previous thread about that.
Bookmarks