Quote Originally Posted by aratti View Post
By default portA is analog, to turn it into digital add: ADCON1 = 7 to your code before the tris setting.

Cheers

Al.
Oops, I forgot about that!
Thanks Al! All works as it should now.