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.

[参考译文] UCD9090A:读取 GPIO 状态

Guru**** 2391215 points


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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1379683/ucd9090a-read-gpio-status

器件型号:UCD9090A

工具与软件:

大家好、团队成员:

客户按照 AN 访问 GPIO。 但未能获得状态。  

答: 如何访问 UCD90XXX 序列发生器 GPIO (TI.com)

GPIO4和 GPIO1输出为3.3V。 GPIO2为0V。 但在读取 GPIO 状态后、我们会得到相同的返回数据。 您能帮忙检查一下吗? 谢谢。
日志如下所示。

GPIO4:
root@sonic:/home/admin # i2cset -y -f 19 0x41 0xFA 0x12
root@sonic:/home/admin # i2cget -f -y 19 0x41 0xfb
0x08

GPIO 1:
root@sonic:/home/admin
root@sonic:/home/admin # i2cset -y -f 19 0x41 0xFA 0xF
root@sonic:/home/admin # i2cget -f -y 19 0x41 0xfb
0x08

GPIO 2:
root@sonic:/home/admin # i2cset -y -f 19 0x41 0xFA 0x10
root@sonic:/home/admin # i2cget -f -y 19 0x41 0xfb
0x08
root@sonic:/home/admin

此致、
海亮

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

    你(们)好

    步骤正确。  

    是否同时有其他 I2C 主机访问 UCD?  

    需要检查的一点是读回0xFA 命令以确认0xFA 写入没有问题。

    此致

    Yihe