Attached is the schematic and the source files to drive a HD44780 (very common LCD and cheap) from a PIC uController. The code was developed on a PIC16F886, but should port easily to any other PIC with enough pins. The interface needs 7 I/O pins (the code used the 4 bit, not 8 bit interface). The code supports controlling the LED backlight, or it can be disbled. If used it needs another pin(8 pins total).
Support is provided for a virtual screen with a view port, so you can set up more lines...
Schematic and C-source for driving a HD44780 LCD from a PIC
Support is provided for a virtual screen with a view port, so you can set up more lines...
Schematic and C-source for driving a HD44780 LCD from a PIC