Digilent 410-138P-KIT User Manual
Page 20
Genesys Reference Manual
www.digilentinc.com
page 20 of 28
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners
After another 1.52ms, the entry-mode instruction can set address increment (or address decrement)
mode, and display shift mode (on or off). After this sequence, data can be written into the DDRAM to
cause information to appear on the display.
LCD Instructions and Codes
Instruction
Instruction Bit Assignments
Description
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Clear
Display
0
0
0
0
0
0
0
0
0
1
Clear display, set DDRAM address
register to 00H, and return cursor to
home. 1.52ms
Return
Home
0
0
0
0
0
0
0
0
1
X
Return cursor to upper left, set
DDRAM address to 0H. DDRAM
contents not changed. 1.52ms
Entry Mode
Set
0
0
0
0
0
0
0
1
I/D
SH
I/D = ‘1’ for right-moving cursor and
address increment, SH = ‘1’ for
display shift (direction set by I/D
bit). 37us
Display
ON/OFF
Control
0
0
0
0
0
0
1
D
C
B
Set display (D), cursor (C), and
blinking cursor (B) on or off (‘1’ in all
bits for “on”). 37us
Cursor or
Display Shift
0
0
0
0
0
1
S/C R/L X
X
S/C = ‘0’ to shift cursor right or left,
‘1’ to shift entire display right or left.
R/L = ‘1’ for right. 37us
Function Set 0
0
0
0
1
DL
N
F
X
X
Set interface data length (DL = ‘1’
for 8 bit), number of display lines (N
= ‘1’ for 2 lines), display font (F = ‘0’
for 5x 8 dots). 37us
Set CGRAM
Address
0
0
0
1
AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address counter. 37us
Set DDRAM
Address
0
0
1
AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address counter. 37us
Read Busy
Flag/ Address
0
1
BF AC6 AC5 AC4 AC3 AC2 AC1 AC0
Read busy flag and address
counter. 0us
Write Data
to RAM
1
0
D7
D6
D5
D4
D3
D2
D1
D0
Write data into DDRAM or CGRAM,
depending on which address was
last set. 37us
Read Data
from RAM
1
1
D7
D6
D5
D4
D3
D2
D1
D0
Read data from DDRAM or
CGRAM, depending on which
address was last set. 37us