SLVAE11A August   2018  – January 2021 TPS65987D , TPS65988

 

  1.   Trademarks
  2. 1Introduction
  3. 2TPS65987D GPIO Event List
  4. 3GPIO Events Register and Example Settings
    1. 3.1 GPIO Event Example Settings
    2. 3.2 Application Configuration GPIO Event Settings
  5. 4PD Controller Customization by GPIO Events
    1. 4.1 Barrel Jack Connect Event PD Flow
    2. 4.2 Barrel Jack Remove Event PD Flow
  6. 5Status Register and 4CC Commands
    1. 5.1 GPIO Status Monitoring
    2. 5.2 Using 4CC GPIO Commands
  7. 6Revision History

Application Configuration GPIO Event Settings

There are advanced GPIO events that can be used to load modified configurations to device at run-time. The example shows that TPS65987D transmit new source capabilities 5 V, 3 A when GPIO4 goes from high to low and 5 V, 3 A and 9 V minimum 20 V maximum, 3 A when GPIO4 goes from low to high. Here are the steps to set up I/O Configuration:

  1. Load a template. The new project template TPS65987DDH_advanced_v4_01.tpl can be loaded by clicking Project→TPS65987DDH→Advanced→Dual Role Port (DRP), prefers power source→None (DisplayPort Only).
  2. Change Number of Configuration Sets in General Settings to 2, and then change Virtual Device 1 to AC GPIO Low, and Virtual Device 2 to AC GPIO High as shown in Figure 3-3.
    GUID-0537F9A3-8614-45CA-A837-70DBE179F1E6-low.png Figure 3-3 Number of Configuration Sets
  3. Set App Configuration Group 1 in Common Settings.
    GUID-F22BD9D2-BA68-4C07-9F85-395C034F99B2-low.png Figure 3-4 App Config Group 1 Settings
  4. Adjust Registers in AC GPIO Low (0x1) to set the behavior when GPIO4 goes from high to low. External hardware event can trigger the PD controller to change configuration. In this example, GPIO4 high to low transition would configure Transmit Source Capabilities resister (0x32) with one PDO as shown in Figure 3-5 and Figure 3-6.
    GUID-34F0BD62-7B48-4710-BEC4-9469B692E614-low.png Figure 3-5 Adjust Registers in AC GPIO Low (0x1)
    GUID-FE5E03BE-B11B-405C-A652-126A10AA3C40-low.png Figure 3-6 App Config GPIO Set Event, GPIO Low Settings Example
  5. Adjust Registers in AC GPIO High (0x2) to set the behavior when GPIO4 transients from low to high. In this example, GPIO4 low to high transition would configure Transmit Source Capabilities register (0x32) with two PDOs as shown in Figure 3-7.
    GUID-B695C007-81EF-4D52-91AB-2B1F9AFD8FB5-low.png Figure 3-7 App Config GPIO Set Event, GPIO High Settings Example
  6. Map Load App Config Set 1 to GPIO4 as shown in Figure 3-8.
    GUID-7C7AE7A1-55F0-4F38-8E2B-59F623A4406A-low.png Figure 3-8 Map Load App Config Set 1 to GPIO 4