Thanks for looking at this for me. I should have realized that the "bas" file sets up the HWPM for me. However I am not sure this is the source of the problem. I did look at the output of the pot and it is perfectly clean with and without the capacitor. It seems to be related to the anolog sampling or calculation (I think). As for the compiling issue, I did select the correct PIC but no matter what I do the CMCON0 shows up as a syntax error for me. I ended up commenting it out and moving the analog over to a differing port so as to not have to worry about the error.
Bookmarks