Difference between revisions of "Arduino: How to control a HD44780 based character LCD"
From Luky-Wiki
Lukas Dzunko (talk | contribs) (→Clear Display) |
Lukas Dzunko (talk | contribs) (→Clear Display) |
||
Line 3: | Line 3: | ||
=== Clear Display === | === Clear Display === | ||
{|class="wikitable" align="center" style="text-align: center;" | {|class="wikitable" align="center" style="text-align: center;" | ||
− | ! RS || R/W || || DB7 || DB6 || DB5 || DB4 || DB3 || DB2 || DB1 || DB0 | + | ! RS || R/W || || DB7 || DB6 || DB5 || DB4 || DB3 || DB2 || DB1 || DB0 || || Execution Time |
|- | |- | ||
− | | || || || || || || || || || || | + | | || || || || || || || || || || || || ~ 1.52 ms |
|} | |} | ||
Revision as of 14:48, 9 December 2012
Many characters LCD displays use so called HD44780 based protocol on interface. This is more like 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 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. Result of commands can be checked via LCD Simulator prior to programing MCU. For example i like this one: DjLCDSIM.
Contents
Command Set
Clear Display
RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | Execution Time | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
~ 1.52 ms |