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.

TUSB3410: Using the TUSB3410 as a USB to I2C bridge

Part Number: TUSB3410
Other Parts Discussed in Thread: SN65DP159

We are planning to use the TUSB3410 as a USB to I2C bridge. I would like information on how to write the code on the PC side to interface to the TUSB3410 as an I2C device. I know that it supports standard serial port setup and control functions. Something like a header file with function prototypes would be helpful.

The current TUSB3410 boot code has the ability to read and write memory via instructions from the USB port. Initially I would like to use this functionality to test out the I2C interface and see if I can access my application MCU using the TUSB3410 I2C via the PC. This is mainly to test that the hardware connection is correct. Would you know how I can access this functionality from the PC side?

Longer term I plan to write custom code on both the PC and TUSB3410. I have applied to get access to the TUSBWINVCP driver source code. It has also been suggested from a TI support engineer that I request access to TI customized firmware that can read/write registers from an I2C slave and accompanying PC code.

Any help in this area would be greatly appreciated

 

  • Hello William,

    We do have an special firmware to make the TUSB3410 work as a USB to I2C bridge. However this function excludes the capability of using the device as a USB to UART bridge (at the same time).

    As you may already know, the VCP/USB-to-UART firmware can be loaded either connecting an external EEPROM to the device that stores the firmware's binary file, OR it can be loaded by the driver through USB. However, the USB to I2C firmware can only be loaded from an external EEPROM (because the VID/PID information on the boot loader, is already associated to the VCP driver).

    So, from your post I am assuming your intention is to first use the device as a USB-to-I2C bridge to perform some sort of testing/verification on your platform and then SWITCH the device to start working as a VCP/USB-to-UART bridge?

    If that is the case, you will need either two different TUSB3410 devices, one for each of the functions, or to implement some logic to switch the device's functionality as required. For example you can program the USB-to-I2C firmware to the external EEPROM, so when the system starts it will load the firmware from there and you can use it as a USB-to-I2C device, then when you need to switch to the USB to UART function, you disable the EEPROM and reset the device, so the boot loader won't find an external EEPROM and the driver would load the USB-to-UART firmware over USB making the device work as a VCP/USB-to-UART bridge. I hope this is clear enough.

    As to the USB to I2C function we can send you an email with the firmware binary and some source code examples along with DLLs to communicate with the device over Windows, Linux and Mac operating systems.

    Regards,

    Jorge Llamas.

  • Hi Jorge,

    Thanks very much for the reply, it is greatly appreciated.

    We have an external EEPROM and are planning to boot the TUSB3410 from the EEPROM. We are only planning to use the USB-to-I2C functionality. We are not planning to use the VCP/USB-to-UART functionality.

    tt would be great if you could send us the USB-to-I2C

     - Firmware binary, 

     - Source code examples, and

    - DLLs to communicate with the device over Windows, Linux and Mac operating systems.

    Thanks again

    Regards

    Bill

  • Hi Jorge,

    Are there plans to release this USC to I2C firmware? Where can I get this?

    Best regards,
    weiman
  • Hi Jorge,

    Can I get this USB to I2C bridge firmware as well? Any plans for releasing the firmware?
  • Wei,

    I'll send you the details via email.

    Regards

  • Dear Jorge,

    i am also interested in this solution to use the TUSB as I2c bridge. My goal is to run the eye scan tool for SN65DP159 in our real target through TUSB3410 UARTPDK

    Regards

    Michael Vögele
  • HI Michael,

    I responded to this issue in a separate thread.

    Thanks!
    JMMN