bigmac,
I have turned of the port I/O using the supplied macro.
APCTL1_ADPC0 = 1; //Pot
PeterHouse,
I am using the pot for position sensing. Ignoring two end positions where there is no change, there are 25 detent positions that I need to discriminate between. That is less than 6-bit accuracy required, but the magnitude of the linearity and variation between samples means at the moment that I cannot guarantee that!
Adding a buffer amplifier is a no-go as this is a commercial product that cannot bear that cost.
There is currently a 100nF cap from the wiper to ground. I do get some noise variation on the readings but this is not an issue as its small compared to the accuracy required. There is an underlying non-linearity which at the moment I don't know if it's a loading issue or the pot itself. I will remove the pot from the board and make some resistance measurements in isolation.