
SC802B
VER2.1
AKIHABARA INC.
Page 10 of 10
c) Instruction description
Control and display instructions will show in details as following:
c.1) Clear Display
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
0
0
0
1
It clears the whole display and sets display data RAM's address 0 in address counter.
c.2) Return Home
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
0
0
1
X
X: Do not care (0 or 1)
It sets display data RAM's address 0 in address counter and display returns to its original position. The cursor or
blink goes to the left edge of the display (to the 1st line if 2 lines are displayed). The contents of the Display Data
RAM do not change.
c.3) Entry Mode Set
During writing and reading data, it sets cursor move direction and shifts the display.
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
0
1
I/D
S
I/ D = 1: Increment, I / D = 0: Decrement.
S = 1: The display shift, S = 0: The
display does not shift
S= 1
I/D= 1
It shifts the display to the left
S= 1
I/D=0
It shifts the display to the right
c.4) Display On/Off Control
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
1
D
C
B
D = 1: Display on, D = 0: Display off
C = 1: Cursor on , C = 0: Cursor off
B = 1: Blinks on, B= 0: Blinks off
c.5) Cursor or Display Shift
Without changing DD RAM's daters, it can move cursor and shift display
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
1
S/C
R/L
X
X
S/C
R/L
Description
Address Counter
0
0
Shift cursor to the left
AC = AC - 1
0
1
Shift cursor to the right
AC = AC + 1
1
0
Shift display to the left. Cursor follows the display shift
AC=AC
1
1
Shift display to the right. Cursor follows the display shift
AC=AC
c.6) Function Set
RS
R/W
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
1
DL
N
F
X
X
X: Do not care (0 or 1)
DL: It sets interface data length.
DL = 1: Datas are transferred with 8-bit lengths (DB7 - 0).DL = 0: Datas are transferred with 4-bit lengths (DB7 - 4).
(It needs two times to transfer datas) N: It sets the number of the display line. N = 0: One-line display. N = 1: Two-line
display. F: It sets the character font. F = 0: 5 x 7 dots character font.
F = 1: 5 x 10 dots character font.
N
F
No. of Display Lines
Character Font
Duty Factor
0
0
1
5X7 dots
1 /8
0
1
1
5x 10 dots
1 /11
1
X
2
5x7 dots
1 /16