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.

USB-PD-CHG-EVM-01: EVM is drawing current from the battery instead of charging it.

Part Number: USB-PD-CHG-EVM-01
Other Parts Discussed in Thread: TPS25750, BQ25790, BQ25792

Hi,

I am familiarising the USB-PD-CHG-EVM-01. I connected 2 Series Li-ion batteries and flashed a configuration bin file generated by "TPS25750 Application Customizaion Tool Version 7.0.1.3"  into the EEPROM. When I connected Samsung's adaptive fast charging adapter (EP-TA200) and Samsung's PPS supported Super fast charging adapter (EP-TA800) to the Type C receptacle, I observed that instead of charging the battery, the EVM is drawing a current of 30mA from the battery. No load is connected to the VSYS (J1). What might be the issue?

Configuration which is used to generate the bin file

1. Select your configuration:
        - power source (provider) and a power sink (consumer) top-left config. (Default one)
2. What is the maximum power that can be sourced?
        - 15W (5V)
3. What is the required sink power or power consumed?
        - 100W (20V)
4. What is the preferred power role?
        - Power sink (consumer)
5. Do you have a preferred data role?
        - No
6. What is the supported USB Highest Speed?
        - No USB data is being used
7. Do you have a Vendor ID provided by the USB-IF?
        - No, use the TI Vendor ID in the Vendor Information File (VIF)
8. Do you have a desired Product ID?
        - No, use "0x0000" as the Product ID
9. Select the battery charger component to integrate:
        - BQ25790 or BQ25792
10. What is the battery charging voltage?
        - 8.4V
11. What is the battery charging current?
        - 500mA
12. What is the charge termination current?
        - 80mA
13. What is the pre-charge current?
        - 40mA

Some observations:

  • TP1 (PPHV) readings were:
    • 9V when EP-TA800 adapter was used.
    • 5V when EP-TA200 was used.
  • MODE register of the PD controller was read to be "APP<SP>"
  • STATUS LED (D1) was also ON during that time.
  • The VSYS voltage was fluctuating between 1.9V and 2.3V when the battery was disconnected. When the battery was connected, the voltage at VSYS was seen to be the same as of the connected battery.
  • Hello,

    Can you please tell me what jumpers you have connected? Without an external thermistor JP4 needs to be populated and for a 2s battery JP1 needs to be populated.

    Thanks,

    Mike Emanuel

    Please click "Resolved" if this answered your question.

  • Hi,

    The jumpers are connected at JP4 and JP1.

  • Hello,

    Are you connecting a real battery to the USB-PD-CHG-EVM-01? What is its voltage? Can you try raising the battery voltage to say 6 V? Have you tried increasing the precharge current?

    Thanks,

    Mike Emanuel

  • Hi Michael,

    Yes. I am using real batteries. I tried 2 voltage levels using 2S battery combinations - 6.28V and 8.15V. I have tested with a pre-charge current of 160mA. Still there is the above mentioned issue.

  • Did you power cycle the EVM after flashing it?

    Thanks,

    Mike Emanuel

  • Hi Michael,

    Yes. I have unplugged and then plugged the Type C cable and also reconnected the battery.

  • I need to see the PD traffic. Can you order a PD Analyzer, such as the one linked below, and show me logs when plugging in the PD source?

    https://www.totalphase.com/products/usb-power-delivery-analyzer/

    In addition, can you try and read the status of the battery charger registers? This will give insight into the battery charger. Try this first.

    Thanks,

    Mike Emanuel

  • Hi Michael,

    Before that can you please share a configuration that is perfectly working at your side? I think it would be better if I can test the same configuration here.

  • Hello,

    This attached full flash binary works.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/196/Working_5F00_Binary.bin

    Thanks,

    Mike Emanuel

    Please click "Resolved" if this answered your question.

  • Hi Michael,

    Testing with the Working_Binary.bin

    The Working_Binary.bin also doesn't seem to work.

    • C-type receptacle's VBUS - 9.1V
    • TP1 (PPHV) - 9.1V
    • VBAT - 8.133V,
    • VSYS - 8.1V

    Probing BQ25792

    I tested with my same old configuration except for the charging current, which was changed to 1A and probed some pins of the BQ25792 under different scenarios. Please check the readings and give your comments. The voltages are DC voltages measured in a multimeter. The observations are:

    Battery connected USB connected USB Type C
    Receptacle VBUS (V)
    PPHV
    (V)
    VBAT
    (V)
    VSYS
    (V)
    BTST1
    (V)
    SW1
    (V)
    REGN
    (V)
    SW2
    (V)
    BTST2
    (V)
    PMID
    (V)
    YES YES 9.12 9.12 7.82 7.82 4.51 4.26 4.99 4.26 4.49 9.11
    YES NO 0 0 7.81 7.81 0.015 0.015 0 0.014 0.014 0.128
    NO YES 9.08 9.08 N/A 0.22 0.018 0.019 0 0.035 0.031 9.08

    One thing that I noted here is that REGN is 0 in 2 cases. As REGN provides the gate driving voltage of the internal MOSFETs, shouldn't it be greater than 0 in all the three conditions?

  • Hello,

    We are closed on 07/05 in observance of Independence Day and will get back to you when we return to the office by 07/07.

    Best regards,

    Mike Emanuel

  • Can you please probe the I2C registers of the battery charger? I just plugged in a new board and charging works just fine. Do you have another board to test? Have you tried removing the battery and putting a 0.5 A load on SYS?

    Thanks,

    Mike Emanuel

  • Can you please probe the I2C registers of the battery charger?

    Currently we are not able to read the registers of the BQ from the TPS using I2Cr command. When asked in a query, we came to know that it is a known issue.

    e2e.ti.com/.../usb-pd-chg-evm-01-i2cr-is-not-reading-from-the-bq25792

    So the only way left is to probe the BQ registers through the J7 pins. I hope it is okay to do so. It is mentioned in the datasheet of the TPS that it won't support multiple master mode. We hope that the worst thing that can happen is that the I2C transaction might become corrupt. Still, it would be helpful if you specify the registers.

    Do you have another board to test?

    No. We have only one.

    Have you tried removing the battery and putting a 0.5 A load on SYS?

    Actually, when the battery was removed, the voltage that appeared at the SYS, diminished with time. I suppose it might be due to residual charge in some capacitors. So, how can we calculate the load resistance which draws 0.5A current?

  • Hello,

    Please read all of the registers from the battery charger. As long as you do not try to read the battery charger registers upon insertion of the USB C cable (ie wait a few seconds after insertion) you should be able to read the registers.

    I need the registers to understand the behavior of the charger. If an input is applied through the USB C Cable, SYS should be either at the SYSMIN of 7 V or hitting BATOVP even without a battery. The registers will inform us of the status.

    Also I just took one of my new boards and loaded on the binary provided and it charged at 500 mA for 5 V, 9 V, 15  V, and 20 V contracts.

    Thanks,

    Mike Emanuel

  • Hi Michael,

    I have added all the register values in the table below.

    Some points to note:

    • Configuration used: Working_Binary.bin (The one that you have provided).
    • The bytes are in the order in which they are received. Leftmost byte is the first received one and rightmost the last.
    • I have listed the register values when the ADC is enabled and disabled. When the battery is not connected, I am able to read but not able to write successfully into BQ registers. After writing, when I read back the values, I observed that the values were not updated. When battery is connected we don't have this issue. Therefore, I couldn't enable the ADC when the battery is not connected.
    • The first time I probed in the battery disconnected state, I also reconnected the USB cable. This time the voltage at the USB's VBUS was 2.4V and that at the PPHV was 0V. I couldn't access the BQ through I2C. Therefore, The second time, I disconnected the battery, I didn't disconnect the Type-C and reboot the TPS. That is how I probed the registers.

    Sl. no. Register name Offset Battery is connected Battery not connected
    ADC not enabled
    (Default)
    ADC enabled ADC not enabled
    (Default)
    1 REG00_Minimal_System_Voltage 0x00 0x12 0x12
    2 REG01_Charge_Voltage_Limit 0x01 0x03 0x48 0x03 0x48
    3 REG03_Charge_Current_Limit 0x03 0x00 0x32 0x00 0x32
    4 REG05_Input_Voltage_Limit 0x05 0x4f 0x2c
    5 REG06_Input_Current_Limit 0x06 0x01 0x2c 0x01 0x2c
    6 REG08_Precharge_Control 0x08 0x01 0x01
    7 REG09_Termination_Control 0x09 0x02 0x02
    8 REG0A_Re-charge_Control 0x0a 0x63 0x63
    9 REG0B_VOTG_regulation 0x0b 0x00 0xdc 0x00 0xdc
    10 REG0D_IOTG_regulation 0x0d 0x4b 0x4b
    11 REG0E_Timer_Control 0x0e 0x3d 0x3d
    12 REG0F_Charger_Control_0 0x0f 0xa2 0xa6
    13 REG10_Charger_Control_1 0x10 0x80 0x80
    14 REG11_Charger_Control_2 0x11 0x00 0x00
    15 REG12_Charger_Control_3 0x12 0x00 0x00
    16 REG13_Charger_Control_4 0x13 0x01 0x01
    17 REG14_Charger_Control_5 0x14 0x1c 0x1c
    18 REG15_Reserved 0x15 0xaa 0xaa
    19 REG16_Temperature_Control 0x16 0xc0 0xc0
    20 REG17_NTC_Control_0 0x17 0x7a 0x7a
    21 REG18_NTC_Control_1 0x18 0x54 0x54
    22 REG19_ICO_Current_Limit 0x19 0x01 0x2c 0x00 0x32
    23 REG1B_Charger_Status_0 0x1b 0x0f 0x0f
    24 REG1C_Charger_Status_1 0x1c 0x70 0x0a
    25 REG1D_Charger_Status_2 0x1d 0x01 0x00
    26 REG1E_Charger_Status_3 0x1e 0x00 0x00
    27 REG1F_Charger_Status_4 0x1f 0x00 0x10
    28 REG20_FAULT_Status_0 0x20 0x00 0x00
    29 REG21_FAULT_Status_1 0x21 0x00 0x00
    30 REG22_Charger_Flag_0 0x22 0xaf 0xaf
    31 REG23_Charger_Flag_1 0x23 0x92 0x92
    32 REG24_Charger_Flag_2 0x24 0x00 0x50
    33 REG25_Charger_Flag_3 0x25 0x00 0x10
    34 REG26_FAULT_Flag_0 0x26 0x00 0x00
    35 REG27_FAULT_Flag_1 0x27 0x00 0x80
    36 REG28_Charger_Mask_0 0x28 0x00 0x00
    37 REG29_Charger_Mask_1 0x29 0x00 0x00
    38 REG2A_Charger_Mask_2 0x2a 0x00 0x00
    39 REG2B_Charger_Mask_3 0x2b 0x00 0x00
    40 REG2C_FAULT_Mask_0 0x2c 0x00 0x00
    41 REG2D_FAULT_Mask_1 0x2d 0x00 0x00
    42 REG2E_ADC_Control 0x2e 0x30 0xb0 0x30
    43 REG2F_ADC_Function_Disable_0 0x2f 0x00 0x00 0x00
    44 REG30_ADC_Function_Disable_1 0x30 0x00 0x00 0x00
    45 REG31_IBUS_ADC 0x31 0x00 0x00 0x00 0x02 0x00 0x00
    46 REG33_IBAT_ADC 0x33 0x00 0x00 0x00 0x00 0x00 0x00
    47 REG35_VBUS_ADC 0x35 0x24 0x36 0x23 0xdc 0x23 0xd8
    48 REG37_VAC1_ADC 0x37 0x00 0x00 0x23 0x9c 0x00 0x00
    49 REG39_VAC2_ADC 0x39 0x00 0x00 0x23 0x9c 0x00 0x00
    50 REG3B_VBAT_ADC 0x3b 0x00 0x00 0x1f 0xe4 0x00 0x00
    51 REG3D_VSYS_ADC 0x3d 0x00 0x00 0x1f 0xd4 0x00 0x00
    52 REG3F_TS_ADC 0x3f 0x00 0x00 0x02 0x50 0x00 0x00
    53 REG41_TDIE_ADC 0x41 0x00 0x00 0x00 0x35 0x00 0x00
    54 REG43_D+_ADC 0x43 0x00 0x00 0x00 0x00 0x00 0x00
    55 REG45_D-_ADC 0x45 0x00 0x00 0x00 0x00 0x00 0x00
    56 REG47_DPDM_Driver 0x47 0x00 0x00 0x00
    57 REG48_Part_Information 0x48 0x08 0x08 0x08
  • Something is wrong with your setup. You should not have a 0 V PPHV when the Type C is plugged in.

    Now I need to see the PD traffic. Can you order a PD Analyzer, such as the one linked below, and show me logs when plugging in the PD source?

    https://www.totalphase.com/products/usb-power-delivery-analyzer/

    We need to make sure proper PD power is getting to the battery charger.

    Thanks,

    Mike Emanuel

  • Hi Michael,

    Currently, we are waiting for another sample of the same EVK. If the same issue is found in that EVK also, we will order the PD Analyzer. I will update you.

    Thanks and regards,

    Vishnu Sukumaran

  • Dear Vishnu,

    I await your results.

    Thanks,

    Mike Emanuel