Description
Graph
usb-device-hid-transfer-project
Purpose
The USB HID
Transfer Project will help you to get familiar with the USB Device Port(UDP) and PIO interface on AT91SAM microcontrollers. Also it can help you to be familiar with the USB Framework that is used for rapid development of USB-compliant class
drivers such as USB Humen Interface Device class (HID).
You can find following information depends on your needs:
- Sample usage of USB HID driver and PIO driver.
- USB HID driver development based on the AT91 USB Framework.
- USB enumerate sequence, the standard and class-specific descriptors and requests handling.
- The initialize sequence and usage of UDP interface.
See
- pio: PIO interface driver
- usb: USB Framework, USB HID driver and UDP interface driver
Requirements
This package can be used with all Atmel evaluation kits that has UDP interface.
The current supported board list:
- at91sam7s-ek (exclude at91sam7s32)
- at91sam7x-ek
- at91sam7xc-ek
- at91sam7a3-ek
- at91sam7se-ek
- at91sam9260-ek
- at91sam9263-ek
Description
When an EK running this program connected to a host (PC for example), with USB cable, the EK appears as a "USB Human Interface Device" for the host. Then you can use the client application to read/write on it.
Usage
- Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
- On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
- Start the application.
- In the terminal window, the following text should appear:
-- USB Device HID Transfer Project xxx --
-- AT91xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
|
- When connecting USB cable to windows, the LED blinks. Then new "HID Transfer Device" appears in the hardware device list.
- You can run hyperterminal to send data to the port. And it can be seen at the other hyperterminal connected to the USART port of the EK.
Source
The documentation for this Directory was generated from the following files:
main.c