i have a board with a PIC32MX450F256L. Now i want to:
- Connect an USB Stick(as Device) to the PICs(as Host) USB Port(micro-B)
- Connect a Laptop(as Host) to the PICs(as Device) USB Port(micro-B)
- Recognize as which Role the PIC have to work.
I just have the one USB micro-B Port. USB Sticks will get connected via a Adapter from USB Typ A(female) to micro-B(male). The Laptop via a normal Cable from USB Typ A(male) to micro-B(male)
Is this possible? Do i have to use USB OTG? Or just a Dual Role? Which is the best practise?
with kind regards