At 04:19 PM 2/19/2006 +0000, you wrote: >ok, now assuming we have LAT to solve the issue, what do we need >to do with LAT register, should be use BSF PORTA,0 or BSF LATA,0 The LATter. You still need the PORTA address for reading the input pins. Note that LAT isn't really a new register, it's just a new address which maps to the outputs of the port latch (which was always there). >also, am I correct to say that LAT is only important for output pins Yes, and only for RMW instructions (writing the entire port is not problematic either way). >Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com ->> Inexpensive test equipment & parts http://search.ebay.com/_W0QQsassZspeff -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist