Are you on the correct pin. At the beginning you said you were using PORTA.2.
Code shows PORTA.1?
What about CMCON = 7
Are you on the correct pin. At the beginning you said you were using PORTA.2.
Code shows PORTA.1?
What about CMCON = 7
Dave
Always wear safety glasses while programming.
Bookmarks