Hello, I am working on an LCD (HD44780) driver that I can use in future programs. by more or less pasting it in. I am using 4-bit mode and the E and RS pins, so it only takes six pins to interface to it. Right now I have the 4 data lines on the upper 4 bits of PORTB (I'm using a 16F872 but am going to switch it to an 'F873 soon). I want to put the control lines on the same port so that it is easier to use the other ports. Would the easiest way to do this be to read the current PORTB values, IOR them with the 4 data bits to be sent to the LCD and then stick it back in PORTB? What about putting the 4 bits in w and then doing IORWF PORTB,w then move w to PORTB? Is there a preferred method? The second part of the question has to do with the USART on the 'F873. I want to put the LCD lines on the lower part of PORTC while using the 2 upper pins for serial communication (using the USART). Will the operation of the USART be affected in either receive or transmit if I read and write to all of PORTC? If so, what can be done to read and write the rest of PORTC while using the USART? Thanks in advance, Andy N8MX www.qsl.net/n8mx _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu