PDA

View Full Version : PIC18F26K80 A/D Converter



RayL113
- 16th November 2012, 11:48
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?? :confused:
Thanks

HenrikOlsson
- 16th November 2012, 14:04
Hi,
I've already tried to help you with this in the other thread (http://www.picbasic.co.uk/forum/showthread.php?t=1889&p=117147&highlight=#post117147) where you posted the exact same question yesterday. Why not follow up on that?

/Henrik.

RayL113
- 17th November 2012, 03:35
Thank you Henrik. When I re-posted here I thought no one had responded to the other thread. I will try your suggestion.:D