Since you're using PORTA. You probably just need to disable the analog functions (A/D and Comparators).

Which PIC are you using?
<br>