Search This Blog

Saturday, May 5, 2012

lcd commands

No. InstructionHexDecimal
1 Function Set: 8-bit, 1 Line, 5x7 Dots 0x3048
2 Function Set: 8-bit, 2 Line, 5x7 Dots 0x3856
3 Function Set: 4-bit, 1 Line, 5x7 Dots 0x2032
4 Function Set: 4-bit, 2 Line, 5x7 Dots 0x2840
5Entry Mode0x066
6 Display off Cursor off
(clearing display without clearing DDRAM content)
0x088
7 Display on Cursor on 0x0E14
8 Display on Cursor off 0x0C12
9 Display on Cursor blinking 0x0F15
10 Shift entire display left 0x1824
12 Shift entire display right 0x1C30
13 Move cursor left by one character 0x10 16
14 Move cursor right by one character 0x1420
15 Clear Display (also clear DDRAM content)0x011
16 Set DDRAM address or coursor position on display 0x80+add* 128+add*
17 Set CGRAM address or set pointer to CGRAM location0x40+add**64+add**