I just had the same problem a few days ago.... There seem to be a number of small errors in the XLCD routines, which prevented me from really "plug and play" operation with respect to this lib...I tried the "recompile" thing, that just didn't work for me. The best advice I can give, is to simply include botth the headers and actual "c" files with your project and simply edit the definitions where required. Here's are a few of the things I remember fixing.... 1) All function headers had "PARAM_SCLASS" as function argument type....the function bodies themselves did not have this....correct these by simply adding "PARAM_SCLASS" to the definitions or similarly removing from the declaration. 2) The init sequence within openXLCD() was not correct ( or didn't work for me on the picdem2+).. I found an old datasheet for the hitachi that recommended using the following init sequence. 0x02, 0x02, 0x08 (about line #98). After modifying this, my LCD started working. I continue to have some difficulty, but it does dispay my "hello world" message. I can send you what I modified, or copies of this old "Everyday Practical Electronics" article that I got the hints from..... DD On Tue, 2003-09-02 at 05:28, amg amg wrote: > I'm trying to use the XLCD functions in C18 to display a simple "Hello > World" message. > > I must be doing something wrong. > > Hardware is PICDEM 2 Plus board with the PIC18F452 running at 4 Mhz. > > What I've done: > 1) Re-defined Data Port assignments in XLCD.H (lines 35, 36) > 2) Re-defined Control Pin assignments in XLCD.H (lines 46-51) > 3) Changed to small memory model in XLCD.H (line 84) I was getting > compiler error 1109 "Type mismatch in redeclaration of putrsXLCD" until > I did this. > 4) Included the 3 necessary delay functions in my program. (Similar to > the ones shown on pg. 73 of the "MPLAB C18 C Compiler Libraries" book.) > 5) Included all the LCD source files in my project. > > As best this newbie can tell, everything compiles fine. No > errors/warnings. > > Programs hangs when it tries to "OpenXLCD (FOUR_BIT & LINES_5X7);" If I > use my ICD2 to step into OpenXLCD, it hangs on line 117. > "while(BusyXLCD());" This is the first busy check after setting the > display > interface, lines and font. > > Any and all suggestions appreciated! > > The only thing I haven't tried is dragging out the 'scope and looking at > some of the signals to/from the LCD. > > amg > > ________________________________________________________________ > The best thing to hit the internet in years - Juno SpeedBand! > Surf the web up to FIVE TIMES FASTER! > Only $14.95/ month - visit www.juno.com to sign up today! > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- Dan Devine New World Industries -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body