SLVUCP8 September 2024 TPS26750
The USBCPD Application Customization Tool allows the user to configure the number of samples, timing, and hysteresis voltage range of liquid detection to fit with the system requirements. Increasing the number of samples and timing can result in more accurate readings, but can take longer for the detection cycle to be completed. Conversely, decreasing the number of samples and timing can allow the PD to be able to detect liquid faster but can produce higher levels of false detections. This section goes through every Liquid Detection related register and field on the TPS26750, example configurations with scope captures, and recommendations for optimizations to accuracy, power consumption, and systems with an external microcontroller. For more details on register mapping, refer to the TPS26750 Technical Reference Manual.
The interrupt event, interrupt mask, and interrupt clear register is intended for systems with an external microcontroller acting as the I2C controller to the TPS26750 acting as the I2C target. The interrupt mask is initialized and configured through the USBCPD Application Customization Tool. The Liquid Detection interrupt event [60] asserts when the PD controller detects an unknown short through the GPIO/SBU measurement pin. If this event is asserted, then the voltage reading on the GPIO or SBU line has cleared the Dry threshold and the PD assumes liquid is present on the USB Type-C connector. When an I2C interrupt event is asserted, the microcontroller reads the Interrupt Event (0x14) register to determine which events have triggered. After the microcontroller has read the events and performed any necessary actions, the microcontroller can clear the interrupt event by writing a ‘1’ to the asserted event in the Interrupt Clear (0x18) register. TI highly recommends to have the interrupt masking set through the USBCPD Application Customization Tool and included in the GUI generated configuration file (either binary or C array). The masking can be modified on the fly when PD is in operation, but this is not recommended.
The GPIO Config register allows the user to configure the GPIO pins of the TPS26750. In total, there are four required GPIOs for the liquid detection function to work properly and one optional GPIO event to indicate if liquid is detected (similar to the interrupt event). GPIO Config needs to be configured through the USBCPD Application Customization Tool and included in the GUI generated configuration file (either binary or C array), GPIOs cannot be modified on the fly when the PD is already in operation (after the configuration is loaded at boot). These GPIOs are configured automatically when selecting Yes to Question 8 in the Questionnaire, however further detail is provided below for assistance with debugging and design.
GPIO4 and GPIO5 are tied to the SBU pins of the USB Type-C connector (with the TPD4S480 in between the aforementioned GPIO pins and the SBU pins of the Type-C connector). These GPIOs are multiplexed to the ADC functionality to measure the voltage on the SBU measurement pins. Both GPIO4 and GPIO5 must have the Multiplexing for GPIO 4/5 Pin [1:0] field set for Pin Multiplexed to ADC (0x1) and the GPIO 4/5 Analog Input Control [228/9] needs to be set to Pin to ADC (0x1). GPIO4 and GPIO5 are not configurable for custom designs. For the liquid detection feature to function, these are required to be set as the ADC pins connected to the SBU pins on the USB Type-C connector.
GPIO6 and GPIO7 are tied to the gate pins of the PMOS and NMOS FETs, respectively. GPIO6 (connected to the PMOS gate) needs to set the GPIO Mapped Event [343:336] as LIQUID_PMOS_CONTROL (155) and GPIO7 (connected to the NMOS gate) needs to set the GPIO Mapped Event [351:344] as LIQUID_NMOS_CONTROL (156).
An optional GPIO event LIQUID_DETECTED (157) can be tied to any available GPIO pins. If configured, then the specific GPIO outputs high when the PD enters a Liquid Detected state and goes low when the PD exits the Liquid Detected state (similar to the interrupt event Liquid Detection). The TPS26750EVM sets GPIO1 by default to the LIQUID_DETECTED (157) event when selecting Yes to Question 8 in the Questionnaire.