my wish is to set port B.0 to be the analog input (pin 8)
portb.0 is an4 use
ADCIN 4, adval ' Read channel 0 to adval
and set adcon1 to %00010000


there is no need to use tris to set the pin to an input just use adcon1 to make it analogue