Other Parts Discussed in Thread: TPS65987
Hello,
the goal our project is to use a smartphone (the galaxy A50) to be plugged (always) to our electronic board . The A50 as different behavior depend if is not connected or connected to a charger or to a PC.
When is not connected is behave as a source and DFP ( host) and control the HUB
When is connected to the power supply is behave as a sink and it steal a DFP (host) control the HUB; the charge is 3A under 5V
When is connected to a PC is behave as a sink and a UFP ( the hub swap the port upstream to downstream)
Today I manage the connect and not connect from the power supply , using DRP mode and the barrel jack detect to clear the dead battery flag.
But I don't know how to manage the PC connect and not connect, how I configure the TPS65987 to charge the A50 but with the capability of the source of the PC. And also to change DFP to UFP mode?
Do I need to use the external path ? how I can switch automatically to this configuration ?
I attache a diagram of the project.
Thank you for your help.
best regardsPower Delivrery architecture.pdf