I don't have any C code but I'm sure you can figure out how to write some using the information below. The only datasheet you need is the datasheet for the HD44780 LCD Controller & Driver Chip. The chip is made by Hitachi. If you don't know the pin-outs on the LCD Display, grab your ohm meter and buzz out the pins from your connector to the pins on the HD44780. The HD44780 datasheet will tell you what the pins are. It only takes about 5 minutes for reverse engineering. I just got my LCD Display working on a 16F877 this week using the Hitachi Data Sheet. The datasheet will show step by step how to setup your LCD Display in 4-bit mode. The biggest trick is the V5 or Vee pin - tie it to a potentiometer going between +5V and GND and adjust the potentiometer until the characters are easy to see. And the "E" pin is your Clock pin. Place the data on the 4-bit bus and clock the E pin from LO to HI. then place the next set of data on your bus and repeat... Here are a few sites that will supply everything you need: http://home.iae.nl/users/pouweha/lcd/lcd.shtml http://semiconductor.hitachi.com/products/pdf/99rtd006d2.pdf Good luck, Tim -----Original Message----- From: Michael Pettersson [mailto:michael.pettersson@CPACSYSTEMS.SE] Sent: Thursday, January 31, 2002 12:01 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Need C code example for CC5x and a HD44780 LCD controller First of all.. Thanks! It's great with all this help. BUT.... I still havn't got my lcd up and running. Now I need all help that I can get.. Okej, this is what I would like to have.. The best thing would be a cc5xfree code that works on the 16f877. But right now all I wan't is a .hex file and specifikation on what ports that are used. I havn't find any data on my LCD but it is a HD44780 controlled one. Citizen C2020H is printed on it. I would like to use it without any other components installed, use ports that can handle this. I hope you can help me boost up this little nail in the eye... /--- Michael -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu