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.

TUSB4020BI: Downstream port power over current switching

Part Number: TUSB4020BI
Other Parts Discussed in Thread: TPS2540, TPS2546, TPS2561

I have the 4020 in AutoMode, battery Charge enabled, fullpwrmgmnt enabled, Ganged OFF, ILim of 2561 ~ 1.25 A. Everything works as expected except an over current event doesn't result in the port being disabled.  I monitor the OVERCUR1Z from the 2561 and it goes low but the enable from the TUSB never transitions.

EEPROM code

00 55 01010101
01 51 01010001
02 04 00000100
03 40 01000000
04 84 10000100
05 10 00010000 'ganged off, over current on
06 0F 00001111 'bat chg on for both ports
07 0C 00001111 'ports removable
08 0F 00001111
09 00 00000000
0A 70 01110000 'auto mode on, high I div mode off
0B 00 00000000
0C 00 00000000
0D 00 00000000
0E 00 00000000
0F 00 00000000
10 00 00000000
11 00 00000000
12 44 01000100
13 84 10000100
14 05 00000101
15 84 10000100
16 EA 11101010
17 35 00110101
18 09 00001001
19 16 00010110
1A 86 10000110
1B 78 01111000
1C AE 10101110
1D C9 11001001
1E D0 11010000
1F 00 00000000
20 09 00001001
21 04 00000100
22 00 00000000
23 00 00000000
24 00 00000000
25 00 00000000
26 30 00110000
27 00 00000000
28 00 00000000
29 00 00000000
2A 00 00000000
2B 80 10000000
2C 00 00000000
2D 00 00000000
2E 00 00000000
2F 00 00000000
30 32 00110010
31 00 00000000
32 30 00110000
33 00 00000000
34 30 00110000
35 00 00000000
36 30 00110000
37 00 00000000
38 30 00110000
39 00 00000000
3A 38 00111000
3B 00 00000000
3C 34 00110100
3D 00 00000000
3E 31 00110001
3F 00 00000000
40 42 01000010
41 00 00000000
42 41 01000001
43 00 00000000
44 41 01000001
45 00 00000000
46 33 00110011

  • Hi Ted,

    Is the upstream port of the hub connected / active when this occurs?

    Regards,
    JMMN
  • Same result if connected the MacBook/powered hub or any adaptor. On the evm I have the +5 from the input jumpered over to the external 5V so it can be a self powered hub. Works well, just doesn't trip the overload port. The 2561 collapses the voltage but maintains the current.

    The trip does work when Automode is off i think?? I want automode so that it can be a BC(divider) charging hub when connected to an adaptor or DCP/CDP when connected to a hub
  • Hi Ted,

    FYI, if AUTOMODE is enabled, CDP is disabled.   I tested regular TUSB4020B and charging mode and I saw that when OVERCURz is asserted low, PWRON is disabled.  However, once the OVERCURz is not asserted, PWRON will be re-enabled.  Does this match the behavior you are seeing?

    Regards,

    JMMN

  • well, made some progress.  Overcurrent downstream power management only seems to work when VBus is tied high and connected to a CDP which means no AutoMode (no BC Divider mode).  Even with automode disabled, downstream port control doesn't work with VBus low.

    I'd like to have downstream port management work when connected to an Adaptor.  Is there a configuration that does that?

  • JMMN, not sure what PWRON is?
  • Hi Ted,

    I just sent you a friend request, can you accept it and send me your schematic directly (it won't be posted online).

    I meant to say PWRCTL, not PWRON.

    Thanks,
    JMMN
  • JMMN, at this point I am using the TI evm, TUSB4020PHPEVM REV A. Figured out today that it doesn't do Data or Power switching when VBUS <5 (which puts it in DCP mode). So, I suppose I'll live without downstream port power control because I need data.

    Any way to set it up such that it won't enumerate more current than the upstream port/adaptor indicates?

    thanks, ted
  • HI Ted,

    Unfortunately no, there is no way for the TUSB4020B to modify its behavior based on the reported current consumption of devices. I took at look through your EEPROM file and i noticed that you had the ports marked as non-removable: "07 0C 00001111 'ports removable" which could impact the power control.

    Regards,
    JMMN
  • Yes, I caught that error eventually and changed register 07H to 83H.

    Now believe the TUSB2040 will not meet my requirements.

    I was just looking at the TPS2540 and it is very close.  If I could figure out a way for it to automatically select one current limit for SDP and a higher one for CDP/DCP it would work.

    Is that possible?

    If not, is there a TI controller/switch that can adjust current limit automatically?

    thank you, ted

  • Hi Ted,

    It sounds like the TPS2546 may be a better fit for your application than the TPS2540 or a hub.

    Regards,

    JMMN

  • So, if I connect a tusb4020 evm to a macbook pro USB port that is theoretically a CDP 1.5 and then plug an iPhone into each TUSB port that enumerates as DCP 1.5 is that considered USB Compliant even though I have each port limited (via TPS2561) to 1.25 A.

    Is it up to each iPhone to limit its current draw if VBus droops?

    Plugged into the Laptop the current to each phone is .75 A and the VBus voltage is 4.4 V.  VBus input is 4.6 V which indicate the upstream port is drooping under the load.

    Plugged into a 2.4 A adaptor, each phone pegs at 1.2 A with VBus at 4.6 V.  VBus input is 4.9 V.  shows the TPS2561 working properly.

    switch settings S8 - S1: 0 0 0 1 0 0 1 1

    Is this a compliant configuration?

    thanks, ted

  • still looking for best solution
  • Hi Ted,

    If the hub connects to a CDP port (data on), then its downstream ports will be in CDP mode also.   USB hubs don't regulate the current draw of devices, however if the hub is supporting charging modes it should generally expect to provide up to 2A per port that has charging enabled.   Bus powered USB hubs are not able to support charging modes per the USB specification.

    iPhones / iPads can draw over 2A in their charging only mode, but they don't use the USB DCP charging mode they have their own charging handshake.  iPhones and Ipads will typically drop out of charging mode if they see a VBUS droop event.

    You may want to download the USB battery charging specs from usb.org to delve into all the requirements, but it appears that a CDP port must support at least 1.5A @ 4.75V to be compliant.

    Regards,

    JMMN

  • Thanks JMMN, all set for now...ted