Another way is setting the configuration through I2C. The TPS65987D can act as I2C master and send out messages at certain events. When using the “Application Customization Tool” there are several steps necessary to set this up.
First it is necessary to enable one of the I2C ports as master. This is done through the “Global System Configuration” by enabling “I2C1 Enable as Master”. In Figure 1 it is shown how this can be done in the customization tool, when using I2C1 for communication with a voltage regulator.
Next necessary step is as shown in Figure 2 to configure the address of the connected slave for the I2C port by setting this in “I2C Master Configuration”. Here for the first I2C slave it has to be configured to use I2C1 and the address of the connected regulator, in this case 0x74.
In the “App Config Binary Data Indices” shown in Figure 3 it is needed to set the “Port 1 I2C Record Start Index” to the first index used (here it is one) and the “Number of Indices” to the amount of configured I2C messages. Make sure to set useful and correct values here, otherwise it might not work as expected.
With this the data that has to been sent out can be configured in the “I2C Master Events” tab, this tab is accessible from Settings -> Show I2C Master Events Table. In Figure 4 this screen is shown, make sure to start with index one and set the right data length and address. The TPS55288 needs some initial configuration after power up. It is possible to use the “Power On Reset” event for initial configuration of the buck-/boost regulator. If multiple messages have to be sent out, simply use several indices with the same event. The messages will then be sent out one after another. The first configuration is shown in the screenshot above, the others have to be added in similar manner in the next indeces.
For the TPS55288 three messages are defined with the “Power On Reset” event:
This will make sure that the TPS55288 always starts up with 5 V at the output. Next step is to configure the different voltages. The supported voltages that are advertised are configured in “Transmit Source Capabilities” and will trigger a “Source PDO x Negotiated” event.
These events have to be configured in the “I2C Master Events”. In this example the VRef is changed according to the selected PDO:
With this configured, the TPS65987D will change the output voltage as negotiated when connecting a power sink. In addition to that, one more event should be configured to make sure, that the voltage will be at 5 V in the beginning. Therefore the detach event should send the same data as the PDO 1 event. Otherwise the output of the TPS55288 might be at higher voltage when connecting a sink.