This document lists LCD commands and their descriptions and codes. Some key commands include:
Clear Display (01h) which clears the display and returns the cursor to home position. Return Home (02h) returns the cursor to home without changing display contents. Function Set (20h-3Ch) is used to set display properties like lines, dots per character, and data length. Set CG/DD RAM Address (40h-7Fh, 80h-FFh) is used to select the character/display data memory address before reading or writing data.
This document lists LCD commands and their descriptions and codes. Some key commands include:
Clear Display (01h) which clears the display and returns the cursor to home position. Return Home (02h) returns the cursor to home without changing display contents. Function Set (20h-3Ch) is used to set display properties like lines, dots per character, and data length. Set CG/DD RAM Address (40h-7Fh, 80h-FFh) is used to select the character/display data memory address before reading or writing data.
Clears the display and returns the cursor to the home position Clear Display 01h (address 0) Returns the cursor to the home psition (address 0). Return Home Also returns a shifted display to the home position. 02h DD RAM contents remain unchanged. Decrement cursor + No display shift 04h Entry Mode Set Decrement cursor + Display shift 05h (These are performed Increment cursor + No display shift 06h during data write/read.) Increment cursor + Display shift 07h Blink of the character at Display Cursor the cursor position OFF 08h Cursor OFF ON 09h Display OFF OFF 0Ah Display ON/OFF Control Cursor ON ON 0Bh OFF 0Ch Cursor OFF ON 0Dh Display ON OFF 0Eh Cursor ON ON 0Fh Decrement cursor + No display shift 10h Cursor & Display Shift Increment cursor + No display shift 14h (DD RAM contents Display shift left + No cursor movement 18h remain unchanged.) Display shift right + No cursor movement 1Ch 4 bit data + 1 line display + 5x7 dots/char 20h 4 bit data + 1 line display + 5x10 dots/char 24h 4 bit data + 2 line display + 5x7 dots/char 28h 4 bit data + 2 line display + 5x10 dots/char 2Ch Function Set 8 bit data + 1 line display + 5x7 dots/char 30h 8 bit data + 1 line display + 5x10 dots/char 34h 8 bit data + 2 line display + 5x7 dots/char 38h 8 bit data + 2 line display + 5x10 dots/char 3Ch Sets the CG RAM address (00h to 3Fh). 40h to Set CG RAM Address CG RAM data can be read or altered after making this setting. 7Fh Sets the DD RAM address (00h to 7Fh). 80h to Set DD RAM Address Data may be written or read after making this setting. FFh
Prepared by : Anjan Kumar B S Senior Lecturer, IT Dept. JSSATE, Bengaluru - 560 060