SLVUCI9 November 2023 TPS61289
1. After opening the USB2ANY Explorer, the main interface is illustrated in Figure 4-16.
2. Click 'Select Interfaces' Button, the 'Select USB2ANY Configeration' interface comes out.
Select the 'GPIO' and '12C' as shown in Figure 3-12.
Close the 'Select USB2ANY Configuration Interface' and go back to 'Main Interface' by clicking 'Close' button.
3. By clikcing upper left coner of the main interface, as shown in Figure 4-16, GPIO interface and I2C interface can be open.
4. Figure 3-13 shows the I2C interface. The I2C can be used to control the DA devices that generate voltage setting Vset and current setting Iset.
Before sending codes, click '3.3V OFF' button, and warit for the button to turn green and becomes '3.3V ON'.The 'Slave address', 'Internal Address(Hex)' and 'Write data' , are combined to configure the Voltage and Current settings.
Table 3-2 shows the relationship among I2C codes, corresponding Vset, Iset and desired Voltage/ Current target.
Slave address (Hex) | Internal Address (Hex) | Write data(Hex) | Voltage/ Current Setting (Hex) | Voltage/ Current Setting (Dec) | Vset/Iset voltage(V) | Desired Voltage tatget(V)/ Current target(A) |
---|---|---|---|---|---|---|
4D | 00 | 00 | 000 | 0 | 0 | 0 |
4D | 0F | FF | FFF | 4095 | 5 | 5(1) |
4C | 00 | 00 | 000 | 0 | 0 | -0.3 |
4C | 0F | FF | FFF | 4095 | 5 | 24.4(2) |
The 'Slave address' determines which parameter to be set. '4D' is for voltage setting and '4C' is for current setting.
'Internal Address(Hex)' and 'Write data' are combined into one value ranges from 0x000 to 0xFFF, representing the DA devices output from 0 to 5 V. The relationship is linear. For a typicl desired voltage/current setting, choose a value between 0x000 and 0xFFF.
Below is the code explames:
when target Vbat is 4 V, we can calculate that the Voltage setting(Dec) is 3276 and the Voltage setting(Hex) is 0xCCC;
The sent codes are as following:
Slave address = 0D, Internal Address = 0C and Write Data = CC.
When target Icharge/Idischarge is 5 A, we can calculate that the Current setting(Dec) is 883 and the Current setting(Hex) is 0x373;
The sent codes are as following:
Slave address = 0C, Internal Address = 03 and Write Data = 73.
After filling in the proper codes, click 'Write' button to enable the setting.
5. Figure 3-14 shows the GPIO interface.
GPIO6 and GPIO7 need to be set as Output.
GPIO6 controls the EN signal, 1 is High and 0 is Low.
GPIO7 controls the MODE signal, 1 is for Buck Mode selected and 0 is for Boost Mode selected.