Difference between revisions of "Arduino: How to control a HD44780 based character LCD"

From Luky-Wiki
Jump to: navigation, search
Line 14: Line 14:
 
=== Write data to RAM ===
 
=== Write data to RAM ===
 
=== Read data from RAM ===
 
=== Read data from RAM ===
 +
== Initialization of display ===

Revision as of 23:27, 4 December 2012

Many characters LCD displays use so called HD44780 based protocol on interface. This is more like as standard but i recommend to check datasheet from vendor. There can be small modifications and/or difference in timing. Especially timing is important. If communication rate is too quick, then LCD can drop data or misbehave depending on internal state. I recommend to check busy flag, if possible. If not then correct delay should be applied between commands.

...

Command Set

Clear Display

Return Home

Entry Mode Set

Display ON / OFF Control

Cursor or Display Shift

Function set

Set CGRAM Address

Set DDRAM Address

Read Busy Flag and Address

Write data to RAM

Read data from RAM

Initialization of display =