LCD Emulator: Instruction Set

InstructionRSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Clear Display0000000001
Cursor Home000000001x
Entry Mode Set00000001I/DS
Display On/Off Control0000001DCB
Cursor/Display Shift000001S/CR/Lxx
Function Set*00001DLNxBR1BR0
CGRAM Address Set0001CGRAM Address
DDRAM Address Set001DDRAM Address
Address Counter Read01BF=0AC Contents
DDRAM or CGRAM10Write Data
DDRAM or CGRAM11Read Data

 
/D = 1 : IncrementI/D = 0 : DecrementN = 1: Multiple linesN = 0: Single line
S = 1 : Shift enabledS = 0 : Shift disabledD = 1: Display is onD = 0: Display is off
S/C = 1:Display ShiftS/C = 0: Cursor moveC = 1: Cursor is onC = 0: Cursor is off
R/L = 1 : Shift to the rightR/L = 0 : Shift to the rightB = 1: Blinking enabledB = 0: Blinking disabled
DL = 1 : 8 bitsDL = 0 : 4 bits

 
DDRAM = Display Data RAMCGRAM = Character Generator RAM
(BR1,BR0) = (0,0) : 100%;(0,1) : 75%;(1,0) : 50%(1,1) : 25%

 
* Note: The instructions shown above are compatible with the Hitachi HD44780U LCD controller IC, with the exception of the added luminance control bits (BR1, BR0) in the Function Set instruction.