LCD Commands
LCD Commands
The commands for HD44780 chip are shown in the table below. Scroll
down to see the commands in binary, and more info on the entry mode
set command.
This command sets cursor move direction and display shift ON/OFF.
There are 4 possible function set commands;04, 05, 06, and 07. This
command changes the direction the cursor moves by setting the
address counter to increment or decrement.
This command is very important. If you do not
understand it you may not see anything or what you actually wanted
to see on LCD screen. I have created 4 animated gifs to demonstrate
what the function set command is all about.
When my friend Hakan Dereli wanted to learn about LC displays I gave
him an LC display and the 4*4 keyboard that I used with my Z80
system.The keyboard is based on a 74C922 chip and my circuit to
convert the 4 bit data output of the 74C922 to 8 bit data.It also has 3
other buttons on it.This makes it great to experiment with LCDs by
entering commands/data manually. Hakan tested all possible
commands by sending all the numbers between 00h and FFh to the
LCD to see if there is an undocumented feature and see how all
commands work. He did not find anything undocumented, but he noted
how LCD behaves after each function set command.
String:Dereli
String :Hakan
String:Dereli
String:Hakan
To check the state of the busy flag and read the address counter