AtomSoft said:ADCON1 only is used for setting analog or digital.
Yes ADCON1 configures the PINS. Prior to doing a conversion you need to select which pin you are going to sample. That is the functon of ADCON0: CHS2:CHS0:
I think i would then use TRISA = 10111111 to make Bit 5:0 input 7:6 is for clock right? Thats another issue for later on.
You need to look at both the fuse configuration and the oscilator control registers.
So TRISA = BF or 10111111 binary // set i/o pins to in for A
So TRISB = 00 or 00000000 binary // set i/o pins to out for B
Ok thanks
Most people just blink an LED the first time out Start with that then try to read you switches.