Copyright ANPEC Electronics Corp.
Rev. A.07 - FEB., 2002
APU0071
www.anpec.com.tw10
Table 3. Instruction Table
Instruction Code
Instruction
RS R / W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Description
Execution
time
(f
OSC
=270
kHz)
Clear Display 0 0 00000001
Write “20H” to DDRAM and
set DDRAM address to
“00H” from AC .
629µs
Return Home 0 0 0000001
∗
Set DDRAM address to
“00H” from AC and return
cursor to its original
position if shifted. The
contents of DDRAM are not
changed.
629µs
Entry Mode Set 0 0 000001I / DS
Assign cursor moving
direction and enable entire
display shift.
37µs
Display ON / OFF
Control
0 0 00001DCB
All display (D) , cursor (C) ,
and blinking of cursor
position character on / off
control bit (B) .
37µs
Cursor or Display
Shift
0 0 0001
S /
C
R / L
∗∗
Cursor and Display shift
and their direction control
without changing DDRAM
data.
37µs
Function Set 0 0 0 0 1 DL A
∗
M1 M0
Set interface da ta length
(DL) , DDRAM addressing
mode (A) and COM / SEG
output pattern (M0, M1) .
37µs
Set CG RAM A ddress 0 0 0 1
∗
AC4 AC3 AC2 AC1 AC0
Set CGRAM address in
address counter.
37µs
S e t D D R A M A d dr e s s 0 0 1 AC6 AC5 AC4 AC3 AC2 AC1 AC0
Set DDRAM address in
address counter.
37µs
DDRAM
AC6 AC5 AC4 AC3 AC2 AC1 AC0
Read Busty
Flag and
Address
CGRAM
01BF
∗∗
AC4 AC3 AC2 AC1 AC0
Whether in internal
operation or not can be
known by reading BF. The
contents of address
counter can also be read.
0µs
DDRAM
D7 D6 D5 D4 D3 D2 D1 D0
Write Data
to RAM
CGRAM
10
∗∗∗
D4 D3 D2 D1 D0
Write data into internal
RAM (DDRAM / CGRAM) .
43µs
DDRAM
D7 D6 D5 D4 D3 D2 D1 D0
Read Data
from R A M
CGRAM
11
∗∗∗
D4 D3 D2 D1 D0
Read data from internal
RAM (DDRAM / CGRAM) .
43µs
I / D = 1 : Increment,
S = 1 : Shift enable,
S / C = 1 : Display shift,
R / L = 1 : Shift right,
D / L = 1 : 8 bit interface,
A = 0 : DDRAM addressing mode 0,
M0 = 0 : Bottom view,
M1 = 0 : No Rotate,
BF = 1 : System is in operation
I / D = 0 : Decrement
S = 0 : Shift disable
S / C = 0 : Move cursor
R / L = 0 : Shift left
D / L = 0 : 4-bit interface
A = 1 : DDRAM addressing mode1
M0 = 1 : Top view
M1 = 1 : Rotate
BF = 0 : System is ready