Harold Hallikainen wrote 2012-01-20 01:50: > >> >> 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 POR= T > for any output. I always use LAT for output and PORT for input. This was = a > great improvement of the PIC18 over the PIC16. And now also parts of the "enhanced" PIC16F1xxx architecture. Jan-Erik. > > Harold > > > > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .