View previous topic :: View next topic |
Author |
Message |
wece
Joined: 12 Jan 2004 Posts: 2 Location: Tampere, Finland
|
pic16f628 and virtual com port via usb |
Posted: Tue Jan 20, 2004 7:16 am |
|
|
hi,
how hard it is to do virtual com port to pc (winxp/win2k) via usb and pic?
meaning that I would like to connect pic with usb to pc and other side of pic rs232 connection so that I could do transparent usb-rs232 adapter.
I know that there are similar ic's to do the jod but I would like to do this with pic so how hard it is and is it even possible? _________________ Electricity is blue and it hurts... |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Tue Jan 20, 2004 10:35 am |
|
|
Well that depends on your skills. If you are not familar with writing drivers for Windows, then you are going to have a rough time. Take a look at FDTI. They have a USB chip that you can connect to a pic to do what you want. They supply the Windows drivers. |
|
|
alexz
Joined: 17 Sep 2004 Posts: 133 Location: UK
|
|
Posted: Wed Oct 13, 2004 4:40 am |
|
|
But will you be able to use your own product/company descriptor in this case?
Or it will be the FTDI's one there? _________________ Alex |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Oct 13, 2004 5:40 am |
|
|
If you just want transparent USB to RS232 then you do not even need a PIC. The FDTI232 chip, with the supplied drivers, appears to the PC as a serial port including full handshaking. I use the FDTI chips because of their ease of use.
Having said that, I also have a Bitscope (DSO) that has a USB adapter that uses the chip. I recently updated my development system with XP SP2 - when I did this, my Bitscope DSO application, which had been working well for months, stopped working because windows XP suddenly decided it was now a Microsoft Ball Mouse - totally destroyed my desktop in seconds. It was a real pain tryig to disable the Microsoft Ball Mouse driver to recover my DSO. With so many companies incorporating the FDTI chips into their products this problem will get worse. |
|
|
alexz
Joined: 17 Sep 2004 Posts: 133 Location: UK
|
|
Posted: Wed Oct 13, 2004 5:49 am |
|
|
So as I can see it is not such a perfect idea to use the FTDI chips, is it? _________________ Alex |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Oct 13, 2004 6:05 am |
|
|
If you install the drivers correctly, then it is not a problem.
And yes, yes, yes you can enter your own descriptor provided that you incorporate the serial eeprom in your design. |
|
|
alexz
Joined: 17 Sep 2004 Posts: 133 Location: UK
|
|
Posted: Wed Oct 13, 2004 6:08 am |
|
|
Thanks Mark _________________ Alex |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Oct 13, 2004 7:25 am |
|
|
[quote="Mark"]If you install the drivers correctly, then it is not a problem.
[\quote]
I disagree. It is easy to get your initial implementation working with the correct drivers but you are at the mercy of subsequent device installations or, as I discovered, during automatic software updates, the working implementation can be broken. |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Oct 13, 2004 10:34 am |
|
|
Quote: |
I disagree. It is easy to get your initial implementation working with the correct drivers but you are at the mercy of subsequent device installations or, as I discovered, during automatic software updates, the working implementation can be broken. |
Did ya have the stuff plugged in when you upgraded? If so, then that's a big no no! If you can install the ICD2 drivers then you ought to be able to get the FTDI to work as well. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Oct 13, 2004 10:38 am |
|
|
I don't know if that's a good example. Installing the ICD2 drivers
on Win98 and Win2K systems here at the company was a total pain.
It was immensely more difficult than for any other commerical device. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Oct 13, 2004 11:59 am |
|
|
My point was that if you read the instructions and install them before plugging in the device and allowing Windows to "pick" a driver, then you shouldn't have any problems. |
|
|
|