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.

[参考译文] TPL0401A-10:不正确的读取和不能写入抽头位置寄存器

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

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/1315482/tpl0401a-10-incorrect-read-and-unable-to-write-wiper-position-register

器件型号:TPL0401A-10

我正在尝试根据数据表中的指令、使用 python pigpio 库中的 i2c_read_device 函数来读取和写入 Wiper 寄存器。 读取命令返回 b'\x7f\xff\xff\xff...' 而不是上电默认预期 b'\x40

我尝试将不同的值写入抽头寄存器(无错误)、但读取命令仍然返回相同的响应。 有人能帮我确定原因吗? 代码如下:

进口鸽子

pi=pigpio.pi()

句柄=pi.pi.i2c_open (1、0x2E)

print (pi.i2c_read_device (handle、10))

我将4.7k 上拉电阻器连接到 SDA 和 SCL 引脚

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

    您好!  

    您能否在示波器上分享 SDA 和 SCL 线的屏幕截图、以查看写入和读取命令? 当您写入器件时、您看到输出变化了吗? 那么 I2C 线路的 VIO 电平是多少、TPL 的 VDD 电源是多少?

    此致!

    K·琼斯