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 half-duplex

Part Number: TDA4VM

Tool/software:

Hi Ti expert:

SDK 0902

I want to use i2c in DSP.
I want use  i2c  as half-duplex mode.
How can I set it?
Any demo in sdk?

Best Regards
Eason

  • Hi Eason,

    Can you explain more on what you are trying to do and what is your use case?

    I did not fully understand as the I2C protocol is inherently in half-duplex mode with two lines, SCL and SDA. However, it is half-duplex as you cannot simultaneously send data both from master to slave and slave to master.

    Thanks,

    Neehar

  • Hi Neehar

    Can you explain more on what you are trying to do and what is your use case?

    I need to use I2C to actively receive data and I also need I2C to send data. That is: as a slave and a master.

    I didn't say that I need to send and receive data at the same time. I want a half-duplex demo.

    Best Regards
    Eason

  • Hi Eason,

    I didn't say that I need to send and receive data at the same time. I want a half-duplex demo.

    Yes, that is why I said I2C protocol already acts in half-duplex mode inherently with two lines.

    We do not have a demo with DSP, however, you can refer to the I2C driver examples within the SDK.

    Are you using RTOS or Linux? The RTOS PDK has an example at the following path:

    ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/drv/i2c/test/eeprom_read

    Thanks,

    Neehar