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.

TUSB320LAI: simultaneous charging and data transfer Issue.

Part Number: TUSB320LAI
Other Parts Discussed in Thread: TUSB320

Tool/software:

Dear Texas Instruments Support,


I am working on a project where I need to configure the TUSB320LAI (USB Type-C Configuration Channel Logic and Port Control) using a PIC16F1508 microcontroller over I2C using protocol.

I am using this IC with following PIN configuration from Hardware side,

  • PORT - NC – DRP mode
  • ADDR – Pullup - I2C is enabled and I2C 7-bit address is 0x67
  • As per our schematic, we connect host to J7 Type-C pin connector, another J6 & J8 Type-C pin connector working as device

Our core requirement is:
“To enable simultaneous charging and data transfer through the same USB Type-C port (host side).”

One of my team members from the hardware team reached out to TI Support regarding the selection and configuration of the TUSB320 IC about four months ago. Please refer to the following link,
https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1475854/tusb321-validating-concept-of-host-charging-using-configuration-channel-logic-and-port-control-with-vcon
According to ‘Vishesh sir’ response, "the TUSB320 IC can charge a device while supporting USB data transfer to and from the USB host without the need for a PD controller."

However, based on my recently discussions with TI Support engineer ‘Ryan Sir’ and our experimental results, it appears that the TUSB320 IC does not play a role in USB data transfer. Please refer to the following link,
https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1532631/tusb320lai-tusb320lai-csr-register-configuration-by-i2c-protocol


We would greatly appreciate any suggestions on:

  • Whether any hardware modifications are needed (e.g., adding an additional IC)?
  • Any specific configuration required for the TUSB320?
  • Whether another IC such as a PD controller or DRD-capable IC is necessary to fulfil our use case?
  • Kindly suggest another IC (Similar with TUSB320) which have 1 Amp Current mode.

Please advise on a proper solution for achieving our requirement.
We are preparing to submit the prototype to our customer next week, so we kindly request your urgent support in resolving this issue. Your guidance is crucial at this stage.

Here is attachment of my code and our schematic of TUSB320LAI IC. Please find it.
/cfs-file/__key/communityserver-discussions-components-files/138/TUSB320-Code.zip

