SAMV71 Xplained Ultra Software Package 1.4

USB DUAL CDC Serial Port Example

Purpose

The USB DUALCDC 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 Dual CDC port).

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 2 USB to RS-232 Serial Port Converter.

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 Dual CDC Device Project xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    
  2. When connecting USB cable to windows, the host reports a new USB device attachment.
  3. You can use the inf file libraries\usb\device\composite\drv\CompositeCDCSerial.inf to install the serial port. Then new "AT91 USB to Serial Converter (COMx)" appears in the hardware device list.
  4. You can run hyperterminal to send data to the port. And it can be seen at the other hyperterminal connected to the USART port of the board or another USB serial port.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines