An Audio System for the Blackfin

Similar documents
FUNCTIONAL BLOCK DIAGRAM DIGITAL AUDIO INPUT/OUTPUT AD1937 SERIAL DATA PORT DAC SDATA OUT CLOCKS SDATA IN

ALLO AUDIO CARDS TECHNICAL DETAILS

Evaluation Board For CS42406

Blackfin-Based Continuous Baseband Processing

FUNCTIONAL BLOCK DIAGRAM DIGITAL AUDIO INPUT/OUTPUT SERIAL DATA PORT DAC SDATA IN SDATA OUT CLOCKS. QUAD DEC FILTER 48kHz/ 96kHz/ 192kHz

4 ADC/8 DAC with PLL, 192 khz, 24-Bit Codec AD1938

AD Channel DAC with PLL and Single-Ended Outputs, 192 khz, 24 Bits. Data Sheet FEATURES GENERAL DESCRIPTION APPLICATIONS

Evaluation Board for CS4245

Audio Controller i. Audio Controller

Reference Design and Peripheral Driver Board for CS42L52. Description. Microcontroller. Interface Micro Reset Pushbutton.

Introduction to VisualAudio

OBSOLETE. Multichannel, 24-Bit, 192 khz, - DAC AD1833A

DESCRIPTION FEATURES MULTISTREAM PCI SOUND CARDS 26 DECEMBER 2007 ASI6514, ASI6518

CDB4244. Evaluation Board. Description. Features CS4244. Multiple Analog Input Filter Options Active Single Ended to Differential Passive Differential

Evaluation Board For CS42438

CDB8415A Evaluation Board Data Sheet for the CS8415A

AC108 Datasheet. 4 Channel High Performance Voice Capture ADCs with I2C/I2S. Revision 1.1. July, 30, 2017

ES8374. Low Power Mono Audio CODEC FEATURES APPLICATIONS ORDERING INFORMATION DAC. System

CK49x 4953xx/ 4970x4

Graduate Institute of Electronics Engineering, NTU FIR Filter Design, Implement, and Applicate on Audio Equalizing System ~System Architecture

Engineer-to-Engineer Note

The World Leader in High-Performance Signal Processing Solutions. February, 2008

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

HRTF 3D Positional / 16 Bit PnP Audio Solution CMI8330A/C3D. PnP Audio Chip

ADSP EZ-Board Evaluation System Manual

OBSOLETE. PLL/Multibit - DAC AD1958 REV. 0

ADSP EZ-Board Evaluation System Manual

Hardware User Manual CM-BF Maximum Power at Minimum Size

DA-250 DSP Stereo Array Microphone Module Specification

GWBMA0x Bluetooth Audio module

STAC9750/51 PRODUCT BRIEF. Value-Line Two-Channel AC 97 Codecs with Headphone Drive and SPDIF Output DESCRIPTION OVERVIEW FEATURES

ADSP EZ-Board TM Evaluation System Manual

Evaluation Board for CS5345

Comtrue Inc. CT7302 EVM D C LQFP 48 Evaluation board Application Note

SONiX TECHNOLOGY CO.,LTD.

VLSI Solution. VS10XX - Plugins. Plugins, Applications. Plugins. Description. Applications. Patches. In Development. Public Document.

ADSP EZ-Board Evaluation System Manual

SYNAPSE. High Channel Density Networked Audio Interfaces AES67. Common Features DM 1. D32 o. D32 i. Product Family Overview. Applications.

Ultra-Low Power Audio CODEC with Stereo Class D Drivers and Ground- Referenced Headphone Amplifier with Advanced Headset Detection

ADSP EZ-Board TM Evaluation System Manual

VP-8LVCT User s Manual First Edition. Copyright 2001, Eletech Enterprise Co. Ltd. All Rights Reserved.

Ultra-Low Power Audio CODEC for Headphone/Headsets Application With 124dB Class G Headphone Drive and Advanced Headset Features

OBSOLETE FUNCTIONAL BLOCK DIAGRAM CONTROL DATA VOLUME INPUT 3 MUTE SERIAL CONTROL INTERFACE 8 F S INTERPOLATOR MULTIBIT SIGMA- DELTA MODULATOR

Project Title: Design and Implementation of IPTV System Project Supervisor: Dr. Khaled Fouad Elsayed

LINEAR PCI AUDIO ADAPTER

Graduate Institute of Electronics Engineering, NTU 9/16/2004

Evaluation Board for the AD74111 Mono Codec EVAL-AD74111EB

CORRIGENDUM ISSUED FOR NATIONAL COMPETITIVE BIDDING UNDER TEQIP PHASE-II

Stereo, 24-Bit, 192 khz Multibit Σ DAC AD1852*

Module programming using the QV430P adapter and QV300s2 software

CDB5364. Evaluation Board for CS5364. Features. Description CS5364 A/D RS232 USB Micro. Control I²C or SPI S/PDIF. Output.

CW6611E Bluetooth Audio Player Microcontroller Product Spec

Symphony SoundBite Reference Manual

VS1003 to VS1053. VS1003 to VS1053 Migration Guide

OBSOLETE. High Definition Audio SoundMAX Codec AD1984A STEREO DIGITAL MICROPHONE INTERFACE FEATURES S/PDIF OUTPUT AUXILIARY PINS.

TABLE OF CONTENTS Features... 1 Revision History... 2 General Description... 3 Additional Information... 3 Jack Configuration... 3 AD1984A Specificati

Evaluation Board User Guide UG-087

CRD49530-USB. User s Manual CRD USB. Customer Reference Design. Preliminary Product Information

An Investigation of the Blackfin/uClinux Combination as a Candidate Software Radio Processor

Embedding Audio into your RX Application

VLSI AppNote: VSx053 Simple DSP Board

VS1011 to VS1053. VS1011 to VS1053 Migration Guide

2 Channel in 4 Channel out ADAU1701 Sigma DSP Pre-Amplifier with Bluetooth Plug-in Module

ADSP EZ-KIT Lite Evaluation System Manual

ADSP-21161N EZ-KIT LITE

ES1921 AC 97 Rev 2.1 Audio Codec Product Brief. ESS Technology, Inc. DESCRIPTION FEATURES

ADSP-BF533 EZ-KIT Lite Evaluation System Manual

Fujitsu System Applications Support. Fujitsu Microelectronics America, Inc. 02/02

PCI-AIO01. User s Manual

CRD48L10-4in4out. Board Manual. CS48L10 32-Bit Audio DSP Product NOV 2012 DS998DB1. Copyright Cirrus Logic, Inc (All Rights Reserved)

Transient Buffer Wideband (TBW) Preliminary Design Ver. 0.1

ADSP EZ-KIT Lite Evaluation System Manual

Lab 6 : Introduction to Simulink, Link for CCS & Real-Time Workshop

Interfacing the TLV320AIC1110 Codec With the TMS320C5402 DSP

96 khz Digital Audio Interface Transceiver

Applications Voice Annunciator Taking Clock Voice Alarm Machine Operations Failure Alarm Public Announcement System Automatic Broadcast Equipment s

Lab 1 Introduction to TI s TMS320C6713 DSK Digital Signal Processing Board

The World Leader in High Performance Signal Processing Solutions. DSP Processors

1 The Attractions of Soft Modems

NuForce DAC-80 User s Guide

ADSP EZ-KIT Lite Evaluation System Manual

S USB-PC Connection (Cable Included) S USB Powered (External Power Supply Not Required)

CDB5346. Evaluation Board for CS5346. Features. Description CS5346. Single-ended Analog Inputs. Single-ended Analog Outputs

February 2004 Digital Audio Products SLWS106H

OBSOLETE. High Definition Audio SoundMAX Codec AD1884A FEATURES. 192 khz DACs/ADCs AUXILIARY PINS S/PDIF OUTPUT

Optimal Porting of Embedded Software on DSPs

DSPAUDIOEVM Users Guide

AC/DC Adapter. Figure 1. Hardware Setup

DEV-1 HamStack Development Board

Figure 1. AD1882A Block Diagram

CDB47xxx Evaluation Kit. CDB47xxx. User s Manual. Copyright 2014 Cirrus Logic, Inc. FEB 2014 DS886DB11.

ADSP-21065L EZ-KIT Lite Evaluation System Manual

PJP-EC200 Setup Procedure Yamaha Corporation

Blue Point Engineering

Lab 1. OMAP5912 Starter Kit (OSK5912)

96 khz Digital Audio Interface Transceiver

OBSOLETE FUNCTIONAL BLOCK DIAGRAM CONTROL DATA INPUT 3 VOLUME MUTE SERIAL CONTROL INTERFACE 8 F S INTERPOLATOR MULTIBIT SIGMA- DELTA MODULATOR

CPCI-AD32. Intelligent DSP Based 32 Channel Analog Input Card for 3U CompactPCI systems REFERENCE MANUAL Version 1.

MeshConnect. Voice over

Additional Design Information on the AD and AD ADC Evaluation Boards

Transcription:

Chameleonic Radio Technical Memo No. 11 An Audio System for the Blackfin S.M. Shajedul Hasan and S.W. Ellingson September 28, 2006 Bradley Dept. of Electrical & Computer Engineering Virginia Polytechnic Institute & State University Blacksburg, VA 24061

An Audio System for the Blackfin S.M. Shajedul Hasan and S.W. Ellingson September 28, 2006 Contents 1 Introduction 2 2 AD1836A-DBRD Description 2 3 Interfacing to the STAMP board 4 4 AD1836A-DBRD Jumper Settings 4 5 Installing AD1836A Support in the µclinux Kernel 6 6 Testing the Audio 7 Bradley Dept. of Electrical & Computer Engineering, Virginia Polytechnic Institute & State University, Blacksburg VA 24061 USA. E-mail: hasan@vt.edu 1

1 Introduction In a previous technical memorandum [1], we reported on the suitability of the Analog Devices ADSP-BF537 Blackfin processor for software-defined radio. In that memorandum, we evaluated the processor using the Analog Devices ADDS-BF537- STAMP demonstration board. Although this board is generally useful in this role, it lacks an audio system. Recently, however, Analog Devices has made available the AD1836A-DBRD daughterboard, based on the Analog Devices AD1836A [2] codec, which provides extensive audio input and output capabilities to the BF537 demonstration board. In this report, we report on this audio board and how to interface it with the Blackfin under µclinux. Much of this information has been compiled from [3], and is presented here as proof of concept. Acknowledgement: We would like to give our thanks to Ms. Maggie Nakhla of Analog Devices, Inc. She is a project administrator for the Blackfin µclinux project. We are really grateful for her support and her donation of a AD1836A audio board to us. 2 AD1836A-DBRD Description Figure 1 shows a block diagram of the AD1836A. The AD1836A is a single-chip codec that provides three stereo DACs and four ADC channels configured as two independent stereo pairs. One stereo pair is the primary ADC and has fully differential inputs. The second pair can be programmed to operate in one of three possible input modes (programmed via SPI ADC Control Register 3). The ADC section may also operate at a sample rate of 96 khz with only the two primary channels active. The ADCs include an on-board digital decimation filter with 120 db stop-band attenuation and linear phase response, operating at an over-sampling ratio of 128 (for 4-channel 48 khz operation) or 64 (for 2-channel 96 khz operation). The complete AD1839A-DBRD daughterboard is shown in Figure 2. This board implements all audio input and output provided by the codec chip. The board connects to the BF537 demonstration board via the serial port interfaces SPORT0 or SPORT1. Provided by the daughterboard are 3 channels of stereo audio output (6 total), 2 channels of stereo input, S/PDIF in, and S/PDIF out. The Blackfin is able to transfer data to the audio daughterboard in time-division multiplexed (TDM) mode and can operate at a maximum sample rate of 48 khz. Other features of the audio board are as follows: Accepts 16-/18-/20-/24-bit data. Supports 24-bit and 96 khz sample rate. ADCs: 105 db SNR and dynamic range. 2

CCLK CDATA CLATCH COUT MCLK DLRCLK DBCLK DSDATA1 DSDATA2 DSDATA3 ALRCLK ABCLK ASDATA1 ASDATA2 SERIAL DATA I/O PORT CONTROL PORT CLOCK DAC DAC1L DAC1R ADC1L ADC1L 48kHz/96kHz 48kHz/96kHz DAC DAC2L DAC2R ADC1R CAPL1 ADC2L1 ADC2L2 CAPL2 CAPR1 ADC2R1 ADC2R2 CAPR2 MUX MUX ADC1R 48kHz/96kHz PGA PGA 48kHz/96kHz ADC2L 48kHz ADC2R 48kHz 48kHz 48kHz DAC V REF 2 4 3 2 DAC3L DAC3R FILTD FILTR PD/RST AVDD AGND DVDD DGND Figure 1: Block diagram of the AD1836A audio codec chip (From [2]). Figure 2: The AD1836A-DBRD audio daughterboard (From [3]). 3

Table 1: Default (proper) jumper settings for the AD1836A-DBRD. Jumper Reference Default Setting Clock Source J1 1-2 : Disable S/P-DIF ADC2 Left input Mode J9 3-5 & 4-6 : PGA Mode ADC2 Right input Mode J10 3-5 & 4-6 : PGA Mode MIC PreAmp Gain J11 1-3 & 2-4 : 40dB Gain Mic/Lin Selection J12 1-3 & 2-4 : Mic AD1836A SPI Chip Select J5 9-10 : PF4 S/P-DIF SPI Chip Select J4 7-8 : PF3 S/P-DIF Interrupt J7 none S/P-DIF Error Indicator J8 none DACs: 108 db SNR and dynamic range. On-chip volume control with auto-ramp function. Programmable gain amplifier for ADC input. Digital de-emphasis processing. Flexible serial data port with right justified, left justified, I 2 S compatible, and DSP serial port modes. The codec chip s internal configuration registers are configured via SPI from the Blackfin. The processors programmable flag pin is used as the select for this device. 3 Interfacing to the STAMP board Figure 3 shows how the audio daughterboard is interfaced with the serial port (SPORT) of the Blackfin processor. Figure 4 shows the pin assignments between the SPORT port and the codec. 4 AD1836A-DBRD Jumper Settings Proper setting of the jumpers on the AD1836A-DBRD daughterboard is critical to successful interfacing with the Blackfin processor under µclinux. For our purposes we use the default jumper settings, which are summarized in Table 1. 4

3 SPI DTPRI RSCLK TSCLK RFS DRPRI STAMP BOARD DAUGHTER CARD CONNECTOR TDM Interface ASDATA1 ALRCLK ABCLK DSDATA1 SPI MCLK AUXLRCLK AUXDATA1 AUXBCLK DAUXDATA DAC1 DAC2 DAC3 ADC1 ADC2 Stereo Line Out Stereo Line Out Stereo Line Out Stereo Line In Stereo Line In Stereo Mic In JUMPER AD1836A SHORT: 1/2 : DISABLE SPDIF 2/3 : ENABLE SPDIF 12.28 MHz 2 JUMPER AUX I 2 S Interface 1 3 OMCK RMCK OLRCK OSCLK SDOUT ILRCK ISCLK DSIN TX S/P-DIF OUT (COAX) SPI SPDIF RX/TX RX S/P-DIF IN (COAX) Figure 3: Interface between the Blackfin demonstration board and the AD1836A daughterboard (From [4]). 5

