Tony Nixon wrote: ......... >Analog pins always read as '0', so '0' gets written back regardless of >the output state, and I was using BSF, BCF. > Hi Tony, I think this is not exactly correct. If you only exercise a single pin uisng BSF/BCF, it will work correctly, but if you do successive BSF/BCFs to > 1 PortA pins, then only the last will be operated upon corrrectly, and all others will always end up being cleared. BSF PORTA, 0 BSF PORTA, 1 BSF PORTA, 2 will leave the port in the following state: xxxx'x100 [either that or it's naptime]. cheers, - Dan Michaels -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.