------------------------------------------------------------------------------- Example: C Block-based talkthrough Target: ADSP-21369 Hardware: ADSP-21369 EZ-KIT LITE ------------------------------------------------------------------------------- This project contains a talkthrough example using the onboard AD1835 to acquire and output an audio stream. The digital audio data is available for processing in the file SPORTisr.c. The block size is 1024 samples. The AD1835 is set up with a 48 Khz Sampling rate. The ADC is connected to SPORT 0A. DAC1 is connected to SPORT 1A, DAC2 to SPORT 1B, DAC3 to SPORT2A, and DAC4 (Headphone output) to SPORT2B. All channels of the codec are accessed in I2S mode. See initSRU.c for the details of which DAI pins are used to access the codec. ------------------------------------------------------------------------------- Instructions: Apply an input signal to P10 on the ADSP-21369 EZ-KIT LITE, and attach an output device to the selected channel of J5. Required Switch Settings: SW3 - 1=Off, 2=On, 3=On, 4=On (this is the default setting) ------------------------------------------------------------------------------- Source Files contained in this directory: Block Based Talkthrough.dpj VisualDSP project file init1835viaSPI.c ADSP-21369 source - SPI Subroutines initSRU.c Set up the SRU to connect to the AD1835 main.c Main section to call setup routines initSPORT.c Initialize the SPORT DMA to communicate with the AD1835 initPLL_SDRAM.c Configures the DSP to run at CCLK= 393.21 MHz & SDCLK= 157.28 MHz IRQprocess.c Set up and process IRQ0 and IRQ1 (Pushbutton) interrupts SPORTisr.c Process SPORT 0 interrupts blockProcess.c Process the audio data in the current block ad1835.h Macro Definitions for AD1835 registers tt.h Includes and external declarations used for all files ------------------------------------------------------------------------------- Dependencies contained in VisualDSP++ default include path: def21369.h Header file with generic definitions for ADSP-21369 SRU.h Header file with SRU definitions and Macros ******************************************************************************* Analog Devices, Inc. DSP Division One Technology Way Norwood, MA 02062 (c) 2005 Analog Devices, Inc. All rights reserved. *******************************************************************************
lin20121221/VisualDSP-Reverb
Jon Dattorro Plate Reverb implemented in Visual DSP for Analog Devices ADSP-21369 EZKit
C