Are you on the correct pin. At the beginning you said you were using PORTA.2.
Code shows PORTA.1?

What about CMCON = 7