SAMV71 Xplained Ultra Software Package 1.4

USB CDC(Serial)+HID(Keyboard) Example

Purpose

The USB CDCHID Project will help you to get familiar with the USB Device Port(UDP)interface .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 Communication Device class (CDC), and how to combine two USB functions to a single composite device (such as CDC + HID).

Requirements

This package can be used with some of Atmel Xplained board that have UDP interface, depending on the functions included.

Windows Driver Update

The composite device is generally supported by Microsoft windows, but some patches are needed for muti-interface functions such as CDC & Audio.

Description

This demo simulates a USB composite device that has USB Serial RS232 Converter and USB HID Keyboard functions.

When the board running this program connected to a host (PC for example), with USB cable, host will notice the attachment of a USB device. No device driver offered for the device now.

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 CDC HID Device Project xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    
  2. When connecting USB cable to windows, the LED blinks, and the host reports a new USB device attachment.
  3. For the windows driver installation and the test functions, please refer to "USB CDC serial converter" & "USB HID Keyboard Project".
  4. You can use the inf file libraries\usb\device\composite\drv\CompositeCDCSerial.inf to install the CDC serial port.

Reference

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines