How to support two (dual) USB ports?


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    I'm curious why complicate matters (that's IF a Pic exists that has dual USB)?

    Why not use a master PIC that supports the Wifi module, and have it send messages to two 18F4550 (or whatever USB Pic you prefer)?

    Robert

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    I think there is no PIC with 2 UBS, however you can use the serial port and a converter like FTDI, or any other.
    Thanks and Regards;
    Gadelhas

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    Curious if you can tell us a little more. Like others have said, either multiple USB PIC chips, or one PIC USB + something like this: http://www.maxim-ic.com/datasheet/index.mvp/id/3639
    http://www.scalerobotics.com

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    The USB channels option in the Microchip Advanced Part Selector, MAPS, only has the option of 1 USB channel per chip. Why don't you use two 18F4550 like Robert suggested above?
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  5. #5
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    Quote Originally Posted by rsocor01 View Post
    The USB channels option in the Microchip Advanced Part Selector, MAPS, only has the option of 1 USB channel per chip. Why don't you use two 18F4550 like Robert suggested above?
    Thanks for that...I didn't think of using MAPS to see if there was a PIC chip with dual USB. Since there isn't I guess my only choices are as follows:

    1) Two PIC 18F2550 chips that each manage a USB port, and one of them to also collect the data from the otherone and to send both data elements to the WiFi module for transmission to the internet.
    OR
    2) Two MAX3421E Chips for thetwo USB ports and a PIC chip to collect the data from both MAX3214 chips and to manage the iWiFi module transmissions.

    Have any of you actually created an app with one or the other of these approaches? Which approach do each of you think is the easiest to implement? I have a lot of experience with 18F2550 but no experience with MAX3421E so I tend to think I should go with 18F2550.
    Last edited by jellis00; - 17th January 2012 at 06:46.

  6. #6
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    HI;

    I made it with one 18F4550 using the USB module and one CP2102( UART<->USB converter).
    Thanks and Regards;
    Gadelhas

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Why would you need two USB ports?
    Are you connecting your device to two computers at the same time?

    If you are thinking of plugging USB devices into your project and relaying the information to the ethernet adapter ... you can't do it with the on-board USB peripheral.
    PIC chips don't do USB "Host" mode. At least not the PIC's that PBP can work with.

    I think your best bet is the VNC2 - Vinculum-II Programmable USB 2.0 Host
    DT

  8. #8
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: How to support two (dual) USB ports?

    Thanks for that, Gadelhas. I reviewed the CP2102. It looks like it is a it is a bridge between a USB host and UART microcontroller like a PIC 18F2550/4550, in a similar manner to the VFC chips recommended by Darrel Taylor and spcw1234 in their below postings. Do you concur?

    I guess a USB host bridge is the way I have to go to get two USB ports supported to meet my requirement. My decision on which chip to use (CP2102 or VNC) then boils down to which is the simpler to program and implement. Since the VNC chips can be provided with a pre-compiled firmware to support different USB interfaces, that is definitely a speedup on my development. However, if you already have code that implements the USB interface between an 18F4550 and CP2102 and are willing to share the code, that would be a rapid development process also.

    Are you willing to share your code? I don't need the pincount of an 18F4550, so would probably use 18F2550 as smalleer chips, but the code should be almost identical.

    Regards, John

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts