> So what I should do is to use a variable to pack the bits in to and > then send that variable to the port! Correct? It's the safest way on PICs without a LAT register, such as the 16s You might use a register called shadowa. Read the port into it, modify the contents, then write it back to the port Another page about r-m-w http://www.piclist.com/techref/readmodwrite.htm And what r-m-w can look like in practice. Part of a project that had me scratching my head for a while because what was coming out of the pins was the opposite of what I wanted http://web.archive.org/web/20041120185406/http://home.clear.net.nz/pages/jo= ecolquitt/sx_pins2.html Joe=20 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.6125 / Virus Database: 4419/10628 - Release Date: 09/12/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 .