Juggling two USB devices with one USB host (MAX3421E)

Status
Not open for further replies.

eecsninja

Newbie level 2
Joined
May 24, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,297
Hi everyone, new member here.

I designed a circuit that has a USB port connected to a MAX3421E host, which has only one port. I'm wondering if I can multiplex two or more USB devices on one such host by tri-stating their power and ground rails using a microcontroller's GPIOs. I.e. only one USB device will have power and ground connected at a time.
 


Physically you can connect extra devices via tri-state power switches, but the problem will arise with the enumeration of a device after the power is applied to it.
Is the host “smart” enough to detect and enumerate your added devices (one at a time)?
:wink:
IanP
 

I think there might be some problems with this. I believe the USB host will query USB devices from time to time to check if they are working properly (I haven't double checked this)

I would suggest using a USB hub chip like this one https://www.ti.com/product/tusb2036
I used it a couple of years ago in a project and it was really simple to get working.

Cheers!
Oyvind
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…