SAMV71 Xplained Ultra Software Package 1.5

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/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.

Description

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

When a board running this program connected to a host (PC for example), with USB cable, the board appears as a HID Keyboard for the host. Then you can use the push buttons on the 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 board. Please refer to the Getting Started with SAM V71/E70 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