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.

TPS65987D: Setting charge current using I2C based on GPIO value

Part Number: TPS65987D

I want to use the tps65987D to control the charge rate of a battery charger.

My device is always a UFP and current sink.

My device has 2 sources of power going to the tps65987D:

  1. USB when present
  2. External power (Pext) when present

When USB is present, I can see how to set the charge rate in the battery charger based on the negotiated PDOs and using I2C etc...

Is it possible to get the tps65987D to also send charge current level commands to the battery charger when not connected to USB (i.e. powered from Pext only), and also to send different charge level commands based on the value of a GPIO?