On Mon, 6 Aug 2001, Sam Linder wrote: > Instead of just criticizing, if you have a better suggestion would it not be > courteous to explain it? This method has worked fine for me to date. Sorry to sound critical... I assumed you had seen the other recent e-mails regarding the Read-modify-Write gotchas associated with bcf/bsf's on I/O ports. There are several ways to work around this. A common way is to simply shadow I/O's with a variable. Perform all of the operations on the shadow and then copy the shadow to the I/O Port. A little more efficient is this though: ; Toggle an I/O: ; (assuming the last access to PORTB was a "long time" ago... movf PORTB,W iorlw 1<