I am using a 16F877 chip, and I am trying to use all of port b as an input. Right now I am having problems with pin RB6. The data sheet says it's used for in-circuit debugging but I have that feature turned off, just like I have low voltage programming turned off. If I turn the input voltages for pins 5,6 & 7 off (0V) at the same time, RB6 manages to go down with the others but within 5 seconds RB6 drifts back high again, and if I switch either RB5 or RB7, the pin input data gathered is more likely to change than with switching the input at RB6 itself! I am using a DIP switch and I have tried it in pull-up and pull-down configurations with 4.7k resistors. I am using the uChip Picstart Plus & MPLAB software, it says I have the LVP and debugging turned off. Am I overlooking something? I can't find much in the datasheet. Thanks Jeff -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body