TPS25751: GPIO Availability

Part Number: TPS25751
Other Parts Discussed in Thread: TPS26750,

Tool/software:

Hi Team,

Had a query on the used GPIOs. Any of the GPIOs that are not mapped to an event, can they be repurposed as regular GPIOs (I/O signals).

For context, we might be running out of GPIOs on our MCU and would like to explore the option of using the GPIOs available on the TPS part we are using. 

  • Hi Nihir, 

    MCU can manually control TPS25751 GPIOs output to be high or low. In the GUI tool, set the GPIO event to "Output Enabled without Event" (double check and make sure the Output Enable bit is set) and using 4CC command GPsh (set GPIO high) and GPsl (set GPIO low) to set a specific GPIO to high/low. This will be added in a later revision of the TPS25751 technical reference manual, for now you can refer to the screenshot below from TPS26750 TRM:

    Let me know if there's any further questions or concerns! 

    Thanks and Regards,

    Raymond Lin

  • Thanks Raymond. This is helpful. Are these commands available in all modes or limited to APP?

    Conversely, can they be used as inputs (enabled without event) as well?

  • Hi Nihir, 

    These commands are only available once the PD controller is in APP mode, in PTCH the GPIOs are in a HIZ state. 

    Can you elaborate on how it should function as an input? 

    Thanks and Regards,

    Raymond Lin

  • Kind of like an interrupt. We would want to read it whenever the level changes

  • Hi Nihir, 

    We do not have a direct option similar to "Output Enabled without Event" for a GPIO to be a generic input pin, however the GPIO status can be read back through register 0x72 to know if a GPIO pin is high or low. I'll need to double check on my end if there are any special configuration that needs to be set for this to work. 

    Thanks and Regards,

    Raymond Lin