By default portA is analog, to turn it into digital add: ADCON1 = 7 to your code before the tris setting.

Cheers

Al.