I think this would be the right place to ask this. I have a 18F26K80 that I'm trying to turn off the A/D on the A ports.

I tried the following;
ADCON0=$00 'switch the Analogue A/D pins to Digital I/O mode.
ADCON1=7 'switch the Analogue A/D pins to Digital I/O mode.
ADCON2=$00 .
TRISA = $FF ' set port a to all inputs ' 28
TRISB = $00 'set port b to all outputs ' 29
TRISC = $FF 'set port c to all inputs ' 30

However, the inputs on the A ports are still ignored. What am I doing wrong??
Thanks