Character LCD Problems

Sorry I couldn’t find the write place to post this.

I have been using 16*2 LCD’s on my project, I haven’t had any problems with them until now.

for some reason every time I turn on my board, every single character space on the first line, is a black box, and the second line is nothing. I thought maybe I am supplying wrong commands so I disconnected all the pins except the power (5V) and ground and the contrast pin (connect that to ground as well) (and let the rest float) and again I get the same thing.

any body has any idea/suggestion why this is happening? (I have tried this with 4 different lcd’s and i get the same results) so I have started to think that i have a fundamental problem.

any suggestion/help is greatly appreciated as I am banging my head against the wall and feeling so stupid for not being able to get a simple LCD to work!

Thanks

That behavior from the LCD is an indication that it’s not being initialized properly.

Double check your connectivity, port settings, init code/delays.

hi did you use bascom avr to make the code in ?

if yes check that you dont have $sim in the code

I have done this mistake !

/kim

Something that happened to me recently: I was attempting to use the LCD on PortC of my ATMega32, but forgot to turn off the JTAG! And I got the exact same results as you.

Make sure the port(s) you’re using aren’t configured for use with anything else (the JTAG is disabled via the fuses).