The PIC18 series solves this problem by putting the output latches themselves in the memory map. So, you can do something like bsf latb,3 and know it will work. Harold On Mon, 20 May 2002 06:49:57 -0400 Bob Ammerman writes: > > Generally, I don't like to bcf/bsf port pins -- I usually > > have a bunch of different things going on on each port, so > > I use extra registers called SHADOW_A, SHADOW_B, etc. I > > set the pins on the SHADOW_x registers and then dump that > > register to the port as a whole. If I change something for > > the multiplexed LED's on a port, the other devices on the > > port stay untouched. Just a habit I guess. > > > > Thanks, > > -Neil. > > Not all habits are bad ones. Just be aware of the times when direct > port I/O > makes more sense (generally when cycles/instructions are very > critical). > > Bob Ammerman > RAm Systems > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > FCC Rules Online at http://hallikainen.com/FccRules Lighting control for theatre and television at http://www.dovesystems.com ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu