Hi. I don't remember what PIC you are using, but... On the 18-series you can write to the LATx regsiters instead of the PORTx registers. This should avoid some of these problems. I'd guess that what you are writing about is the read-before-write problems when using the bit handling instructions on port registers, where the read part will read whatever the pin is driven to by some external source, right ? The LATx regs in the 18-series solves this problem. Jan-Erik. James Nick Sears wrote : > What is the proper way to do this? It seems that if you set > the PORT value high before setting the TRIS to output that > it will get overwritten by the pin value and if you set the > TRIS to output first that the PIC will briefly try to pull > the pin low before taking it high. > > Thanks > Nick -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body