Hi Charles,
I can't help thinking it's a hardware issue.
Can you read the state of pin "manually" and get the correct state, perhaps the input is damaged?
Are you probing directly on the pin on the PIC, perhaps there's a bad solder joint or PCB track?
/Henrik.




Bookmarks