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.

TUSB8042: Sample Code/Program Development Guide

Part Number: TUSB8042

Tool/software:

I want to individually control the PWR1-4 pins of the TUSB8042 with a C# program.

The purpose is to perform a hardware reset on a connected device at will while communicating with it using the libusb library.

Can you provide sample code or a program development guide?

  • Hi Kim:

       PWR1-4 is used to control Vbus switch for downstream ports. When FULLPWRMENT is low, power  switching is enabled.

        So you can use any GPIO pin to control FULLPWRMENT to enable or disable power switching.

       We don't have sample code for power switching  control.

    Best

    Brian

  • Thank you for your response. I have summarized my situation and what I need again. I'm asking for your help.

    1. I implemented a hardware (HW) reset for the hub port using DeviceIoControl's IOCTL_USB_RESET_HUB with a third-party USB hub IC.

    2. Using the method above, the HW reset only occurs with a USB 2.0 connection.

    3. With a USB 3.0 connection, only the driver reconnects, and the HW reset does not happen.

    4. Conclusion: I want to know how I can perform a hardware reset on the hub port when connected via USB 3.0.

    I would appreciate any helpful information or resources, even if they aren't the exact solution.

  • Hi Kim:

      You can control GRSTz pin to hardwire reset  both USb2 hub and USB3 hub.

    Best

    Brian