On Fri, 30 Apr 2010 19:51:12 -0400, "Jason White" said: > What do you mean ? none of the inputs are floating .... But the last schematic diagram I saw had NO resistors on either the input pins or the output pins. As long as everything is electrically sound, then it's software. In that case... You are using constructs such as "RA1 = RC1" followed by a similar thing on the next line, which on a 16F series expose you to two Read-Modify-Write problems. 1. You need to use resistors in series with your outputs so the LEDs don't constrain the voltage on the pins making reading them impossible. 2. You need a "nop" between your two lines so the port can settle and the second line can get a good read on the port. There are plenty of references to Read-Modify-Write on the webs, check them out. Cheers, Bob -- http://www.fastmail.fm - Access all of your messages and folders wherever you are -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist