SAMV71 Xplained Ultra Software Package 1.4

USB Audio Loopback-Recorder Example

Purpose

The USB Audio Loopback-Recorder Example will help you to get familiar with the USB Device Port(UDP) and DACC on SAMv7 micro-controllers. 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.

Description

The demo simulates an USB Desktop Speaker with Microphone which actually does not "speak out" but loop back the sound as microphone input.

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. At the same time, the audio stream received is also sent back to host from Xplained board for recording.

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 LoopREC Example xxx --
      -- SAMxxxxx-xx
      -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. When connecting USB cable to windows, 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. When playing sound, you can also record through the USB Audio Device on the host.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines