
ST7038
Ver 1.1
26/61
2007/01/25
INSTRUCTIONS
Instruction Code
Execution Time
Instruction
A
0
R
/W
D
B
7
D
B
6
D
B
5
D
B
4
D
B
3
D
B
2
D
B
1
D
B
0
Description
OSC=
260.4K
Hz
OSC=
284.1K
Hz
OSC=
531.1K
Hz
Default Instruction Table (IS[1:0]: Don
’
t Care)
Clear Display
0
0
0
0
0
0
0
0
0
1
Write "20H" to clear DDRAM and set
AC to "00H".
1.8
ms
1,6
ms
1ms
Return Home
0
0
0
0
0
0
0
0
1
X
Set AC to "00H". It will return cursor to
the original position if shifted.
The contents in DDRAM are not
changed.
93 us 85 us 70 us
Set Entry Mode
0
0
0
0
0
0
0
1
I/D S
Set cursor move direction and display
shift direction.
The effects are performed after each
data access (write or read).
93 us 85 us 70 us
Display Control
0
0
0
0
0
0
1
D
C
B
D=1: Entire display on;
C=1: Cursor on;
B=1: Cursor position on.
93 us 85 us 70 us
Function Set
0
0
0
0
1
DL
X
X
IS
1
IS
0
DL: Interface data is 8/4 bits;
IS[1:0]: select instruction table.
93 us 85 us 70 us
Set DDRAM
Address
0
0
1
A
C
6
A
C
5
A
C
4
A
C
3
A
C
2
A
C
1
A
C
0
Set DDRAM address into AC (address
counter).
93 us 85 us 70 us
Read Status
0
1
BF
A
C
6
A
C
5
A
C
4
A
C
3
A
C
2
A
C
1
A
C
0
Before next access, Check BF will
know if the internal operation is
finished or not.
The contents of AC (address counter)
can also be read.
0
0
0
Write Data
1
0
D7 D6 D5 D4 D3 D2 D1 D0
Write data into internal RAM
(DDRAM/CGRAM/ICONRAM)
93 us 85 us 70 us
Read Data
1
1
D7 D6 D5 D4 D3 D2 D1 D0
Read data from internal RAM
(DDRAM/CGRAM/ICONRAM)
93 us 85 us 70 us
Instruction table 0: IS[1:0]=(0,0)
Cursor or Display
Shift
0
0
0
0
0
1
S
/C
R
/L
X
X
S/C and R/L: Immediately move cursor
or shift display by 1.
93 us
85 us
70 us
Set CGRAM
Address
0
0
0
1
A
C
5
A
C
4
A
C
3
A
C
2
A
C
1
A
C
0
Set CGRAM address into AC
(address counter)
93 us
85 us
70us