Did it ever work? That is, have you gotten it to send any characters to the LCD? When/where in the program are you setting the port states? Are you doing this only once in your program? Is the program expecting anything from the LCD? When you send something to the LCD are you waiting for a "ready" response from the LCD or just timing it? Unplug the LCD and see if the PIC reacts the same way. Do you have a replacement LCD you could try to see what happens? Hopes this helps Sergio ----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Tim Thompson Sent: Monday, May 07, 2001 4:55 AM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: HELP! Need someone to look at code.. OK im past frustration and on the verge of writing this crap over from scratch. Im working on a program that controlls a LCD and communicates to a PC via rs232. The PIC as a 16F877. The problem I'm having is when telling the pic things to send the LCD, it locks up and stops responding to anything. It seems somewhat random when exactly it locks up. On lockup the USART TX line tri-states(?) (neather high nor low)...and I lack any debugging tools so I cant see wtf is going on. I'm allmost positive its a software thing because I use the PICLOADER bootloader, and it uses the rs232 i-face for writing the program, and it works just fine. If anyone would be willing to look over my program please let me know..Its kinda large, but alot of it is commented out in my attempt at finding the problem. Assembled it uses a little over 1K of program space. Please anyone who is willing to help out a newbie please speak out. MUCH thank-you in advance, Tim Thompson - Remember, 'kill' doesn't kill processes, users kill processes. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads