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: I2C3 master activation?

Part Number: TPS65987D
Other Parts Discussed in Thread: BQ25703, TPS65987,

I have problem with Application Customization tool and I2C3 port

I try to configure TPS65987DH I2C3 port as master and BQ25703 is slave. When I use PC with I2C tool to write BQ25703 registers and parameters the BQ25703 start up and works OK.   I can Charge battery.

Same parameters written to TPS65987 Application Customization tool according to SLVAE18

I Tried to change register 5C but no success, the I2c3 port stays not active. Can't see any clk or data pulses if I use oscilloscope.

What registers need to be set to get I2c3 port activated?

What I tried was register 5C bytes 1 to 4 to get gpio 5 and gpio 6 to enabled.   ( my first set was like 12C004  and then enable to bit 5 and 6 -> 12C064 )

  • Hi Heikki,

    I believe the reason the I2C port wasn't responding may have been because the TPS65987DH I2C3 port is configured as a Master and the BQ25703 is configured as a Slave and you are attempting to write a command to the PD controller. I do not see a register 5C on the BQ25703 datasheet so I assume you are referring to the PD controller's register 5C to change the GPIO 5 and GPIO 6. However, to do this you will have to use either I2C1 or I2C2 ports as they can be Slave and you will have to use a Host as a Master to write I2C commands to configure the TPS65987D.

    If you're trying to just set register values for the BQ25703 using the TPS65987D then you should be able to use it the was you described, I2C3 port as master. You should be able to set I2C3 as a Master in the TPS65987D Application Customization Tool GUI. You may also have to set GPIO18 to high/'1' to enable GPIO5 and GPIO6 to be I2C3 SCL/SDA pins. The TPS65987D Technical Reference Manual also have a GPIO section which will be helpful setting register 5C. The I2C Master Configuration Application Note that you mentioned will also explain the process to program BQ25703 correctly and you can also look at the BQ25703 datasheet to see which registers are available.

    Thank you,

    Hari