View previous topic :: View next topic |
Author |
Message |
benoitstjean
Joined: 30 Oct 2007 Posts: 566 Location: Ottawa, Ontario, Canada
|
PIC USB device supported by CCS |
Posted: Fri Sep 11, 2020 8:04 am |
|
|
CCS version: 5.026
Hi guys,
Its been a little while.
Won't go into many details but I need a PIC MCU - that is supported by my CCS version - that has a USB host controller on it so that I can program the MCU to act like if it was a PC so that I can tie a USB key to it (and do data transfer).
Worst case scenario, I will use a PIC24 and an external USB host chip. I'm going through the Microchip website but I have to familiarize myself with the USB terminology as I've never attempted what I am attempting to accomplish. I think this is what I need though - a PIC with USB host.
I've used the FTDI232RQ tie to a PIC's UART but this FTDI is seen by my PC as a virtual COM port... now, I want to do the opposite: I want the PIC USB to 'act' like it was the PC...
Any suggestions?
Thanks!
Ben
Ottawa, Canada |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19559
|
|
Posted: Fri Sep 11, 2020 8:30 am |
|
|
USB hosts on devices like the PIC, can't be 'generic'. You can do a host to
control a storage device, or one to support a keyboard/mouse etc.. Or
one to control a CDC device etc. etc..
Each needs a separate stack implementation.
CCS has not translated the MicroChip implementation of this, but these
can be compiled and used. However be prepared for them to be quite
nastily 'fussy' about the devices they will accept. The amount of error
checking and recovery in the PC stack, and just how many devices it
supports, is not something you are going to get from a PIC. |
|
|
benoitstjean
Joined: 30 Oct 2007 Posts: 566 Location: Ottawa, Ontario, Canada
|
|
Posted: Fri Sep 11, 2020 8:34 am |
|
|
hmmm... so then if I was to use a standalone USB IC that will be controlled by a PIC24EP, any suggestion?
Thanks again,
Ben |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1911
|
|
Posted: Fri Sep 11, 2020 10:15 am |
|
|
FTDI Vinculum. Single chip USB host which can be accessed via serial by a relatively low power PIC. |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Fri Sep 11, 2020 11:03 am |
|
|
newguy wrote: | FTDI Vinculum. Single chip USB host which can be accessed via serial by a relatively low power PIC. |
temtronic also liked these. I personally got one and got partway through writing something to read/write from the USB key but decided to go with an SD card instead.
Make sure you install the firmware version that is for USB keys and it provides a command-line-like interface that you can access via uart. |
|
|
benoitstjean
Joined: 30 Oct 2007 Posts: 566 Location: Ottawa, Ontario, Canada
|
|
Posted: Mon Sep 14, 2020 12:20 pm |
|
|
Hi guys,
Thanks all for your suggestions. I did a bit of searching after posting and also figured-out that the VNC2 from FTDI would probably suit me well.
Thanks and have a greatd day!
Ben |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9249 Location: Greensville,Ontario
|
|
Posted: Mon Sep 14, 2020 12:24 pm |
|
|
VNC2... pretty sure I have 2 of them and the 'programmer interface' module here, collecting dust. i KNOW I bought them from Digikey, sigh, years ago....
'magically', 'somehow' I got it to get a PIC to go between a PC and a USB flashdrive...
yeesh, that's seems like 'decades' ago.....
Jay |
|
|
|