Welcome to the forum.
The PIC you are using has analog on PORTA. You will need to make it digital.
Add this near the top of your code
And this thread will be some good readingCode:ANSEL=%00000000 CMCON=%00000111
http://www.picbasic.co.uk/forum/showthread.php?t=561
Bookmarks