*****************************************************************************************


This ZIP File is associated with Rev 1 of the Application Note


    Title (EE-295: Implementing Delay Lines on SHARC Processors)  


that can be found at http://www.analog.com/ee-notes.


Date Created:	October 25th, 2006


*****************************************************************************************

Example 2 "Talkthru Analog In-Out" describes the Multichannel analog talk-through
(stereo in -> four stereo pairs out) with delay line based on EE-295.

TalkThrough reads audio samples from the stereo ADC of the AD1835 codec, and it
passes the unmodified data through to the four DACs.  Each interrupt reads a
single 24-bit sample (alternating left and right) using SPORT0 and immediately
writes the same value to both the A and B data channels of SPORT1 and SPORT2.
All audio is transmitted in I2S mode.  A 12.288 MHz clock is fed to the ADC as
MCLK, and the ADC generates the 64*48KHz bit clock and the 48 KHz frame sync. 
The delay line is implemented in external memory and accessed via the Parallel port

Instructions: Download the executable to the EZ-KIT.  There are no
visual outputs.  The four stereo output pairs are identical.

Source Files contained in this directory:
21262_IVT.asm          Interrupt vector table code
ADSP-21262-EZKIT.ldf   Linker description file
ad1835.h               Header with constants for controlling the audio codec
srunew2126.h           Header file for DAI connection using SRU macro.
main.asm               Calls initialization routines then waits for interrupts
init1835viaSPI.asm     Initializes the codec
initDAI.asm            Initializes the SRU & DAI pins
delayline_SPORT_init.asm  Initializes the transmit and receive serial ports
delayline_isr_talkthrough.asm  The interrupt service routine
delay_processing.asm           Processes the stereo delay effect with cross feedback using delaylines
Talkthru Analog In-Out.dpj    VisualDSP Project File

Dependencies contained in VisualDSP++ default include path:
def21262.h             Header with constants for the SHARC
SRU.h                  Macro to simplify programming the SRU & DAI pins


*****************************************************************************************


All code examples have been written and tested with

	VisualDSP++ 4.5 September Update

	ADSP-21262 revision 0.0

	ADSP-21262 EZ-KIT Lite revision 1.1


*****************************************************************************************



