H!
So, I have this part of a PCB design that was made earlier for one USB connector. USB mini to be exact. I was thinking it would have been nice to have both USB mini and USB micro in the same circuit, and make it seamless to use either or. As you can see in the attached file, I was first thinking that could kinda work, but I'm guessing if I connect to both at the same time things wouldn't work properly.
Looking around how to do this properly I found some USB switches ICs like the TS3USB30, but those don't seem to be smart enough to detect what USB was connected last. The idea is that if someone connects to both, the last one would be the one that works. Essentially disable the other one. And also, since having two connected probably wouldn't work either way, it would have been nice with a solution that can disable one of them in a smart way. The ICs I've found seems to recommend a microcontroller to control which USB to use, but I think it would be cooler if the circuit itself did this automatically in some smart way.
And thus, I thought I turn here, to this forum hoping that you here would have bright ideas how to do this properly. Since I haven't found a smart enough ICs for this so far, I'm thinking it might be possible to maybe use the VBUS or and something that could possibly set the pins properly on one of those USB switching ICs to enable and disable the USB automatically.
Actually, according to the truth table, I suppose one way to do this would be to put S and OE low having USB1 enabled by default. And then take power from USB2's VBUS (possibly through some regulator to get from 5V to 3.3V) and put that on S to drive that high, which then should enable USB2. Hopefully that will be quick enough for the IC to switch over so the USB communication works properly. Problem here though is that this would mean that as long as USB2 is connected, it wouldn't switch over to USB1 even if I would replug that one.
Thoughts? How would you do this?
Thanks!