Hello Unregistered ,
Try ADCON1 = 15 to set to all digital. It looks like portb.0 is an analog pin.
Forum Rules
Bookmarks