Datasheet

DEM 08172 SYH-PY Product Specification
Version: 5.1.4 PAGE: 11
10. INSTRUCTION TABLE
Instruction
Instruction Code
Description
RS
R/W
DB7 DB6 DB5
DB4
DB3 DB2 DB1 DB0
Description
Time
(270KHz)
Clear
Display
0 0 0 0 0 0 0 0 0 1
Write "20H" to
DDRAM. and set
DDRAM address to
"00H" from AC
1.52 ms
Set DDRAM
address to
Return
Home
0 0 0 0 0 0 0 0 1 x
"00H" from AC and
return cursor to its
original position if
shifted. The
contents of
1.52 ms
DDRAM are not
changed.
Sets cursor move
direction
Entry Mode
Set
0 0 0 0 0 0 0 1 I/D S
and specifies
display shift. These
operations are
performed during
data write
37 us
and read.
Display
ON/OFF
0 0 0 0 0 0 1 D C B
D=1:entire display
on C=1:cursor on
B=1:cursor position
on
37 us
Cursor or
Display
Shift
0 0 0 0 0 1 S/C
R/L x x
Set cursor moving
and display shift
control bit, and the
direction, without
changing DDRAM
data.
37 us
Function
Set
0 0 0 0 1 DL N F x x
DL:interface data is
8/4 bits N:number
of line is 2/1 F:font
size is 5x11/5x8
37 us
Set CGRAM
address
0 0 0 1 AC5
AC4
AC3
AC2
AC1
AC0
Set CGRAM
address in address
counter
37 us
Set DDRAM
address
0 0 1 AC6
AC5
AC4
AC3
AC2
AC1
AC0
Set DDRAM
address in address
counter
37 us
Whether during
internal
Read Busy
flag and
address
0 1 BF AC6
AC5
AC4
AC3
AC2
AC1
AC0
operation or not can
be known by
reading BF. The
contents of address
counter
0 us
can also be read.
Write data
to RAM
1 0 D7 D6 D5 D4 D3 D2 D1 D0
Write data into
internal RAM
(DDRAM/CGRAM)
37 us
Read data
from RAM
1 1 D7 D6 D5 D4 D3 D2 D1 D0
Read data from
internal RAM
(DDRAM/CGRAM)
37 us
Note: Be sure the ST7066U is not in the busy state (BF = 0) before sending an instruction from the MPU to the
ST7066U. If an instruction is sent without checking the busy flag, the time between the first instruction and next
instruction will take much longer than the instruction time itself. Refer to Instruction Table for the list of each
instruction execution time.