On Sun, 11 Jan 2004 09:48:57 -0500, Olin Lathrop wrote: >Bob Barr wrote: >> On the 16-series devices, so does avoiding the use of bit set/clear >> operations on ports by rolling your own read-modify-write operation. >> Reading the whole port in, modifying W as you need to, and then >> writing the whole thing back works well in situations like this. > >That just creates your own manual version of the read-modify-write problem. > Good point. I need to re-read my own posts before I ever hit 'send' on them. I was thinking just in terms of the particular bit that the OP was concerned about. I should have thought about that a little more before I posted my reply. If there is an r-m-w issue, it's always the *other* pins on the port that are the problem, not the one that's being modified. Sorry. Regards, Bob -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu