
SPLC783A
5.2.6. Function set
Sunplus Technology Co., Ltd.
Proprietary & Confidential
8
MAR. 10, 2005
Version: 1.4
X: Do not care (0 or 1)
DL: It sets interface data length.
DL = 1: Data transferred with 8-bit length (DB7 - 0).
DL = 0: Data transferred with 4-bit length (DB7 - 4).
It requires two times to accomplish data transferring.
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 8 dots character font.
F = 1: 5 x 10 dots character font.
N
F
No. of Display Lines Character Font Duty Factor
0
0
1
5 x 8 dots
1 / 8
0
1
1
5 x 10 dots
1 / 11
1
X
2
5 x 8 dots
1 / 16
It cannot display two lines with 5 x 10 dots character font.
5.2.7. Set character generator RAM address
It sets Character Generator RAM Address (aaaaaa)2 to the
Address Counter.
Character Generator RAM data can be read or written after this
setting.
5.2.8. Set display data RAM address
It sets Display Data RAM Address (aaaaaaa)
2
to the Address
Counter.
Display data RAM can be read or written after this setting.
In one-line display (N = 0),
(aaaaaaa)
2:
(00)
16
- (4F)
16.
In two-line display (N = 1),
(aaaaaaa)
2:
(00)
16
- (27)
16
for the first line,
(aaaaaaa)
2:
(40)
16
- (67)
16
for the second line.
5.2.9. Read busy flag and address
When BF = 1, it indicates the system is busy now and it will not
accept any instruction until not busy (BF = 0). At the same time,
the content of Address Counter (aaaaaaa)
2
is read.
5.2.10. Write data to character generator RAM or
display data RAM
It writes data (dddddddd)
2
to character generator RAM or display
data RAM.
5.2.11. Read data from character generator RAM or
display data RAM
It reads data (dddddddd)
2
from character generator RAM or
display data RAM.
To read data correctly, do the following:
1). The address of the Character Generator RAM or Display Data
RAM or shift the cursor instruction.
2).
The “ Read ” instruction.
DB7
Code
RS
R/W
X
DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
0
0
1
DL
N
F
X
DB7
Code
RS
R/W
a
DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
1
BF
a
a
a
a
a
a
DB7
Code
RS
R/W
a
DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
0
1
a
a
a
a
a
DB7
Code
RS
R/W
a
DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
1
a
a
a
a
a
a
DB7
Code
RS
R/W
d
DB6 DB5 DB4 DB3 DB2 DB1 DB0
1
0
d
d
d
d
d
d
d
DB7
Code
RS
R/W
d
DB6 DB5 DB4 DB3 DB2 DB1 DB0
1
1
d
d
d
d
d
d
d