Quote Originally Posted by tbh9365 View Post
I don't understand how to set these registers, I have the RA1 pin set as Vref, and RA0,RA2,RA3,RA5 as anolog inputs. I am trying to use RA4(an3) as the debugin pin. My registers are set as follows:
cmcon0 = %11110000
ansel = %10101
adcon0 = %01001000
How far off am I? And what do I need to change?
Thanks
And more information that would've been a lot more helpful much earlier in the process...

You're trying to use RA4/AN3 as a digital input, which means you aren't using it as OSC2 or a Fosc/4 clockout, which means you are most likely using the internal oscillator, which means that it may need to be tweaked a bit to get the baud rate correct (see OSCTUNE)...and do a search on that term.

Am I about right here?