
ST7038
Ver 1.1
15/61
2007/01/25
Figure 1
The 4-Line SPI Mode access timing
Figure 2
The 3-Line SPI Mode access timing
I
2
C Interface (PS[2:0] = "1, 0, 0")
The I
2
C Interface uses two-signal to communicate between different ICs or modules. The two signals are SDA (Serial Data)
and SCL (Serial Clock). Both lines must be connected to a pull-up resistor to provide the
“
H
”
voltage level. Data transfer may
be initiated only when the bus is not busy.
ST7038i support I
2
C interface with only write function.
Status read or data read is impossible
(except reading the
Acknowledge signal). The related signals are listed below:
Ø
SCL: serial clock input
Ø
SDA_IN: serial data input
Ø
SDA_OUT: acknowledge response output
Ø
SA1~SA0: select the slave address and the
available slave addresses are:
“
0111100
”
to
“
0111111
”
.
l
BIT TRANSFER
One data bit is transferred during each clock pulse. The data on the SDA line must remain stable during the HIGH
period of the clock pulse because changes in the data line at this time will be interpreted as a control signal. Bit transfer
is illustrated in Figure 3.
l
START AND STOP CONDITIONS
Both SDA and SCL lines remain HIGH when the bus is not busy. A HIGH-to-LOW transition on SDA while SCL is HIGH
is defined as the START condition (S). A LOW-to-HIGH transition of SDA while SCL is HIGH is defined as the STOP
condition (P). The START and STOP conditions are illustrated in Figure 4.
l
SYSTEM CONFIGURATION
The system configuration of I
2
C interface is illustrated in Figure 5. The related glossaries are listed below:
Ø
Transmitter: the device sends the data to the bus
Ø
Master: the device, which initiates a transfer, generates clock signals and terminates a transfer
Ø
Slave: the device addressed by a master
Ø
Multi-Master: more than one master can attempt to control the bus at the same time without corrupting the
message
Ø
Arbitration: a procedure to ensure that, if more than one master tries to control the bus simultaneously, only one
is allowed to do so and the message is not corrupted
Ø
Synchronization: a procedure to synchronize the clock signals of two or more devices.