I'm designing a new board based on Kinetis K20 microcontroller. I'd like to have a board with two USB connector: a micro USB type-B receptacle for a PC connection and a USB type-A receptacle for pendrive.
I'm thinking about the following schematic:
The MCU is self-powered so the power supply from PC is used only for sensing its presence for two purposes: switch the USB stack in host-mode and disable the power supply to the pendrive (if any is connected).
The pendrive can be inserted directly in the USB type-A receptacle on the board, the PC can be connected with a normal micro USB cable.
What do you think? Will it work?