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 support@ccsinfo.com

USB - PIC Organic or FTDI?

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



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

USB - PIC Organic or FTDI?
PostPosted: Fri May 28, 2010 5:29 pm     Reply with quote

I need a USB vitual serial port and have had good results with the FTDI parts. I was wondering how difficult it is to use a PIC USB part and implement the same without the FTDI part?

Any words of wisdom?

Thanks,

John
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

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

PostPosted: Fri May 28, 2010 11:45 pm     Reply with quote

Quote:
how difficult it is to use a PIC USB part
Pretty easy if you've got a PIC18F2550 or 18F4550.

Do you want to use the PIC as a USB-to-serial converter? That would mean editing ex_usb_serial.c in the examples folder. Basically, the examples provided by CCS allow you to implement the USB-to-serial converter on the microcontroller itself.

You could still make a simple USB-to-UART device by modifying the example mentioned. But if you require a standalone virtual serial port with all the handshaking lines, I would recommend going with the FTDI chip - writing code for such a device may be too much of a hassle.

Rohit
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat May 29, 2010 12:15 am     Reply with quote

The benefit of PIC implementation of virtual com port is for applications, that need functionality beyond a simple serial interface.
If I understand right, this also the case in your application. In my opinion it's pretty easy, I don't see a need for an additional
FTDI chip for similar designs.
Eddy71ua



Joined: 23 Sep 2009
Posts: 55
Location: Ukraine

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

PostPosted: Tue Jun 01, 2010 11:58 am     Reply with quote

What to do if you want to use the DTR, RTS, Ri ?..
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Tue Jun 01, 2010 3:12 pm     Reply with quote

No. Just need Tx and Rx.

I was just reading about the serial stuff for USB in the latest compiler manual.

Looks like this may be the ticket.

Thanks,

John
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