数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STW4102 数据表(PDF) 25 Page - STMicroelectronics

部件名 STW4102
功能描述  Dual USB/wall adapter Li-ion battery charger with gas gauge
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

STW4102 数据表(HTML) 25 Page - STMicroelectronics

Back Button STW4102 Datasheet HTML 21Page - STMicroelectronics STW4102 Datasheet HTML 22Page - STMicroelectronics STW4102 Datasheet HTML 23Page - STMicroelectronics STW4102 Datasheet HTML 24Page - STMicroelectronics STW4102 Datasheet HTML 25Page - STMicroelectronics STW4102 Datasheet HTML 26Page - STMicroelectronics STW4102 Datasheet HTML 27Page - STMicroelectronics STW4102 Datasheet HTML 28Page - STMicroelectronics STW4102 Datasheet HTML 29Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 34 page
background image
STw4102
I2C interface
25/34
10
I2C interface
10.1
Read and write operations
The I2C interface is used to control the charging and the gas gauge system. It is compatible
with the I2C specification of Philips (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 bi-directional data transfers
A filter rejects the potential spikes on the bus data line to preserve data integrity. The bi-
directional data line supports transfers up to 400 kbit/s (fast-mode). The data is shifted into
and from the chip on the SDA line, MSB first.
The first bit must be high (START), followed by the Device ID and Read/Write control bit (see
Table 15). The AddrID0 to AddrID2 bits are factory programmable, their default ID value is
70h (AddrID0 = AddrID1 = AddrID2 = 0). Then, the STw4102 sends an acknowledge at the
end of the 8-bit transmission.
The next 8 bits correspond to the address register, followed by another acknowledge.
Table 16 shows the address register format.
The data field is sent last. It can be composed of several 8-bit data registers, each followed
by an acknowledge. Table 17 shows the data register format.
The STw4102 supports byte read, word read, block read, and byte write operations. The
transmission protocol is summarized in Figure 24 and Figure 25.
r
Figure 24.
Byte, word and block read operation
Table 15.
Device ID and R/W bit format
b7
b6
b5
b4
b3
b2
b1
b0
1
1
1
0
AddrID2
AddrID1
AddrID0
R/W
Table 16.
Address register format
b7
b6
b5
b4
b3
b2
b1
b0
RegAddr7
RegAddr6
RegAddr5
RegAddr4
RegAddr3
RegAddr2
RegAddr1
RegAddr0
Table 17.
Data register format
b7
b6
b5
b4
b3
b2
b1
b0
DATA7
DATA6
DATA5
DATA4
DATA3
DATA2
DATA1
DATA0
Start bit = SDAfalling when SCL=1
Stop bit = SDArising when SCL=1
Restart bit = start after a start
Acknowledge = SDA force low during a SCL clock
Start Device id
Reg address
8bits
A
Restart Device id
R
A
Reg data
8bits
A
Reg data
8bits
A
Reg data
8bits
A/A
address
7 bits
7 bits
n+1
address
n+2
Stop
A
W
Master
Slave
<-- byte read -->
<-- word read (2 bytes) ---------->
<-- block read (up to 10 bytes) ---------------------->



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com