Quote Originally Posted by Russ Kincaid View Post
The datasheet says that setting TRISA = 1 sets the port as input. I believe you have it backward.
Noted...
Should be...
TRISA = %11111111 'set PORTA.5 as input.

Thanks...