0
\$\begingroup\$

I have a board with an MCU which has a USB controller + USB connector. I need 2 usb ports. How can I accomplish that with minimal or without any modifications to the board? Something like a simple USB hub for PCs, etc. Both of the USBs will be used for writing/reading to/from FLASH.

The board also has I2C, and two GPIOs. The MCU is an MKL25z128.

\$\endgroup\$
2
  • \$\begingroup\$ Hosting USB flash on this may not be a great idea, though since it's external anyway you can use an off the shelf hub. Or consider an SD card in place of one device, using dedicates SPI. \$\endgroup\$ Commented Jul 8, 2020 at 12:46
  • \$\begingroup\$ Can you provide more information about what you are trying to achieve? Will both USB ports act as USB device (as opposed to USB host)? Will they implement a mass storage device? Do they provide access to the same or to separate flash data? Etc. \$\endgroup\$
    – Codo
    Commented Jul 8, 2020 at 13:25

1 Answer 1

1
\$\begingroup\$

You need a USB hub chip to provide two physical USB ports.

\$\endgroup\$
1
  • \$\begingroup\$ There are also MCUs with more than one USB controller. Or you could use a second (possibly simpler) MCU. \$\endgroup\$
    – Codo
    Commented Jul 8, 2020 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.