I will try that. I thought it seemed like a bit of a long way round!!! Thanks Stewart > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Jan-Erik Soderholm > Sent: 28 June 2006 11:17 > To: piclist@mit.edu > Subject: RE: [PIC] LCD Interface HD44780 > > 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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist