Add the following code at the very beginning of yours:
ADCON1.3=0
ADCON1.2=1
ADCON1.1=1
Your pins on port A are most likely in analog mode, this puts them in digital mode.
Add the following code at the very beginning of yours:
ADCON1.3=0
ADCON1.2=1
ADCON1.1=1
Your pins on port A are most likely in analog mode, this puts them in digital mode.
Bookmarks