View previous topic :: View next topic |
Author |
Message |
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
USB - PIC Organic or FTDI? |
Posted: Fri May 28, 2010 5:29 pm |
|
|
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
|
|
Posted: Fri May 28, 2010 11:45 pm |
|
|
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
|
|
Posted: Sat May 29, 2010 12:15 am |
|
|
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
|
|
Posted: Tue Jun 01, 2010 11:58 am |
|
|
What to do if you want to use the DTR, RTS, Ri ?.. |
|
|
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Tue Jun 01, 2010 3:12 pm |
|
|
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 |
|
|
|