
SPLC782A
5.2.6. Function set
Sunplus Technology Co., Ltd.
Proprietary & Confidential
7
FEB. 15, 2005
Version: 1.7
Figure 5-9:
Function Set Instruction Code
X: Do not care (0 or 1)
DL: It sets interface data length.
DL = 1: Datas are transferred with 8-bit lengths (DB0 - DB7).
DL = 0: Datas are transferred with 4-bit lengths (DB4 - DB7).
(It requires two times to transfer data)
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
Figure 5-10:
Function Set Description
It cannot display two lines with 5 x 10 dot character font.
5.2.7. Set character generator RAM address
Figure 5-11:
Set CGRAM address Instruction Code
It sets character generator RAM address (aaaaaa)
2
to the address
counter. Character generator RAM data can read or write after
this setting.
5.2.8. Set display data RAM address
Figure 5-12:
Set DDRAM address Instruction Code
It sets display data RAM address (aaaaaaa)
2
to the address
counter.
Display data RAM can read or write 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
Figure 5-13:
Read busy flag and address Instruction Code
When (BF = 1) indicates that the system is busy now; it will not
accept any instruction until no busy (BF = 0). At the same time,
the address counter contents (aaaaaaa)
2
is read out.
5.2.10. Write data to character generator RAM or
display data RAM
Figure 5-14:
Write Data to CGRAM/DDRAM Instruction Code
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
Figure 5-15:
Read Data from CGRAM/DDRAM Instruction Code
It reads data (dddddddd)
2
from character generator RAM or
display data RAM.
To get the correct data readout is shown belows:
1). Set the address of the character generator RAM or display
data RAM or shift the cursor instruction.
2). Send 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
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
DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
1
BF
AC6 AC5 AC4 AC3
AC2 AC1 AC0
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