The 676 has analog comparators & A/D which are all configured for analog on power-up.
Place this in the top of your code.
CMCON = 7 ' Turns off comparators
ANSEL = 0 ' Turn off A/D
TRISA.1=1 ' Make RA1 an input
Now you can read the input on RA1.
The 676 has analog comparators & A/D which are all configured for analog on power-up.
Place this in the top of your code.
CMCON = 7 ' Turns off comparators
ANSEL = 0 ' Turn off A/D
TRISA.1=1 ' Make RA1 an input
Now you can read the input on RA1.
Bookmarks