Have you disabled the A/D module to use PORTA pins as digital?

ADCON1 = 7