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

pic16f628 and virtual com port via usb

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



Joined: 12 Jan 2004
Posts: 2
Location: Tampere, Finland

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

pic16f628 and virtual com port via usb
PostPosted: Tue Jan 20, 2004 7:16 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Tue Jan 20, 2004 10:35 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 13, 2004 4:40 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 13, 2004 5:40 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 13, 2004 5:49 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Wed Oct 13, 2004 6:05 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 13, 2004 6:08 am     Reply with quote

Thanks Mark Razz
_________________
Alex
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 13, 2004 7:25 am     Reply with quote

[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

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

PostPosted: Wed Oct 13, 2004 9:11 am     Reply with quote

Also see my note in debugger forum
http://www.ccsinfo.com/forum/viewtopic.php?t=19920

it talks about the CCS ICD-U40 and FTDI chips. and the drivers, and how they SHOULD be opened.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Oct 13, 2004 10:34 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 13, 2004 10:38 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Wed Oct 13, 2004 11:59 am     Reply with quote

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.
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