Stewart Abel wrote : > I changed from a standard bcf on PORTC as I have read > about the read-modify-write problems. Probably a little over-worked when working with a simple LCD interface. No high capacitans loads. If you'd like, you can put in a few NOP's between the bcf/bsf's. > clears the bit in the variable... The "bit" number in the bcf/bsf instruction can NOT be a run-time variable. It's an constant. The bit number is assembled into the instruction at assembly time. I'd say that you can simplify your code quite a lot. Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist