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: I2C Write Timed Out when using I2C_IRQSTATUS_RAW

Part Number: TDA4VM

Tool/software:

Hello TI,

We are using I2C to access PMIC and following the steps in TRM (Figure 12-34. I2C Master Transmitter Mode, Polling Method, in F/S and HS Modes).

During the step to check XRDY flag (I2C_IRQSTATUS_RAW->XRDY) the timed out condition is reached and the transmission is not completed.

But when trying the approach to read the XRDY on the I2C_STAT (even though is a legacy status register) the transmission is completed.

Both registers have the same value, so why does this happen? In TRM it recommends to read I2C_IRQSTATUS_RAW, so why should we read I2C_STAT?

Thank you and Regards,

Marina Prado Lenza

  • Hi Marina,

    During the step to check XRDY flag (I2C_IRQSTATUS_RAW->XRDY) the timed out condition is reached and the transmission is not completed.

    But when trying the approach to read the XRDY on the I2C_STAT (even though is a legacy status register) the transmission is completed.

    Do you mean solely reading the I2C_IRQSTATUS_RAW register causes a time out error on the transmission? 

    Have you tested reading the I2C_IRQSTATUS register?

    Thanks,

    Neehar

  • Hi Neehar,

    When reading and clearing the I2C_IRQSTATUS_RAW the transmission is never completed. Also when reading and clearing the I2C_IRQSTATUS the transmission is never completed.

    But when clearing I2C_IRQSTATUS and reading I2C_IRQSTATUS_RAW then the transmission is completed.

    In TRM, both registers are R/W and share same values. This lead us to think that this information is not up to date, and I2C_IRQSTATUS is a write register and 2C_IRQSTATUS_RAW is a read register, even though this is not described in the TRM. 

    Thanks,

    Marina

  • Hi,

    I will look into this further and get back to you.

    Thanks,

    Neehar

  • Hi Marina,

    How are you reading and clearing the registers? Are you directly reading/writing to the address?

    Please take a look at the following from the TRM:

    Thanks,

    Neehar