• AVR Freaks

Hot!Adding basic USB Host functionality

Author
acharnley
Super Member
  • Total Posts : 378
  • Reward points : 0
  • Joined: 2016/05/01 06:51:28
  • Location: 0
  • Status: offline
2019/10/13 10:02:09 (permalink)
0

Adding basic USB Host functionality

Hi,

I was intending to shift to PIC32MM (USB) for the host functionality. I need to read a devices DEV/PID ID to identify it, that's it. Thing is the PIC16/8 have the useful peripheral functionality I need, specifically CWGs. 

So before I go down the route of using PIC32MM for only the one thing, is there a USB host chip available (preferably one that works over UART, I2C, SPI) that'll do the same?

Cheers, Andrew 
#1

6 Replies Related Threads

    NorthGuy
    Super Member
    • Total Posts : 5754
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Adding basic USB Host functionality 2019/10/13 10:25:47 (permalink)
    0
    What kind of USB devices are you going to plug into your USB host?
    post edited by NorthGuy - 2019/10/13 10:27:35
    #2
    acharnley
    Super Member
    • Total Posts : 378
    • Reward points : 0
    • Joined: 2016/05/01 06:51:28
    • Location: 0
    • Status: offline
    Re: Adding basic USB Host functionality 2019/10/14 14:11:34 (permalink)
    0
    Everything and anything, but it's literally just to identify it. I've got this working with the PIC32 but so far can't find any chip that's simpler _and_ similarly priced.
    #3
    ric
    Super Member
    • Total Posts : 24282
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Adding basic USB Host functionality 2019/10/14 14:21:13 (permalink)
    0
    acharnley
    Everything and anything,

    That makes the job much harder, if you need to support every possible device.
    Have you looked at the MAXIM MAX3421E ?
    I'm still coming to grips with this chip myself, but it looks promising....
    PIC16F with MAX3421E or MAX3420E
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    NorthGuy
    Super Member
    • Total Posts : 5754
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Adding basic USB Host functionality 2019/10/14 16:26:41 (permalink)
    0
    acharnley
    Everything and anything, but it's literally just to identify it. I've got this working with the PIC32 but so far can't find any chip that's simpler _and_ similarly priced.



    PIC32MM is hard to beat price-wise. I don't think a PIC + an external chip can do this.
     
    You may be able to use CLCs to modify your PWM if you need to.
     
    #5
    ric
    Super Member
    • Total Posts : 24282
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Adding basic USB Host functionality 2019/10/14 17:29:07 (permalink)
    0
    Sorry to hijack the topic, but now you've got me interested in the PIC32MM as an alternative to the MAX3421E :)
    Is the "PIC32MM USB Curiosity" board (DM 320107) a reasonable way to experiment with it?
    I can't see any way to provide power OUT the VUSB pin of the micro USB socket, so I guess it would take some modification to act as a host, and naturally none of the provided demos show host capability.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    ric
    Super Member
    • Total Posts : 24282
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Adding basic USB Host functionality 2019/10/24 16:18:05 (permalink)
    +1 (1)
    I've ordered a DM320107 board, which should be here soon.
    I'm going to give MCC a first serious try to see how it goes generating some USB host code.
    It only appears to support CDC or HID devices, but if that works, it shouldn't be too difficult to add USBPRINT support for simple printers too.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5