Wednesday, November 2, 2011

LCD instruction in detail


INSTRUCTIONS
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
DESCRIPTION
Clear display
0
0
0
0
0
0
0
0
0
1
Clear entire display
Return Home
0
0
0
0
0
0
0
0
1
-
Returns display to be shifted to original position
Entry mode set
0
0
0
0
0
0
0
1
1/D
S
Sets cursor move direction and specifies shift of display. Performed during data write and read
Display On/Off control
0
0
0
0
0
0
1
D
C
B
D – sets on off entire display.
C – cursor on off
B – blink of cursor position character
Cursor or display shift
0
0
0
0
0
1
S/C
R/L
-
-
Moves cursor and shifts display without changing DD RAM contents.
Function set
0
0
0
0
1
DL
N
F
-
-
DL – sets interface data length
L – number of display lines
F – character font
Set CG RAM Address
0
0
0
1

AGC




Sets CG RAM address. CG RAM data is sent and received after this setting
Set DD RAM Address
0
0
1


ADD




Sets DD RAM address. DD RAM address is sent and received after this setting
Read Busy Flag and address
0
1
BF


AC




Reads Busy Flag BF indicating internal operation is being performed and reads address counter contents
Write data CG RAM or DD RAM
1
0
WRITE DATA
Writes data into DD or CG RAM
Read data CG RAM or DD RAM
1
1
READ DATA
Reads data from DD or CG RAM

No comments:

Post a Comment