>> It's the safest way on PICs without a LAT register, such as the 16s >> > That should read "such as the old 16s". Yes, quite right I did mean to finish the sentence about shadow registers. shadowa for PortA, shadowb for PortB etc One application I use a shadow regularly is LCDs in 4-bit mode, eg when you want to preserve the lower nybble of a port and use the upper nybble for LCD data, ANDing / swapping the source nybbles into the port reading Joe ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.6125 / Virus Database: 4419/10635 - Release Date: 09/13/15 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .