Are you using it in 4 or 8 bit mode? 4 bit is a little harder to init but there are many sources for LCD code available. Check for some sample code and compare your init code with other's. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Simon Stirley Sent: Wednesday, October 31, 2001 4:24 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [EE]: LCD panel init problems The datasheet I've got for LCD controllers recommends sending 0x30 three times before using the display, it doesn't explain what's magic about 30 hex though ;-) worth a try I guess .. HTH, Simon. > -----Original Message----- > From: Jeff DeMaagd [mailto:jeff@DEMAAGD.COM] > Sent: 31 October 2001 21:29 > To: PICLIST@MITVMA.MIT.EDU > Subject: [EE]: LCD panel init problems > > > I have a 2x20 character LCD panel that doesn't seem to want > to init properly > on some power-ups. We do have it and some 4x4 capacitive > keypad circuitry > connected to the main board by a fairly scandard type 6" / > 15cm long ribbon > cable. Sometimes it powers up and inits properly, sometimes > it displays > garbage. Once it starts fine, it runs fine until shutdown. > Once garbage, > always garbage until shutdown. A power cycling might change > the situation, > but that is not guaranteed. > > Should I try to add some a big bypass cap or check something > else? All the > ICs and the panel seems > to be properly bypassed to me. I have also tried the > power-up timer on the > PIC too, with little change. > > Any general recommendations? Thanks! > > Jeff > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.