You can find the HD44870 version I use here: http://www.ubasics.com/adam/electronics/lcd/ The actual file is here: http://www.ubasics.com/adam/electronics/lcd/cc5xlcd.c It was made for a 16f8xx micro, and compiled with BKnudsen's CC5x (free) compiler (http://www.bknd.com/ ), but the major portions should port over with few, if any, problems. At the very least you can see one way of doing things. It is, however, a 4-bit interface, which may not meet your needs, but it is run on a 4MHz micro. -Adam Tim S wrote: > > Greetings.. > > I am a PIC newbie trying to get "Hello World" on an LCD display. The display > is a Z4172 LCD from Dick Smith's in Australia, which uses a samsung KS0066 > controller. > > The KS0066 is an exact replica of the functionality of the Hitachi HD44780 > controller, which I think most of you would know of. > > I have scoured the net and encountered a huge mass of LCD projects, but I am > yet to encounter a Hi-Tech C implementation of LCD interface subroutines for > my setup, which works. > > My setup is a PIC16F84, with 4 Mhz crystal oscillator. > > I have also written two complete attempts at a basic set of driver routines, > using the datasheet for the KS0066 as a guide, and paying special attention to > the timing of the commands. > > If there is anybody with a functional 16F84, 4MHz, solution (preferably for > the KS0066 controller, otherwise HD447840), could they please post a link? > > Otherwise, I suspect there is no fast solution.... If anybody is willing to > look over the source and the KS0066 datasheet, I'd be grateful to email it to > them. > > This thing has been a brick wall in my face for the past two weeks, any help > would be greatly appreciated. > > Regards, Tim Sheahan > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's