Digilent PmodCLP Podręcznik referencyjny - Strona 4

Przeglądaj online lub pobierz pdf Podręcznik referencyjny dla Jednostka sterująca Digilent PmodCLP. Digilent PmodCLP 6 stron. Parallel lcd display module
Również dla Digilent PmodCLP: Podręcznik referencyjny (4 strony)

Digilent PmodCLP Podręcznik referencyjny
PmodCLP Reference Manual
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
Address
Set DDRAM
0
address
Read busy
0
flag/address
Write data to
1
RAM
Read data
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.
Table 3. 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
0
1
AC5 AC4 AC3 AC2 AC1 AC0
0
1
AC6 AC5 AC4 AC3 AC2 AC1 AC0
1
BF
AC6 AC5 AC4 AC3 AC2 AC1 AC0
0
D7
D6
D5
1
D7
D6
D5
0
0
0
0
0
1
0
1
I/D
1
D
C
S/C
R/L
X
N
F
X
D4
D3
D2
D1
D4
D3
D2
D1
Digilent, Inc.
www.digilentinc.com
Description
Clear display by writing a 20H to
all DDRAM locations; set DDRAM
1
address register to 00H; and
return cursor to home.
Return cursor to home (upper left
corner), and set DDRAM address
X
to 0H. DDRAM contents not
changed.
I/D = '1' for right-moving cursor
and address increment; SH = '1'
SH
for display shift (direction set by
I/D bit).
Set display (D), cursor (C), and
B
blinking cursor (B) on or off.
S/C = '0' to shift cursor right or
X
left, '1' to shift entire display right
or left (R/L = '1' for right).
Set interface data length (DL = '1'
for 8 bit), number of display lines
X
(N = '1' for 2 lines), display font (F
= '0' for 5x 8 dots)
Set CGRAM address counter
AC5 – AC0
Set DDRAM address counter
AC6 – AC0
Read busy flag (BF) and address
counter AC6 – AC0
Write data into DDRAM or
D0
CGRAM, depending on which
address was last set
Read data from DDRAM or
D0
CGRAM, depending on which
address was last set
page 4 of 5