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: How to configure I2C_IRQ or GPIO as ID signal for OTG

Part Number: TPS65987D
Other Parts Discussed in Thread: TPS65988

Hi all,

The project has a requirement that the TPS65987D should provide a signal to be used as a USB OTG ID to control the CPU's USB to be used as a Host or Device.

Now I have the idea that TPS65987D's I2C_IRQ or GPIO can be configured as a signal to be used as USB OTG ID?

If so, can you tell me how to configure it.

If not, is there any other way for the TPS65987D to provide an ID signal?

Best Regards!

Xavier

  • Hello Xavier,

    I request you to refer the Technical reference manual (Table 3-74).
    Please check if GPIO event 49 meet your requirement. 

    Thanks and regards,

    Rohit. 

  • Hi Rohit,

    Thank you for your answer, it fits my requirement.

    There's another question,GPIO event 49 and GPIO event 50 have the same description,what's the difference between this Port 1 and 2?

    Can GPIO event 49 and GPIO event 50 be configured for use in separate GPIOs at the same time?

    P.S.

    I tested and found that if I use Port1 with the trigger event for GPIO1 and Port2 for the trigger event for GPIO2,GPIO1 triggers normally, GPIO2 does not .

    So is it that Port 1 and 2 can't be used at the same time or something is wrong with my operation.

    Best Regards,

    Xavier.

  • Hi Xavier,

    If you are using TPS65987D, it has only one port i.e Port1. So please use GPIO event 49.
    GPIO event 50 is for port 2 which is available only in TPS65988. 

    Thanks,
    Rohit.