English
Language : 

STC3117 Datasheet, PDF (21/34 Pages) STMicroelectronics – Gas gauge IC with battery charger control for handheld applications
STC3117
7
I2C interface
I2C interface
7.1
bit7
1
Read and write operations
The I2C interface is used to control and read the current accumulator and registers. It is
compatible with the Philips I2C Bus® (version 2.1). It is a slave serial interface with a serial
data line (SDA) and a serial clock line (SCL).
• SCL: input clock used to shift data
• SDA: input/output bidirectional data transfers
A filter rejects the potential spikes on the bus data line to preserve data integrity.
The bidirectional data line supports transfers up to 400 Kbit/s (fast mode). The data are
shifted to and from the chip on the SDA line, MSB first.
The first bit must be high (START) followed by the 7-bit device address and the read/write
control bit. The default device address value is 1110 000. The STC3117 then sends an
acknowledge at the end of an 8-bit long sequence. The next eight bits correspond to the
register address followed by another acknowledge.
The data field is the last 8-bit long sequence sent, followed by a final acknowledge.
Table 8. Device address format
bit6
bit5
bit4
bit3
bit2
bit1
bit0
1
1
0
0
0
0
R/W
Table 9. Register address format
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
RegADDR7 RegADDR6 RegADDR5 RegADDR4 RegADDR3 RegADDR2 RegADDR1 RegADDR0
bit7
DATA7
bit6
DATA6
Table 10. Register data format
bit5
bit4
bit3
bit2
DATA5
DATA4
DATA3
DATA2
bit1
DATA1
bit0
DATA0
Figure 11. Read operation
0DVWHU
6ODYH
6WDUW 'HYLFHDGGU : $ 5HJDGGUHVV $ 5HVWDUW 'HYLFHDGGU 5 $ 5HJGDWD $ 5HJGDWD $ 5HJGDWD $
ELWV
ELWV
ELWV
ELWV
ELWV
ELWV
6WDUWELW 6'$IDOOLQJZKHQ6&/ 
6WRSELW 6'$ULVLQJZKHQ6&/ 
5HVWDUWELW VWDUWDIWHUDVWDUW
$FNQRZOHGJH 6'$IRUFHGORZGXULQJD6&/FORFN
$GGUHVV
Q
$GGUHVV
Q
6WRS
*$3060'
DocID025792 Rev 2
21/34
34