(Industry-Standard-Character-LCD)
General info and code-examples
1.1. Pin assignment
The pin assignment shown in Table 1.1. is the industry standard for character
LCD-modules with a maximum of 80 characters.
The pin assignment shown in Table 1.2. is the industry standard for character
LCD-modules with more than 80 characters.
To be sure always check the manufacturers datasheet!
To locate pin 1 on a module check the manufacturers datasheet!
Clears
display and
returns
cursor to
the home
position
(address 0).
Returns
cursor to
home
position
(address 0).
Also returns
display
being
shifted to
the original
position.
DDRAM
contents
remains
unchanged.
Sets cursor
move
direction
(I/D),
specifies to
shift the
display (S).
These
operations
are
performed
during data
read/write.
Sets On/Off
of all display
(D), cursor
On/Off (C)
and blink of
cursor
position
character
(B).
Sets
cursor-move
or
display-shift
(S/C), shift
Execution
time**
1.64mS
1.64mS
40uS
40uS
40uS
Page 4
Table 1.3. HD44780 instruction set
Instruction
Function set00001DLNF**
Set CGRAM
address
Set DDRAM
address
Read
busy-flag and
address
counter
Write to 10write dataWrites data 40uS
RS R/WDB7DB6 DB5 DB4 DB3 DB2 DB1 DB0
0001CGRAM address
001DDRAM address
01BFCGRAM / DDRAM address
Code
Description
direction
(R/L).
DDRAM
contents
remains
unchanged.
Sets
interface
data length
(DL),
number of
display line
(N) and
character
font(F).
Sets the
CGRAM
address.
CGRAM
data is sent
and
received
after this
setting.
Sets the
DDRAM
address.
DDRAM
data is sent
and
received
after this
setting.
Reads
Busy-flag
(BF)
indicating
internal
operation is
being
performed
and reads
CGRAM or
DDRAM
address
counter
contents
(depending
on previous
instruction).