Hi
Portb on the 18f2550 has analog inputs. You need to set the those pins to digital.
Try adding
ADCON1 = %00111111
This will make all the analog pins digital, see page 254 data sheet
Hi
Portb on the 18f2550 has analog inputs. You need to set the those pins to digital.
Try adding
ADCON1 = %00111111
This will make all the analog pins digital, see page 254 data sheet
Last edited by mark_s; - 26th July 2015 at 01:07.
Bookmarks