Purpose
The USB HID Transfer Project will help you to get familiar with the USB Device Port(UDP) and PIO interface on SAMv7 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 Human Interface Device class (HID).
Requirements
This package can be used with all Atmel Xplained board that has UDP interface.
Description
The demo simulates a customized HID device that reports customized data stream, in which informations on LEDs and buttons are packed, to host.
When an Xplained running this program connected to a host (PC for example), with USB cable, the Xplained 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 SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
- 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 --
-- SAMxxxxx-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.
- Then you can use the PC program !hidTest.exe to check the !device information and run tests.
- Find the HID Device whose VID is 03EB and PID is 6201, select item type and item to see its attributes.
- Type what you want to send in output edit box, use buttons on the right side to send. You can see data information in debug terminal.
- You can use the buttons above the input edit box to read data from !device of monitor the data, then the data and the status of the buttons on the board is read and the gray buttons is up or down based on the buttons status on the board.
References