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 Driver Writing

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



Joined: 12 Jul 2007
Posts: 43

View user's profile Send private message

USB Driver Writing
PostPosted: Fri Jun 04, 2010 9:25 am     Reply with quote

I have been going through the USB development kit examples and it seems that the only way to get the most out of a USB device would be to write a custom driver for it. I realize this is more of a software question, but is this something any of you had had much experience with? Are there any good examples out there of how to do this? The example book suggested just modifying existing drivers for starters...
jacqueskleynhans



Joined: 10 Apr 2008
Posts: 109
Location: Cape Town, South Africa

View user's profile Send private message

usb ??
PostPosted: Fri Jun 04, 2010 1:39 pm     Reply with quote

Are you trying to connect to the usb protocol or a usb device eg.. pen drives ??

There is a bridge available, check USB Host controller, Vinculums VDIP1.
_________________
"THE ONLY EASY DAY WAS YESTERDAY"
javick82



Joined: 12 Jul 2007
Posts: 43

View user's profile Send private message

PostPosted: Fri Jun 04, 2010 1:59 pm     Reply with quote

I could just use the USB to UART to emulate a COM port, but I want to know (if nothing else for my own benefit) what would be required in designing a hardware driver.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sat Jun 05, 2010 10:47 am     Reply with quote

I had been playing around with USB and I´m agree that it is not a trivial issue to get a final product.
Microchip released the MCP2200 wich is like the FTDI's but with some enhacement. It is an USB to
UART serial converter + 6 general purposes pins + 256 bytes of EEPROM, supports 12 Mb/s
USB speed, you can implement CDC device for communications, bus powered or self-powered,
USB 2.0 compliant and uses standard Windows® drivers for Virtual Com Port (VCP).

Humberto
javick82



Joined: 12 Jul 2007
Posts: 43

View user's profile Send private message

PostPosted: Mon Jun 07, 2010 10:45 am     Reply with quote

I think writing a whole device driver for my USB device may end up be a waste of time unfortunately (since I can do what I need to do using the existing CDC transfer).

Still, if anyone has a good source to learn how to write Windows drivers for USB devices I am all ears.
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Mon Jun 07, 2010 12:10 pm     Reply with quote

Microchip has a free driver mpusbapi.dll.
In this boards code library there are examples of its use.
Basically in your PC code VC or delphi or lazarus you make a one line call to the api and get a buffer full of info from and to the PIC.
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