AN1836-AN21161 Analog Devices, AN1836-AN21161 Datasheet - Page 44

no-image

AN1836-AN21161

Manufacturer Part Number
AN1836-AN21161
Description
Interfacing the ADSP-21161 SIMD SHARC DSP to the AD1836 (24-bit/96 kHz) Multichannel Codec
Manufacturer
Analog Devices
Datasheet
7. ADSP-21161 / AD1836 DSP Driver Description
The DSP source listings for AD1836 initialization and audio processing, shown in Appendix A, can be a general starting point
for developing ADSP-21161 code using the AD1836. The ADSP-21161 example program initializes the DSP serial port to
communicate with the AD1836 Serial Port interface, and then perform a 'talkthru' function of audio data to and from the
AD1836. No DSP processing is performed after initialization. The only operation being performed is the fetching of data
received from the AD1836 ADCs and loopback the same data out to the AD1836 DACs.
The ADSP-21161/AD1836 EZ-KIT Lite Drivers in Appendix A are organized into the following sections:
The ADSP-21161 DSP example performs the following sequence of operations to establish AD1836 communications and
process audio data:
1.
2.
3.
4. SPORT Register Clear Routine
5.
6.
7.
21161 EZ-Kit System Initialization Routine
AD1836 Initialization Routine (For SPORT0 Rx Interrupt Processing)
Reset The AD1836 Via DSP Slave SPI Control
ADSP-21161 SPORT1 RX Interrupt Service Routine… used for audio processing
ADSP-21161 Interrupt Vector Table
Visual DSP (21161 EZ-KIT) Linker Description File.
AD1836 Codec Driver Sequence Of Operations
1. Initialize DSP system stuff such as timers, flag pins, DAGs…
2. Initialize Serial Port 0 and 2 Registers
3. Program DMA Controller for Serial Port 0/2 DMA chaining
4. Turn on Serial Port 0/2 and enable SPORT0 receive interrupt
5. Reset/Power cycle the AD1836
7. Program selected AD1836 registers
8. Start processing AD1836 audio data
3 Interrupt (IRQ)
Buttons
4 Flag In Pushbuttons
6 Flag Out LED’s
(unpopulated)
CONNECTOR
CONNECTOR
CONNECTOR
EXPANSION
INTERFACE
EMULATOR
POWER
Figure 29. 21161 EZ-KIT Lite Audio Development System
USB
ADDRESS/DATA BUS
JTAG PORT
Cypress
micro)
(8051
USB
Analog/Digital Audio Interface
AD1852
DAC
ADSP- 21161
Pr ocessor
AD1836
Codec
SPORT 0 & 2 (TDM)
FLASH
4-Mbit
Receive
SP/DIF
(48-bit wide, 100MHz SDRAM Access)
SPORTs 1 and 3
LINK PORT 0
LINK PORT
SDRAM 1Mx16
SDRAM 1Mx16
SDRAM 1Mx16
4 Line In (or MIC_In channels)
8 output LINE Out RCA jacks)
SP/DIF (Optical or RCA)

Related parts for AN1836-AN21161