ST7558
programming example for ST7558(Use I2C Interface)
SETP
SERIAL BUS BYTE
I2C INTERFACE Start
DISPLAY
OPERATION
1
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Slave address for write
2
3
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Control byte with cleared Co bit
and A0 set to logic 0
0
0
0
0
0
0
0
0
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Function Set.
4
0
0
1
0
0
0
0
1
PD=0,V=0,select extended
Instruction set(H=1 mode)
Set bias system
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
5
6
0
0
0
1
0
0
1
0
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Set VOP
1
0
0
1
0
0
0
0
VOP is set to a+16*b[V]
Function Set.
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
7
0
0
1
0
0
0
0
0
PD=0,V=0,select normal
Instruction set(H=0 mode).
Display control.
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
8
9
0
0
0
0
0
1
0
0
Set normal mode(D=1,E=0)
restart
I2C INTERFACE Start
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Slave address for write
10
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Control byte with set Co bit and
A0 set to logic 1
11
12
1
1
0
0
0
0
0
0
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Data Write.
0
0
1
0
0
1
1
0
Y,X are initialized to 0 by
default, so they aren’t set
here…
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Data Write.
0
1
0
0
1
0
0
1
13
14
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Data Write.
0
1
0
0
1
0
0
1
Ver 2.3
48/56
2005/10/05