On Sun, Jan 15, 2012, at 12:38 AM, Scott wrote: > Let's assume you're using PORTA bits 0 and 1 (and you stated no other > pins mattered). > You could use swapf and do it in two instructions (if PORTA is > initialized as shown below): >=20 > ;Initialize PORTA with 0x21 (or 0x12). >=20 > btfss bigreg,7 > swapf PORTA PORTA isn't a full byte, but using PORTB instead, it still won't have the desired effect. What it does is leave the port alone in one condition and toggle it in the other, rather than having one pin always follow and the other be the inverse. Thanks for the suggestion, though, it's one I hadn't tried! Cheerful regards, Bob --=20 http://www.fastmail.fm - Access your email from home and the web --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .