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.

Designing a USB "hub" for a PCB

Other Parts Discussed in Thread: TS3USB221

Hi,

   <please refer to graph>

   

 I'm designing a PCB with a micro-controller on it, the PCB board needs two Female USB ports for two devices, and a Male port which can plug into my Programming board to transfer the data between the two devices and the board. I don't think I need a real hub because I only want ONE of the two USB devices to be on at one time.

    I'm thinking of connecting both of the two USBs' 4 pins with the pins of output Male port. Using the micro-controller as a switch, I may control which USB gets to connect with the Male output at one particular time. Power supply for the two USB A and B come from the Male port, while the male port gets its energy from the programming board female port. 

    Umm, not sure if this will work. The main reason I don't want to add a USB hub directly on the programming board USB port is because I want to save energy. I don't need a hub to use the two USBs at the same time, and I don't need other functionalities other than just simply transfer data from the PCB to the programming board. Please give some directions and comments on if this will work or what other choices I have. Main goal is to save energy. 

Thank you.

Regards,

Qiao