0
\$\begingroup\$

Working on new project, which requires- 1st port is for HOST function with Type A connector and 2nd is for Device function with Type B connector & not support USB host port and device port at the same time. how that can be design with PIC controller.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ You forgot to ask a question. While you think about fixing that, remember that shopping is off-topic. \$\endgroup\$ – brhans Mar 29 at 11:21
  • \$\begingroup\$ Please try making your question more clear and as @brhans mentions; shopping questions are off topic and thereby not allowed here on electronics stack exchange. \$\endgroup\$ – Jakob Halskov Mar 29 at 16:41
-1
\$\begingroup\$

You can achieve that with some PIC32 devices which have 2 USB ports.

The Microchip Harmony stack, however, is not properly tested/working (despite what advertized) when working with both ports at the same time in host/device configuration.

You may need to implement your own USB stack or use some that are available online.

In my case, I used Harmony stack for the USB Host side and a stack found online for the USB Device side.

The port type is only related to what USB connector you choose.

\$\endgroup\$
1
  • \$\begingroup\$ we will not connect at time. how to configure own USB stack?., can you tell schematically how it can be connected. \$\endgroup\$ – Guru Apr 1 at 9:19
-1
\$\begingroup\$

You may use NXP's LPC17XX or LPC18XX devices.

They are ARM based micro controllers.

There are many examples for both USB host and device modes. Some examples were written from Keil.

I used USB host and device of LPC2388 and LPC1778 and I got no problems at all.

I was able to read and write flash drives.

I was able to attach my board, as a hard drive, to my PC.

\$\endgroup\$
3
  • \$\begingroup\$ ., i am using the PIC32 controller., can not implement this in PIC32 controller? and if yes, let me know - how schematically prove or connection else why can not able to implement? \$\endgroup\$ – Guru Apr 1 at 9:26
  • \$\begingroup\$ Go to Microchip's site. I use NXP's microcontroller, sorry. \$\endgroup\$ – Enrico Migliore Apr 1 at 9:33
  • \$\begingroup\$ Thank you for your support \$\endgroup\$ – Guru Apr 2 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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