CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC USB device supported by CCS

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
benoitstjean



Joined: 30 Oct 2007
Posts: 566
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PIC USB device supported by CCS
PostPosted: Fri Sep 11, 2020 8:04 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Sep 11, 2020 8:30 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Sep 11, 2020 8:34 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Sep 11, 2020 10:15 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Sep 11, 2020 11:03 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 14, 2020 12:20 pm     Reply with quote

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: 9251
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Sep 14, 2020 12:24 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group