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.

TCA6416A: 为DP83867提供复位信号

Part Number: TCA6416A

大家好,我现在需要用TCA6416A  P6管脚配置成输出,我的逻辑是先用Command Byte 06 把P10端口配置成输出,然后用Command Byte 02把输出寄存器的p6管脚置1,我只能确定每次写入TCA6416A都会给我回复ACK,请问我还能怎么确定我已经把管脚的数值成功置1了呢?逻辑上有错误吗?

  • 您好, Command Byte 06就是配置IO口方向的,那么P6配置为输出的话,应该是C06 配置为输出,即为0. 

    而寄存器Command Byte 02反映的就是 Command Byte 06 配置的寄存器的值,比如我们配置的C06 为0,那么读取这个寄存器O-06bit读取的应该为0.同样Command Byte 06 寄存器将C06 配置为1,输入端口,那么Command Byte 02 读取的O-06就为1. 

    也就是说Register 6和7配置IO口的方向,通过读取Register2和3 来读取是否配置的0和1.