Prior to having built in latches (16F stuff), I developed a habit of =20 using registers as latches. Any time I make a change to one of those =20 registers, I update to the port. RA0,1 are pulled up (to 5Vdd) with 2k resistors. RA2 is pulled up =20 with a 100k, and has a momentary pushbutton to ground. Verified RA2 =20 changes between 5V and ground with switch. Cheers, -Neil. Quoting IVP : >> Can't see that (latch) being the reason, but tried anyway and it >> still does not work > > I thought it might. Not so long ago I mistakenly used PORT > instead of LAT and spent some time trying to figure out why > 'my stupid PIC doesn't work'. For the life of me I can't remember > the piece of code or I'd show you. I do recall it wasn't that > different from your problem > > IMHO it's still good practise to use LAT for out and PORT for in > > Are the PORTA pins floating ? > > Joe > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .