Industrial Electronic Engineers, Inc.
SIZE
A
CODE IDENT
NO.
05464
S03858–06–0105
Van Nuys, California
Scale: NONE
Rev C
Sheet 10
3.0
OPERATION
3.1
Instruction Set
Instruction
Code
Description
Execution
RS
R/W
DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
Time (Max)
Clear Display
0
0
0
0
0
0
0
0
0
1
Clears entire display and sets DD RAM to 0
1.64 ms
Return Home
0
0
0
0
0
0
0
0
1
*
Sets DD RAN counter to 0. If the display has been
shifted, characters are returned to their initial
positions. DD RAM contents remain unchanged.
1.64 ms
Entry Mode Set
0
0
0
0
0
0
0
1
I/D
S
Sets shift register direction and cursor movement
direction which occur during data read and write
operations
40
µ
s
Display ON/OFF
Control
0
0
0
0
0
0
1
D
C
B
Turns ON/OFF the entire display (D), cursor) and
cursor blink attribute (B).
40
µ
s
Cursor or Display
Shift
0
0
0
0
0
1
S/C
R/L
*
*
Moves cursor or shifts entire display one position.
DD RAM contents are unchanged.
40
µ
s
Function Set
0
0
0
0
1
DL
1
0
*
*
Sets Interface Data Length.
40
µ
s
Set CG RAM
Address
0
0
0
1
Sets CG RAM address. CG RAM data is sent or
received after this is set.
40
µ
s
Set DD RAM
Address
0
0
1
Sets DD RAM address. DD RAM data is sent or
received after this is set.
40
µ
s
Read Busy Flag
and Address
0
1
BF
Reads Busy Flag (BF) and Address Counter
0
µ
s
Write Data to CG
or DD RAM
1
0
Writes data into CG RAM or DD RAM.
40
µ
s
Read Data from
CG or DD RAM
1
1
Reads data from CG RAM or DD RAM.
40
µ
s
I/D=1:
Increment
DD RAM:
Display Data RAM
I/D=0:
Decrement
CG RAM:
Character Generator RAM
S=1:
Enable Shift Operation
A
CG
CG RAM Address
S/C=1:
Shift Display
A
DD
DD RAM Address
S/C=0:
Shift Cursor
(Corresponds to cursor address)
R/L=1:
Shift Right
AC
Address Counter
R/L=0:
Shift Left
(used for both CG and DD RAM)
DL=1:
8–bit operation
*
Don’t Care
DL=0:
4–bit operation
BF=1:
Operating internally
BF=0:
Can accept instruction
Figure 5
LCD Controller Instruction Set