• AVR Freaks

Multiple USB CDC Ports using PIC24F

Author
pshoey
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2009/04/23 08:46:19
  • Location: 0
  • Status: offline
2009/04/23 08:49:43 (permalink)
0

Multiple USB CDC Ports using PIC24F

Hi,

Can anyone give me a few pointers as to steps required to expose the PIC24F UARTS (all four) as USB CDC com ports?

Is it just a matter of adding additional USB endpoints, one pair (IN and OUT) for each UART?

Are there any code examples of this type of configuration?

Thanks

Peter
#1

5 Replies Related Threads

    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: Multiple USB CDC Ports using PIC24F 2009/04/24 02:38:09 (permalink)
    0
    This is not an easy task. You need to use IAD. And it may require the OS to be Windows XP SP3 and Vista SP1.
    Reference: http://www.microchip.com/forums/tm.aspx?m=189607

    By the way, if you want to ask USB related issues, it may get better attentions in the USB forum section here.
    http://www.microchip.com/forums/tt.aspx?forumid=102



      USB_Links and libusb
    #2
    pshoey
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2009/04/23 08:46:19
    • Location: 0
    • Status: offline
    RE: Multiple USB CDC Ports using PIC24F 2009/04/24 15:24:16 (permalink)
    0
    Thanks for the pointer. Followed the suggestions and it works great. SP3 / Vista is no problem for me.

    Peter
    #3
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: Multiple USB CDC Ports using PIC24F 2009/04/24 16:58:33 (permalink)
    0
    Glad to hear that. You are quite fast. So you have now 4 USB virtual com ports, right?

      USB_Links and libusb
    #4
    pshoey
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2009/04/23 08:46:19
    • Location: 0
    • Status: offline
    RE: Multiple USB CDC Ports using PIC24F 2009/04/25 09:21:56 (permalink)
    0
    Yes, 4 com ports and a hid interface for firmware updates and control.
    #5
    flamewatcher
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2011/05/12 10:27:38
    • Location: 0
    • Status: offline
    Re: RE: Multiple USB CDC Ports using PIC24F 2011/05/12 10:46:22 (permalink)
    0
    That is very similar to what I am trying to do.

    How did you do it?

    For the 4 Com ports did you have to set up 3 end points for each one 
    (one interrupt, another bulk tx and a third bulk rx)?

    How about the interface? did you use just one?
    and if so then did you set the number of endpoints to 4 or 8 ?

    Thanks
    Dave
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5