打印

请问有人用过tmp101吗

[复制链接]
1449|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
student06|  楼主 | 2007-7-31 22:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
gjg191| | 2007-8-1 08:08 | 只看该作者

dd

WRITING/READING TO THE TMP100 AND
TMP101
Accessing a particular register on the TMP100 and
TMP101 is accomplished by writing the appropriate value
to the Pointer Register. The value for the Pointer Register
is the first byte transferred after the I2C slave address byte
with the R/W bit LOW. Every write operation to the
TMP100 and TMP101 requires a value for the Pointer
Register. (Refer to Figure 6.)
When reading from the TMP100 and TMP101, the last
value stored in the Pointer Register by a write operation is
used to determine which register is read by a read
operation. To change the register pointer for a read
operation, a new value must be written to the Pointer
Register. This is accomplished by issuing an I2C slave
address byte with the R/W bit LOW, followed by the Pointer
Register Byte. No additional data is required. The master
can then generate a START condition and send the I2C
slave address byte with the R/W bit HIGH to initiate the
read command. See Figure 7 for details of this sequence.
If repeated reads from the same register are desired, it is
not necessary to continually send the Pointer Register
bytes as the TMP100 and TMP101 will remember the
Pointer Register value until it is changed by the next write
operation.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

35

帖子

0

粉丝