Home › Magazines › 2002 › November › USB Driver Programming (2)

USB Driver Programming (2)

writing your own device driver

Published in issue 315, November 2002

USB Driver Programming (2)
In the previous issue of Elektor Electronics, we described how device drivers are used. Now it’s time to modify a Cypress device driver. You only need a couple of programs for this, even if you have never worked with Microsoft Visual Studios. All of the necessary steps are described in minute detail.In the Windows Device Manager, you will see all currently connected USB devices listed under ‘USB Controller’. Figure 1 shows the entries for a USB device using the Cypress IC with no EEPROM and a USB data spy for Bin-Term.Writing your own complete driver ‘from the ground up’ is almost impossible for normal mortals. Fortunately, Cypress provides the EZUSB driver not only as an installable version, but also in the form of source code.

Extra info, Updates

In some cases, the chip will not respond and all ports will remain low. Although Windows has detected that a new USB device has been connected, this will be not recognized. The problem is solved by fitting pull-up resistors R3 and R2 as indicated in Figure 1. These resistors should not be omitted.

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (e02b030.pdf)
10 Elektor Credits
Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

Sponsored

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.