This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS65987D: configure GPIO as input

Part Number: TPS65987D

Hello,

We want to configure few of the GPIO pins as inputs and read the values of these pins through I2C.

0x72 GPIO Status Register you can read the direction and value of the pin , but how does one set up the GPIO as an input without events?

When setting up "I/O Config" (0x5c) register , i only see "Output Enabled Without Event" , there is nothing for "Input Enabled Without Event" or similar.

How do i setup these pins so they are inputs and i can read them from 0x72 GPIO Status Register ?

Best regards,

Eriks Austrums

  • Hi Eriks,

    Unfortunately, there are many possible expected or unexpected side effects of changing PD Controller ’s GPIOs manually so we recommend being very cautious if you need to do this I don't believe you'll be able to just set it for an input without it being tied to an input event though. I would recommend using one of the input events from the list in the GPIO Events Application Note. Alternatively, if you have a Host in your system, you may also use the 4CC 'GPie' to manually set a specific GPIO as an input. You may refer to the Host Technical Reference Manual for more detailed information. 

    Thank you,

    Hari