Pages: [1]   Go Down
Author Topic: LCD CMD table commands (KS0066)  (Read 876 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 150
veroboaring is the new XGame - Extreme Veroboarder
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For Wintek and others LCD based on KS0066 controler (could be any other..TEST!):


LCD Commands
LCD_DISPLAY_CLEAR = 01 h
LCD_RETURN_HOME = 02 h
LCD_ENTRY_MODE = 04 h
LCD_DISP_ON_OFF = 08 h
LCD_SHIFT = 10 h
LCD_SET_FUNCTION = 20 h
LCD_SET_CG_ADDRESS = 40 h
LCD_SET_DD_ADDRESS = 80 h

LCD Command Parameters
CMD_CURSOR_INCREASE = 02 h
CMD_CURSOR_DECREASE = 00 h
CMD_DISPLAY_ON = 04 h
CMD_DISPLAY_OFF = 00 h
CMD_INTERFACE_8BIT = 10 h
CMD_INTERFACE_4BIT = 00 h
CMD_TWO_LINES = 08 h
CMD_ONE_LINE = 00 h


Example:
For turn off and on the display:

LCD_DISPLAY_ON_OFF + CMD_DISPLAY_ON = 0x08 + 0x04 = 0x0C :o

LCD_DISPLAY_ON_OFF + CMD_DISPLAY_OFF =0x08 + 0x00 = 0x08 :o

Best Regards!!
Frank
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for sharing. Is this information reliable? I see that the commands are same as those of 44780. Can someone please confirm the compatibility between these two controllers? I've read from many websites about the display errors when using KS0066 controller.

I'm using SGL- VCM1602A, 2X16, 5X8 dots. Anybody has experience in interfacing this LCD module?

Thanks.
Logged

Pages: [1]   Go Up
Jump to: