Genesys Reference Manual
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.
Instruction
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Clear
0
0
Display
Return
0
0
Home
Entry Mode
0
0
Set
Display
ON/OFF
0
0
Control
Cursor or
0
0
Display Shift
Function Set
0
0
Set CGRAM
0
0
Address
Set DDRAM
0
0
Address
Read Busy
0
1
Flag/ Address
Write Data
1
0
to RAM
Read Data
1
1
from RAM
www.digilentinc.com
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners
LCD Instructions and Codes
Instruction Bit Assignments
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
DL
0
1
AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address counter. 37us
1
AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address counter. 37us
BF
AC6 AC5 AC4 AC3 AC2 AC1 AC0
D7
D6
D5
D4
D7
D6
D5
D4
0
0
0
1
0
0
1
X
0
1
I/D
SH
1
D
C
B
S/C
R/L
X
X
N
F
X
X
D3
D2
D1
D0
D3
D2
D1
D0
Description
Clear display, set DDRAM address
register to 00H, and return cursor to
home. 1.52ms
Return cursor to upper left, set
DDRAM address to 0H. DDRAM
contents not changed. 1.52ms
I/D = '1' for right-moving cursor and
address increment, SH = '1' for
display shift (direction set by I/D
bit). 37us
Set display (D), cursor (C), and
blinking cursor (B) on or off ('1' in all
bits for "on"). 37us
S/C = '0' to shift cursor right or left,
'1' to shift entire display right or left.
R/L = '1' for right. 37us
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
Read busy flag and address
counter. 0us
Write data into DDRAM or CGRAM,
depending on which address was
last set. 37us
Read data from DDRAM or
CGRAM, depending on which
address was last set. 37us
page 20 of 28
Need help?
Do you have a question about the Genesys and is the answer not in the manual?
Questions and answers