Figure 4: SPORT-to-AD1836A pin assignments (From [4]). 5 Installing AD1836A Support in the µclinux Kernel The sound driver also can be built into the kernel. The procedure to configure the kernel for audio support is as follows: Linux Kernel Configuration Sound ---> [M] Sound card support Advanced Linux Sound Architecture ---> [ ] OSS Sequencer API [M] OSS Mixer API [M] OSS PCM (digital audio) API ALSA Blackfin devices ---> [M] 1836 Audio support for BF53x Interface between Blackfin and ADI1836 (TDM interace) ---> 5.1 Channels or 3 seperate stereos (3 stereos) ---> (0) Blackfin Audio SPORT port (NEW) (4) Blackfin Audio SPI channel selection bit (NEW) Note that the SPORT port number should match the SPORT which you have plugged the Audio card into, and the SPI channel selection bit should match the jumper (J5) on the card. Also, note that the I 2 S interface is not supported on versions 0.9 and earlier of the AD1836A daughterboard. Enabling this will create modules outside the kernel, 6

which will be loaded automatically as needed. Finally, check the installation as follows: Check the boot messages to see if you have booted the correct kernel. During boot, the following should appear: Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC). dma_alloc_init: dma_page @ 0x03a79000-256 pages at 0x03f00000 ALSA device list: #0: Analog Devices AD1836A at SPI irq 17/47, SPORT0 rx/tx dma 3/4 err irq /45 Check to make sure that the audio device is compiled into your kernel. If the special directory /proc/asound/ad1836a/ is in the root filesystem, the audio driver has been included. root:~> ls -l /proc/asound/ad1836a/ -r--r--r-- 1 0 0 0 id -rw-r--r-- 1 0 0 0 oss_mixer dr-xr-xr-x 3 0 0 0 pcm0c dr-xr-xr-x 3 0 0 0 pcm0p -rw-r--r-- 1 0 0 0 registers -r--r--r-- 1 0 0 0 spi -r--r--r-- 1 0 0 0 sport -rw-r--r-- 1 0 0 0 talktrough 6 Testing the Audio There are several methods available to test whether the audio card is working properly. These are summarized below. Attempt to generate a test tone. root:~> tone TONE: generating sine wave at 1000 Hz... The tone should appear at the daughterboard s green jack. Set the audio mixer to microphone (the default is line in): root:~> mixer +rec mic Recording source: mic 7

Check to make sure MP3 files play properly. (This assumes you have built mp3play.) The first step is to download an MP3 file onto the platform. The wget command assumes that networking is properly configured and working; i.e., you have a valid IP, the default gateway is set, and DNS servers can be accessed. root:/var> mp3play ABCOWhosOnFirstclip.mp3 You should hear the MP3 file play in stereo using the green and black jacks. Record an audio file and play it back: root:~> mixer +rec mic Recording source: mic root:~> vrec -w -t 10 test.wav Recording VOC : Speed 8000 Hz Mono... root:~> vplay test.wav Playing Creative Labs Voice file... This should record 10 seconds of whatever is on the MIC, and then play it back over the output. Audio loopback: Hear on the speakers anything you say on the microphone. root:~> vrec -w vplay Note this loopback extends all the way to the Blackfin processor, and therefore is a good test that the complete system is working and properly integrated. References [1] S.M. Shajedul Hasan and S.W. Ellingson, An Investigation of the Blackfin/µClinux Combination as a Candidate Software Radio Processor, Technical Report No. 2, January 24, 2006. Available on-line: http://www.ece.vt.edu/swe/chamrad/. [2] Analog Devices, Inc., Multichannel 96 khz Codec AD1836A (data sheet), Rev. 0, 2003. [3] AD1836A Audio Codec Card, http://docs.blackfin.uclinux.org/doku.php? id=audio cards, July 19, 2006. [4] STAMP Daughter Card AD1836A v.0.82 (schematics), http://blackfin.uclinux.org/frs/download.php/165/1836a Schematics v0-82.pdf, September 24, 2006. 8