Thanks for the reply.
I gave that a try and still have the same results. I was originally using variable names for each pin, but removed them to simplify.
I have done a lot of programming without problem. Can't believe I can't make an input work.
In my larger program, I actually save this pin state to a USB flash drive. The input is always 0.
The ANSEL = 0 and ANSELH = 0, is working for all the other pins they deals with.
Paul





Bookmarks