SAMV71 Xplained Ultra Software Package 1.3

USB HID Keyboard Example

Purpose

The USB HID Keyboard 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).

Description

The demo simulates a simple keyboard with a caps lock and 'a' on it.

When an Xplained board running this program connected to a host (PC for example), with USB cable, the Xplained board appears as a HID Keyboard for the host. Then you can use the push buttons on the Xplained board to input letter to the host. E.g, to open a editor and input a letter 'a'.

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 Keyboard Project xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    
  2. When connecting USB cable to windows, the new "HID Keyboard Device" appears in the hardware device list.
  3. Once the device is connected and configured, pressing any of the board buttons should send characters to the host PC. Pressing num. lock should also make the third LED toggle its state (on/off).

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines