Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWANLCD HANEL
INTERFACINGLCD CommandCodes
LCD Command Codes Code
(Hex)Command to LCD Instruction Register1 2 4 6 5 7 8 A C E F 10 14 18 1C 80 C0 38Clear display screenReturn homeDecrement cursor (shift cursor to left)Increment cursor (shift cursor to right)Shift display rightShift display leftDisplay off, cursor offDisplay off, cursor onDisplay on, cursor offDisplay on, cursor blinkingDisplay on, cursor blinkingShift cursor position to leftShift cursor position to rightShift the entire display to the leftShift the entire display to the rightForce cursor to beginning to 1st lineForce cursor to beginning to 2nd line2 lines and 5x7 matrix