UxDIL Software Collection
This folder contains example projects with complete sources, based on the templates. The following examples are available:
Serial:
Communication
Device Class (CDC)
A simple communication example between the
device and a terminal program.
RawHID:
Human Interface
Device (Raw HID)
A simple demonstration of data transfer to the
device and a response from the device. The example is using the
Atmel file “AtUsbHid.dll”.
UserDevice:
A user
defined USB device.
A tiny demonstration of control and bulk
transfers. The open source LibUSB-Win32 driver set is used
(the required inf/cat file pair is contained in the demo
package).
The examples are separated into a firmware part, which contains the modified template files, and a Windows part, which contains the files for a Borland C++ Builder 6 project. The Windows files should be easy to adopt to newer releases of C++Builder or other development tools (such as Microsoft Visual Studio). To learn more about this examples, you have to take a view looks to the source files.
Please note:
All examples are using an unofficial VID/PID pair! Use it only for your personal purposes! You can't use this pair for products, which are distributed!
The examples are only suitable for the 8 bit AVR controllers. You will find special folders with compiled files (hex and elf format) with the following names:
AT90USB162: U2DIL, assembled with AT90USB162
ATMEGA32U2: U2DIL, assembled with ATMEGA32U2
ATMEGA32U4: U4DIL, assembled with ATMEGA32U4
AT90USB1286: U6DIL, assembled with AT90USB1286
You can flash the firmware as is and connect the UxDIL module to the PC. You should use the circuitry, which is shown in the introduction example of your UxDIL module (refer to the documentation of your UxDIL module).
The firmware can be flashed with...
Atmel FLIP: Set HWB pin to low level, power the device and connect it with the PC via USB. Launch “FLIP”, chose the firmware file for the flash memory (hex file) and flash. After programming set HWB pin to high level and repower the device.
AVR Studio and supported programmer (e.g. AVRISP MKII): Launch AVR Studio and within the programming dialogue. Chose the correct device (microcontroller type) and firmware file.
After programming, the device should announce as the device, as programmed (check with “USB view”, which can be downloaded from UxDIL homepage). After driver installation you can launch the example software on the Windows PC and it will communicate with the device.