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.

TPS65982 Register read

Other Parts Discussed in Thread: TPS65982

Does anybody face the issue below:

Read->0x29:08c0540071

Read->0x28:0a8d033f45f70c102ad800

i use same read function for 0x29 and 0x28 register,but i think the 0x29 register reading return wrong length.

the length on spec is 4 bytes. or is there any difference between TPS65982 series?

e2e.ti.com/.../

  • The length of Control Config, Reg. 0x29 is 4 bytes. You are correct, the documentation is correct, and the data is correct. 0xC0 54 00 71 means the following bits are enabled:

    • Process Swap to Source
    • Initiate Swap to Source
    • Process Vconn Swap
    • Process Swap to UFP
    • Process Swap to DFP
    • Automatic ID Request

    And a few innocuous Reserved bits are '1' but will be ignored by your code if it is defined in a structure as Reserved.

    For Read/Write Registers like 0x29, the Register Length is already defined correctly in order for you to Write to this Register of the TPS65982.

    Returning the wrong length when a register is being Read is not usually a problem, since a NAK is sent by the I2C Slave when it is done sending data.

    It doesn't appear that your code malfunctioned as a result of this error, but it is a strange inconsistency. Thanks for pointing it out!