SAMV71 Xplained Ultra Software Package 1.5

USB Host CDC Example

Purpose

This example shows how to implement a USB host CDC on SAMV7/E7 Microcontrollers.

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board

Description

After loading the application, connect the board to a USB device CDC. The example is a bridge between a USART from the main microchip and the USB host CDC interface

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
    1. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
      • 115200 baud rate
      • 8 bits of data
      • No parity
      • 1 stop bit
      • No flow control
    2. Connect the CDC device such as another board with usb device cdc application to SAM V71 Xplained Ultra board or SAME70 Xplained board with the OTG wire.
    3. Start the application. In the terminal window, the following text should appear (values depend on the board and chip used):
            -- USB HOST CDC Example xxx --
            -- xxxxxx-xx
            -- Compiled: xxx xx xxxx xx:xx:xx --
      
    4. Human interface on SAM V71 Xplained Ultra board or SAME70 Xplained board.:
      • SAM V7/E7 USART used USART2 on J505 connector
      • Led 0 is continuously on when a device is connected
      • Led 0 blinks when USB host has checked and enabled CDC interface
      • The blink is slow (1s) with low speed device
      • The blink is normal (0.5s) with full speed device
      • The blink is fast (0.25s) with high speed device
      • Led 1 is on during data transfer between CDC and UART

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines