I can not see my 2x16 lcd working [solved (somehow!)]

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys, after a lot of time I have restarted with my hobby. I have a stk500 and cables, cristals... and everything I could need. now I am using avrstudio5. After a difficult beggining I have recovered the basics of IO funtions, timers and so on. But I am stucked in the lcd control. already 3 days without succed without seeing even a black dot!!!

I have tried all the things that I found but nothing seems to work for me. somethimes incomplete code, other times the reality does not work for some reason.

I am suspecting that my lcd could be broken(It worked the last time, 1 year ago)... or my atmega16 could be damaged somehow...but other codes run well.

please could someone share with me some very basic proved code. just show a character would be ok.

some manual test to verify that the lcd is ok could help.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes yes yes. It workeeeeeeeeeeed!!!!!!!!

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the working codes that worked are here

regards and sorry.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No problem, welcome back to the forum.

Were all glad we could help you figure out your problem. :)

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
proved code...
Your code may work with your particular display some of the time but I hardly think it is proved.

It does not look like your initialization routine implements the recommended steps or the recommended delays as shown in the data sheet. I do not see any implementation of the recommended time delays after sending characters or commands to the LCD module either.

Don