Amg, Sounds like you don't have the LCD module's busy pin wired up. Try commenting out the BusyXLCD() function call, and see if your program runs. The display will probably show garbage, but at least you will know where the problem lies. Peter Moreton -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of amg amg Sent: 02 September 2003 13:28 To: PICLIST@MITVMA.MIT.EDU Subject: C18, XLCD functions with PICDEM2 Plus 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 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body