> > Sounds like RMW to me too, given that it's the first LED (in the code) > that doesn't turn on. For any fast port manipulations use the dedicated > atomic registers (as you have done with LATGSET, etc in the other test) > I agree that it's RMW. You can, of course, use the atomic instructions (set and clear), or just do what you're doing, but use LAT instead of PORT for any output. I always use LAT for output and PORT for input. This was a great improvement of the PIC18 over the PIC16. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! Not sent from an iPhone. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .