the basics of lcd control

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

hi, can someone advice me how to start with the lcd's. Today I have found a project that works but I would like to start from the begining with the basics.
I have been reading the project and I found it more complicated than I spected that controling an lcd was, so there are lot of things that scape from me. Here it is all the project:
http://winavr.scienceprog.com/ex...

I am worried about al the stuffs there are at lcd.c and lcd.h files. Sould I understand everything it is included on them? Can someone make a little speach about it.

what happen if you have 4 lines lcd?

I have 2x16 lcd but I havent information of lcd to search datasheet.
are all lcd's standar?

mainly, I would like to know how to write the typical, "hello world". This way, anybody how reads this topic could do it at any lcd.

let see what can we do.

thanks to every people how help.

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

For text LCDs you will probably be working with a HD44780 controller (or a clone). A good introduction to this controller can be found at:
http://avrbeginners.net/
(see "Interfacing examples")

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

Your best bet would be to see what chipset your LCD is using, more then likely like knutbr said it will be the HD44780 or maybe the KS** (something).

to start from the beginning and learn everything about that chipset, there is a nice book that explains it all! and its FREE! its called the datasheet :P

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

From the diagram on the link that you provided, it is definitely a HD44780. There are several libraries out there to handle these. If you use one of those then you don't really need to understand the details. Usually there are macros that you will need to set to what ports and pins you are using.

Regards,
Steve A.

The Board helps those that help themselves.

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

Not the official datasheet, but good enough.

http://home.iae.nl/users/pouweha/lcd/lcd.shtml

Just google for the datasheet if you wish to read it too.

- Jani