>> How is ADCON1 set ? > > Haven't touched it, so it is whatever the default setting might be. Ah, that's the problem. The A/D pins wake up as analog inputs. You need to explicitly set them to digital I/O if you want to use them that way. Take a look at my development environment at http://www.embedinc.com/pic. If you had used it and therefore declared all your I/O pins with the /INBIT and /OUTBIT preprocessor directives, the standard PORT module would have initialized them the way you wanted automatically. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics