al smith wrote : > 16F877 is the device. I found the problem, but still is a little > perplexing. The wire for the pup voltage had popped loose, > so the port pin (happened to be A4) was floating. That explains why the > output wasn't going high, but the register wasn't holding the bit set, but now > that it is pulled up, the PORTA register shows it set. > > I would have expected > the bit to show high, even if the output was floating. Why would it read a high ? There was nothing pulling the pin high, was there ? Jan-Erik. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu