SLVAF46 May   2021 TPS65988

 

  1.   Trademarks
  2. 1Introduction
  3. 2Integrated USB Wall Socket Design
    1. 2.1 Thermal Considerations
    2. 2.2 Dynamic Port Power Balancing
    3. 2.3 GPIO Events
    4. 2.4 Control Logic Implementation with GPIO Events
    5. 2.5 GUI Configuration
    6. 2.6 Test Setup and Results
  4. 3References

GUI Configuration

  1. The first step is to create a new DFP only (Source only) project by loading the default template TPS65988DDH_advanced_v6_1_2.tpl.
    1. Open TPS6598x Configuration Tool and click the Project tab.
    2. Select TPS65988DDH→Advanced→Downstream Facing Port (DFP) only.
    GUID-20210508-CA0I-3LRC-MF4C-N8W8S7CJS4KB-low.jpg Figure 2-7 Load Template File
  2. As shown in Figure 2-6, the application requires two sets of power profiles per port: corresponding 30W and 60W PDOs. In this step, generate these configurations and map them to virtual addresses.
    1. Change Number of Configuration Sets in General Settings to four.
    2. Rename Configuration Set as shown below for convenience.
      1. Virtual Address 1 -> Port-0 30W
      2. Virtual Address 2 -> Port-0 60W
      3. Virtual Address 3 -> Port-1 30W
      4. Virtual Address 4 -> Port-1 60W
    3. Now, map Configuration sets to Virtual Address as shown in Figure 2-8.
    GUID-20210504-CA0I-CNG9-5JQG-ZBGB4HC6MTTF-low.jpg Figure 2-8 Generate Configuration Sets and Map to Virtual Address
    Note: Do not use address 0x00 and 0x04 as they are reserved for port configurations.
  3. The App configuration register (0x6C) holds the index pointing to the application configuration that needs to be loaded when the GPIO assert/ de-assert and also holds the command channel interface for executing the PD message task. In this step, modify Port-0 App Configuration Register to point to the application configuration index Virtual Address 1 on GPIO high transition (corresponding to application configuration Port-0 30W) and point to Virtual Address 2 on GPIO high transition (corresponding to application configuration Port-0 60W) and then execute SSrC task using CMD1 channel.
    1. Click the Port 1 Settings tab.
    2. Click the App Configuration Register.
    3. The index of configurations that need to be loaded on GPIO low/high transition are selected from the drop-down menu below Value tab.
    4. The default command channel CMD1 (0x08) can be used for executing PD message task.
    5. Select PD message task SSrC from the drop-down menu to transmit the Source Capability configured in the application configuration space indexed by Virtual Address 1 or Virtual Address 2. Enter !CMD in not Task field to indicate no action.
    GUID-20210508-CA0I-1LH5-FD6D-V3H1LGJJCJ8Z-low.jpg Figure 2-9 App Configuration Register Entry
  4. Similarly, make entry for Port-1 App Configuration Register by referring the pjt file attached.
  5. Now, configure Transmit Source Capabilities register (0x32) pointed by Virtual Address indexes. Virtual address 1 is the index corresponding to 30W PDO.
    1. Click Port-0 30W (0x1) and then click Adjust Registers.
    2. From the pop-up box, select Transmit Source Capabilities (0x32) Register.
    3. Click OK.
    4. Click Transmit Source Capabilities and make entry for 30W PDO as shown in Figure 2-11.
    GUID-20210504-CA0I-BQ1N-4FQR-MGXFC9LC8B1L-low.jpg Figure 2-10 Select Transmit Source Capabilities Register
    GUID-20210507-CA0I-J911-PKPZ-TTBZCSQGQMVF-low.jpg Figure 2-11 Configure Transmit Source Capabilities
  6. Similarly, make entries for remaining Virtual Addresses referring the pjt file attached with this application.
  7. Map App Config and GPIO events to respective GPIOs as shown in Figure 2-12.
    1. Select IO Config Register.
    2. Map events for each GPIO. Refer to project file for GPIO 2 and 3.
    GUID-20210504-CA0I-6HCS-K3XN-1PMN0XPSPRTR-low.jpg Figure 2-12 GPIO Mapping