Hi Master,
Well, without going back and looking at your other posts, you don't say what chip you are using. If you had a datasheet on the chip you were using you could look and see if it had analog pins on portA and if any of the pins were setup by default to work as a comparator. These features need to be disabled which will then make the pins digital. All of this has been covered soooooooooooo many times on this forum. You should stop and look at all of the stuff that has posted. You would be making a wise investment in your time!
When looking at the data sheet look for the registers ADCON and CMCON and there might be a few others which have a different name depending on the PIC you are using. This will tell you how to disable them as well as how to configure them for different operations.
This site is a veritable book on PICs and how to use them as well as troubleshooting problems with PICs and devices attached to them.
BobK
Bookmarks