SAMV71 Xplained Ultra Software Package 1.4

USB HID Mouse Example

Purpose

The USB HID Mouse Example 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 and have push button or joystick on it.

Description

When an Xplained running this program connected to a host (PC for example), with USB cable, the Xplained appears as a HID-compliant mouse for the host. Then you can use the joystick or buttons on the Xplained to control the pointer on the host. * E.g., to move it.

Usage

  1. 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:

Start the application.

  1. In the terminal window, the following text should appear:
         -- USB Device HID Mouse Project xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    
  2. When connecting USB cable to windows, the new "HID Mouse Device" appears in the hardware device list.
  3. Once the device is connected and configured, pressing the joystick or the configured board buttons move the cursor.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines