
PAGE 15 OF 22
12. Instruction Table
Instruction Code
Instruction
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Description Execution time
(fosc=270Khz)
Clear Display 0 0 0 0 0 0 0 0 0 1
Write “00H” to DDRAM and set
DDRAM address to “00H” from AC 1.53ms
Return Home 0 0 0 0 0 0 0 0 1
Ё
Set DDRAM address to “00H” from AC
and return cursor to its original position
if shifted. The contents of DDRAM are
not changed.
1.53ms
Entry Mode
Set 0 0 0 0 0 0 0 1 I/D SH
Assign cursor moving direction and
enable the shift of entire display. 39μs
Display
ON/OFF
Control
0 0 0 0 0 0 1 D C B
Set display (D), cursor (C), and blinking
of cursor (B) on/off control bit. 39μs
Cursor or
Display Shift 0 0 0 0 0 1 S/C R/L Ё Ё
Set cursor moving and display shift
control bit, and the direction, without
changing of DDRAM data.
39μs
Function Set 0 0 0 0 1 DL N F
Ё Ё
Set interface data length
(DL:8-bit/4-bit), numbers of display line
(N:2-line/1-line)and, display font type
(F:5×11 dots/5×8 dots)
39μs
Set CGRAM
Address 0 0 0 1 AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address in address counter. 39μs
Set DDRAM
Address 0 0 1 AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address in address counter. 39μs
Read Busy
Flag and
Address
0 1 BF AC6 AC5 AC4 AC3 AC2 AC1 AC0
Whether during internal operation or not
can be known by reading BF. The
contents of address counter can also be
read.
0μs
Write Data to
RAM 1 0 D7 D6 D5 D4 D3 D2 D1 D0
Write data into internal RAM
(DDRAM/CGRAM). 43μs
Read Data
from RAM 1 1 D7 D6 D5 D4 D3 D2 D1 D0
Read data from internal RAM
(DDRAM/CGRAM). 43μs
Ϡ ”Ё”Κdon’t care