SPLC782A
5.4. 8-Bit Operation and 16-Digit 1-Line Display (Using Internal Reset)
NO.
Instruction
1 Power on. (SPLC782A starts initializing)
2 Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 00 1 1 00XX
Display
Operation
Power on reset. No display.
Set to 8-bit operation and select 1-line display line and character font.
3 Display on / off control
_
0000001110
Display on.
Cursor appear.
4 Entry mode set
0000000110
_
tial ly 5 Write data to CG RAM / DD RAM
n n 1 0 0 1 0 1 0 1 1 1
6 Write data to CG RAM / DD RAM
e O 1 0 0 1 0 0 0 1 0 1
fid e 7
:
s 8 Write data to CG RAM / DD RAM
n 1 0 0 1 0 0 0 1 0 1
o U 9 Entry mode set
C R 0 0 0 0 0 0 0 1 1 1
s E 10 Write data to CG RAM / DD RAM
1000100000
lu IN 11 Write data to CG RAM / DD RAM
p 1 0 0 1 0 0 0 0 1 1
n M 12
:
u T 13 Write data to CG RAM / DD RAM
S R 1 0 0 1 0 1 1 0 0 1
A 14 Cursor or display shift
0 0 0 0 0 1 0 0XX
P 15 Cursor or display shift
r 0 0 0 0 0 1 0 0 X X
Fo 16 Write data to CG RAM / DD RAM
W_
WE_
:
W ELCOME _
WELCOME_
ELCOME _
LCOME C_
:
COMPAMY _
COMPAMY _
COMPAM_ Y
COMPAN_ Y
Increase address by one.
It will shift the cursor to the right when writing to the DD RAM/CG RAM.
Now the display has no shift.
Write " W ".
The cursor is incremented by one and shifted to the right.
Write " E ".
The cursor is incremented by one and shifted to the right.
Write " E ".
The cursor is incremented by one and shifted to the right.
Set mode for display shift when writing
Write " "(space).
The cursor is incremented by one and shifted to the right.
Write " C ".
The cursor is incremented by one and shifted to the right.
Write " Y ".
The cursor is incremented by one and shifted to the right.
Only shift the cursor's position to the left (Y).
Only shift the cursor's position to the left (M).
Write " N ".
1001001110
The display moves to the left.
17 Cursor or display shift
0 0 0 0 0 1 1 1XX
COMPANY_
Shift the display and the cursor's position to the right.
18 Cursor or display shift
0 0 0 0 0 1 0 1XX
COMPANY_
Shift the display and the cursor's position to the right.
19 Write data to CG RAM / DD RAM
1001000000
COMPANY _
Write " " (space).
The cursor is incremented by one and shifted to the right.
20
:
21 Return home
0000000010
:
WELCOME
Both the display and the cursor return to the original position (address
0).
Figure 5-17: 8-Bit Operation and 16-Digit 1-Line Display
© Sunplus Technology Co., Ltd.
9
Proprietary & Confidential
FEB. 15, 2005
Version: 1.7