SAMV71 Xplained Ultra Software Package 1.4

USB Audio Speaker Example

Purpose

The USB Audio Speaker Example will help you to get familiar with the USB Device Port(UDP) and SSC 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 Audio Device class.

Requirements

This package can be used with SAMV71 Xplained board that have both UDP and SSC.

Description

The demo simulates an USB Desktop Speaker.

When an Xplained board running this program connected to a host (PC for example), with USB cable, the Xplained board appears as a desktop speaker for the host. Then the host can play sound through host software. The audio stream from the host is then sent to the Xplained board, and eventually sent to audio DAC connected to the amplifier.

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
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application.
  4. In the terminal window, the following text should appear:
      -- USB Device Audio Speaker Example xxx --
      -- SAMxxxxx-xx
      -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. When connecting USB cable to windowss, the host reports a new USB device attachment (if it's the first time you connect an audio speaker demo board to your host). You can find new "USB Composite Device" and "USB Audio Device" appear in the hardware device list.
  6. You can play sound in host side through the USB Audio Device, and it can be heard from the earphone connected to the Xplained board.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines