
More endpoints, USB descriptors can be better customized.Faster: All encoding/decoding (USB requires NRZI coding and bit stuffing) is done in real-time, not in the main loop after storing away the raw data stream.Slightly smaller code size in spite of high level language modules.Modular concept: easier to integrate into existing designs.All customizable code written in ANSI-C and thus easier to maintain.Our USB driver has the following advantages over Igor’s driver: Little hardware resources used: only two to three I/O pins.Īdvantages over other Firmware-Only ImplementationsĪ similar driver for the AVR series of microcontrollers is available from Igor Češko.More freedom in the choice of USB descriptors.This may be relevant for battery powered devices. No additional power consumption when USB is disconnected.No additional hardware complexity: simpler PCB, less failures.They don’t work without connection to the host. Stand-alone operation: Some of the USB controllers download their firmware from the host computer into RAM.


Or combine the microcontroller of your choice with a USB chip? Advantages over Microcontrollers with USB Hardware Why not choose a microcontroller with built-in USB hardware? There are several of these available (see ).

High level functionality is written in C and is well commented.Can be clocked with 12 MHz, 15 MHz, 16 MHz 18 MHz or 20 MHz crystal or from a 12.8 MHz or 16.5 MHz internal RC oscillator.

No UART, timer, input capture unit or other special hardware is required (except one edge triggered interrupt).Runs on any AVR microcontroller with at least 2 kB of Flash memory, 128 bytes RAM and a clock rate of at least 12 MHz.Comes with freely usable USB identifiers (Vendor-ID and Product-ID pairs).Transfer sizes up to 254 bytes by default, more as configuration option.(Note that the USB specification forbids bulk endpoints for low speed devices, but V-USB supports them to some degree.) Supports multiple endpoints: one control endpoint, two interrupt/bulk-in endpoints and up to 7 interrupt/bulk-out endpoints.Example projects demonstrate device and host driver implementations on Linux, Mac OS X and Windows.Fully USB 1.1 compliant low-speed device, except handling of communication errors and electrical specifications.
