"Peter L. Peres" wrote: > > ... The bit-banged operations I >implement always use bsf and bcf to access the port. The code size is rather >good like this (for me)... I'd be careful with this approach. BSF and BCF are read before write operations, so use the actual voltages on the pins to determine what to write back to the GPIO port. If there's a 'difficult' load on the pin (user puts very small R, large cap, etc. there) then the pin will be written as this incorrect value, not what you originally wrote to it. Jim Elm Electronics ICs for Experimenters http://www.elmelectronics.com/