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.

TDA4VM: Individual camera sensor registers cannot be successfully written through i2c

Part Number: TDA4VM

Hi, TI expert

We use ub933 for serializers and ub960 for deserializers,

When configuring the camera sensor register through i2c [tda4 i2c -->ub960-->ub933-->OX01F10 (camera sensor)],

There are two registers (0x0107, 0x801b) that cannot be successfully written, and the error code returned when the write fails is -1, that is, I2C_ STS_ ERR_ TIMEOUT

All other registers can be successfully written.

1) The camera supplier has provided feedback that the 0x0107 register is quite special. After writing 1 to the register, the value will immediately change to 0. When writing a register through i2c, does tda4 i2c have any verification mechanism?

2) Is there any solution or optimization method for this situation on the platform?

  • Hi,

    Please find answers to your question below.

    1) The camera supplier has provided feedback that the 0x0107 register is quite special. After writing 1 to the register, the value will immediately change to 0. When writing a register through i2c, does tda4 i2c have any verification mechanism?

    Other than reading back this register, i dont see any other verification mechanism. But if the register contents changes just after writing, i dont see any other way.

    2) Is there any solution or optimization method for this situation on the platform?

    Did not get it. If all the other registers write are working fine, then what else special condition required to write to these registers? Can you please check with the camera supplier? From I2C module perspective, it will write this register in the same way as other registers.. 

    Regards,

    Brijesh

  • Hi Brijesh

    Other than reading back this register, i dont see any other verification mechanism.

    Do you mean that the tda4 platform i2c will automatically read back for verification when writing registers?

    Did not get it. If all the other registers write are working fine, then what else special condition required to write to these registers? Can you please check with the camera supplier? From I2C module perspective, it will write this register in the same way as other registers.. 

    I have provided feedback to the supplier, but the register 0x801b can be successfully written on other platforms.

    They suspect that the verification mechanism of "write read back" on the platform is causing the write to fail.

  • Hi Vinter,

    Do you mean that the tda4 platform i2c will automatically read back for verification when writing registers?

    No, it will not automatically readback the register. You would have to explicitly do it. 

    They suspect that the verification mechanism of "write read back" on the platform is causing the write to fail.

    Did not get it. What is write read back? I2C driver does not readback explicitly. So i really doubt it is due to this pattern. Is it possible to probe the signal on writing to this register? 

    Regards,

    Brijesh