Thanks for your support,
Best regards,
Mayank Mirajkar

  • Hi Mayank,

    I would like to confirm your system in a block diagram, so I can make sure I understand what your system looks like:

    When you connect a phone or iPad, it is connecting on the left hand port here, correct? When it is connected, what is it attempting to communicate to? A device downstream from the hub like a flash drive? The DP/DM of that port is connecting to the upstream port of the hub, which is meant to communicate to a host upstream. If there is a UFP device upstream, like a phone, the hub will likely not communicate with it, as it is expecting a host connection.

    From what I can tell on your schematic, the two downstream ports connecting to the device are not being controlled by any CC controller or anything, just pulled up to VCC. For every type-C port, there should be a CC controller or PD controller controlling the CC pins to help configure it correctly. It should not just have the CC pins pulled-up, or else the CC connection will be affected, or non-functional in general.

    CC controllers only affect port orientation, current advertisement/detection, and in the case of a DFP orientation, when VBUS should be sent through the port. It does not interact at all with the data side of the USB connection.

    Please review the block diagram to ensure I have a proper understanding, and offer any clarification if I missed anything.

    If you want to ensure the data and power connection is correct for sure, I would recommend looking at one of our PD controllers, and reaching out for assistance from their team as to whether a PD controller would ensure your system works as needed.

    Thanks,

    Ryan

  • Dear Ryan Sir,

    Thanks for your response.

    As per your mail,

    When you connect a phone or iPad, it is connecting on the left hand port here, correct?

    Correct.

    When it is connected, what is it attempting to communicate to?

    If the TUSB320 is configured using the code provided above, it will attempt to charge the connected phone or iPad.

    Please review the block diagram to ensure I have a proper understanding, and offer any clarification if I missed anything.

    Yes, we confirm that you have understood it correctly.

    If you want to ensure the data and power connection is correct for sure, I would recommend looking at one of our PD controllers, and reaching out for assistance from their team as to whether a PD controller would ensure your system works as needed.

    We kindly request your recommendation on a suitable PD controller that would meet our requirements.



    Please advise on a proper solution for achieving our requirement.
    We kindly request your urgent support in resolving this issue. Your guidance is crucial at this stage.

    Thanks for your support,
    Best regards,
    Mayank Mirajkar

  • Hi Mayank,

    When it is connected, what is it attempting to communicate to?

    If the TUSB320 is configured using the code provided above, it will attempt to charge the connected phone or iPad.

    The TUSB320 itself does not provide any power to the iPad. All the TUSB320 is doing in this scenario is advertising how much current it can provide to whatever is connected to downstream, so that the UFP device can pull that much from the host that is providing VBUS. 

    I noticed that the port this connector is connected to on the hub is able to switch between being a downstream facing port and an upstream facing port. Is the hub port being controlled so that it is set as a downstream facing port when connected to an iPad or phone, or is it meant to automatically adjust? I'm unfamiliar with this hub.

    Additionally, does the hub act as a host in this system? Is it able to communicate with whatever is connected downstream via the DP/DM lanes so that it can transfer data as needed, or does this hub just act as a way to connect an upstream host to a downstream device?

    If it does not act as a host, what is the iPad/phone connecting to when connected? If there is meant to be a USB connection, there needs to be a host or something similar connected to the iPad/phone.

    We kindly request your recommendation on a suitable PD controller that would meet our requirements.

    Our team does not cover the PD controller portfolio, nor do I have experience with these devices myself. I would recommend looking at the list of devices here, or posting another E2E under one of these devices so that the appropriate team can advise you as to whether you need a PD controller or not:

    https://www.ti.com/product-category/interface/usb-ics/usb-type-power-delivery-ics/products.html

    Thanks,

    Ryan

  • Dear Ryan Sir,
    Thanks for your response.
    As per your mail,

    Is the hub port being controlled so that it is set as a downstream facing port when connected to an iPad or phone, or is it meant to automatically adjust?

    The upstream port of hub is controlled by TUSB320, below is our test
      - If upstream port connect with iPad or any mobile, TUSB320 act as DFP mode, and start charging my host.
      - If upstream port connect with Laptop, TUSB320 act as UFP mode, and start data transfer with host.

    Additionally, does the hub act as a host in this system?

    No.

    does this hub just act as a way to connect an upstream host to a downstream device?

    Yes

    If there is meant to be a USB connection, there needs to be a host or something similar connected to the iPad/phone.

    We already share our schematic with you, on host connector (J7, USB Type-C, Upstream port of HUB) side only TUSB320 IC connected.



    Thanks for your support,
    Best regards,
    Mayank Mirajkar

  • Hi Mayank,

    What device is acting as the host in this setup? I am looking through your schematic and block diagram, and I don't see something that looks like a host. Is it connecting externally, like a host PC, and connecting though the hub to the iPad/Phone? All I see that could be a host is the SAM5704, but I don't believe that is a host.

    The TUSB320 does not act like a host itself, it only controls the port. If you could have a block diagram of what a normal setup in your system looks like, not just a block diagram of the parts on your system, that could help us understand.

    Thanks,

    Ryan

  • Dear Ryan Sir,
    Thanks for your response.
    As per your mail,

    What device is acting as the host in this setup? I am looking through your schematic and block diagram, and I don't see something that looks like a host. Is it connecting externally, like a host PC, and connecting though the hub to the iPad/Phone?

    Yes, You understand correct. external device like PC/iPad/Phone is connected to upstream port of HUB is act as host.

    Thanks for your support,
    Best regards,
    Mayank Mirajkar

  • HI Mayank,

    Thanks for the clarification

    The upstream port of hub is controlled by TUSB320, below is our test
      - If upstream port connect with iPad or any mobile, TUSB320 act as DFP mode, and start charging my host.
      - If upstream port connect with Laptop, TUSB320 act as UFP mode, and start data transfer with host.

    It seems in this statement contradicts this a little bit.

    A Ryan mentioned, would you be able to share an example of a fully working system?

  • Dear Sir,
    Thanks for your response.
    As per your mail,

    would you be able to share an example of a fully working system?


    I already shared schematic & TUSB320 code. What another things you want to require? Please tell I will provide you.

    Thanks for your support,
    Best regards,
    Mayank Mirajkar

  • Hub upstream port can only be used as UFP and can not charge the Pad it connected. You do need PD controller  for this application.

    Regards

    Brian

  • Dear Sir,
    Thanks for your response.
    As per your mail,

    Kindly suggest some low cost PD controllers which is suitable for our application.


    Thanks for your support,
    Best regards,
    Mayank Mirajkar

  • Hi Mayank,

    I see that the hub you are using has FLEX capabilities, where the upstream port can be changed to a downstream port. Is the port on the hub being used to connect to the iPad/phone and laptop being actively switched between downstream and upstream facing based on the CC controllers configuration? I just want to confirm this.

    Kindly suggest some low cost PD controllers which is suitable for our application.

    Again, our team does not have any experience with using these PD controllers, nor do we have the expertise to choose which one would fit your application. It would be best to reach out to the PD controller team via one of their products listed here, and seeing how they would advise you on selecting a PD controller:

    https://www.ti.com/product-category/interface/usb-ics/usb-type-power-delivery-ics/products.html

    Thanks,

    Ryan