SAMV71 Xplained Ultra Software Package 1.5

USB HID Transfer Example

Purpose

The USB HID Transfer Project will help you to get familiar with the USB Device Port(UDP) and PIO interface on SAMV7/E7 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 SAMV71 Xplained Ultra board or SAME70 Xplained board that have UDP interface, depending on the functions included.

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

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application.
  4. In the terminal window, the following text should appear:
          -- USB Device HID Transfer Project xxx --
          -- SAMxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. When connecting USB cable to windows, the LED blinks. Then new "HID Transfer Device" appears in the hardware device list.
  6. Then you can use the PC program !hidTest.exe to check the !device information and run tests.
  7. Find the HID Device whose VID is 03EB and PID is 6201, select item type and item to see its attributes.
  8. 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.
  9. 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

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines