On Sun, 11 Jan 2004 12:36:25 +0100, "Jan-Erik Soderholm XA (TN/PAC)" wrote: > >Not sure. You are, in fact, still doing just the same thing as >a BCF/BSF, but using your own code. *Any* read from a PORTx register, >might have a bit driven to an *unknown* value by some external source. > >The only way to be sure, is to have a shadow register where *all* >updates/writes are made, then write this register using MOVWF >to the PORT regsiter. So there are never any reads from the PORT reg >in this case. > You're right, of course. I just wish there were a way to do a 'cancel' on stupid posts. I think I'll just go hide in the corner now. Regards, Bob -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu