This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TCA9548A:TCA9548A I2C写入/读取完整序列

Guru**** 2394305 points
Other Parts Discussed in Thread: TCA9548A

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/626003/tca9548a-tca9548a-i2c-write-read-full-sequence

部件号:TCA9548A

大家好,

您能告诉我使用TCA9548A的I2C读/写的完整序列吗?

系统配置
TCA9548A (从属地址0x70)
8 I2C设备(从属地址0x10~17,数据地址0x01~0A)

问题1. 将CH7设备的0x09值写入0x01

0xE0 (TCA9548A从属地址0x70和写入位)=> 0x80 (启用CH7)
0x2E (选择I2C设备,0x17使用写入位连接到CH7)=> 0x09 (数据地址)=> 0x01 (值)

问题2. 从CH7 0x09读取

0xE1 (TCA9548A从属地址0x70和读取位)=> 0x80 (启用CH7)
0x2F (选择I2C设备,0x17连接到具有读取位的CH7)=> 0x09 (要读取的数据地址)=>等待

谢谢你。

此致,
Jade  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Jade,

    在这两种情况下,程序都是正确的。 请记住,在每个字节之间,将有一个来自与之通信的设备的确认,以验证通信是否正常工作。 如果您尝试此过程时,此过程不起作用,请告诉我。

    此致,