AN1836-AN21161 Analog Devices, AN1836-AN21161 Datasheet - Page 60
![no-image](/images/manufacturer_photos/0/0/56/analog_devices_sml.jpg)
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
1.AN1836-AN21161.pdf
(70 pages)
- Current page: 60 of 70
- Download datasheet (2Mb)
#define RX_BUF1A_LEN
int rx_buf1a[RX_BUF1A_LEN];
void
{}
int
{
ADC_CONTROL2 | WRITE_REG | 0x380,
// read register commands
ADC0_PEAK_LEVEL | READ_REG | 0x000, // status will be in rx_buf1a[13-19] memory locations
ADC1_PEAK_LEVEL | READ_REG | 0x000,
ADC2_PEAK_LEVEL | READ_REG | 0x000,
ADC3_PEAK_LEVEL | READ_REG | 0x000,
ADC_CONTROL1
ADC_CONTROL2
ADC_CONTROL3
SPORT_RX_IRQ( int sig_int)
Setup_AD1836()
int i;
/* Powerdown reset of AD1836 */
*(int *) II3A = (int) powerdown_AD1836;
*(int *) IM3A = 1;
*(int *) C3A
*(int *) II1A = (int) powerdown_rx_buf0a;
*(int *) IM1A = 1;
*(int *) C1A
*(int *) SP13MCTL = 0;
*(int *) DIV3 = 0x0011002B;
*(int *) DIV1 = 0;
*(int *) SPCTL3 |= DDIR | SDEN_A | LAFS | LFS |
*(int *) SPCTL1 |= SDEN_A | LAFS | LFS | FSR | CKRE | SLEN16 | SPEN_A;
*(int *) SPCTL1 &= (~DDIR & ~IFS & ~ICLK);
interruptf(
interruptf( SIG_SP3I, SPORT_RX_IRQ);
while ( (*(int*) DMASTAT) & 0x8 )
interruptf(
interruptf( SIG_SP3I, SIG_IGN);
/* Now, stall for about 1 second */
for (i=0;i<3000;i++)
*(int *) SPCTL1 = 0;
*(int *) SPCTL3 = 0;
/* SPORT DMA Setup */
*(int *) II3A = (int) tx_buf3a;
*(int *) IM3A = 1;
*(int *) C3A
*(int *) II1A = (int) rx_buf1a;
*(int *) IM1A = 1;
*(int *) C1A = RX_BUF1A_LEN;
*(int *) SP13MCTL = 0;
*(int *) DIV3 = 0x0011002B;
*(int *) DIV1 = 0;
*(int *) SPCTL3 |= DDIR | SDEN_A | LAFS | LFS |
*(int *) SPCTL1 |= SDEN_A | LAFS | LFS | FSR | CKRE | SLEN16 | SPEN_A;
*(int *) SPCTL1 &= (~DDIR & ~IFS & ~ICLK);
interruptf( SIG_SP1I, SPORT_RX_IRQ);
interruptf( SIG_SP3I, SPORT_RX_IRQ);
asm("idle;");
asm("nop; nop; nop; nop; nop;");
= 4;
= 4;
= TX_BUF3A_LEN;
| READ_REG | 0x000,
| READ_REG | 0x000,
| READ_REG | 0x000 };
21
SIG_SP1I,
SIG_SP1I,
SPORT_RX_IRQ);
SIG_IGN);
IFS | FSR | CKRE | ICLK | SLEN16 | SPEN_A;
IFS | FSR | CKRE | ICLK | SLEN16 | SPEN_A;
Related parts for AN1836-AN21161
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN1836](/images/no-image3.png)
Part Number:
Description:
FLASH Programming for Motorola MC68HC912 Microcontrollers
Manufacturer:
Motorola / Freescale Semiconductor
Datasheet:
![REF195G](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Devices -
Manufacturer:
Analog Devices
Datasheet:
![AD539S](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Devices [Wideband Dual-Channel Linear Multiplier/Divider]
Manufacturer:
Analog Devices
Datasheet:
![AD9873](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Front End Converter for Set-top Box, Cable Modem, and Other Broadband Communication Applications
Manufacturer:
Analog Devices
Datasheet:
![AN342](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Analog Signal Handling for High Speed and Accuracy,
Manufacturer:
Analog Devices
![ADUC7126](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, Large Memory, ARM7TDMI MCU with Enhanced IRQ Handler
Manufacturer:
Analog Devices
Datasheet:
![ADUC7124](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, Large Memory, ARM7TDMI MCU with Enhanced IRQ Handler
Manufacturer:
Analog Devices
Datasheet:
![ADUC7122](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI® MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7023](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7029](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7121](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7028](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI® MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7019](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI® MCU
Manufacturer:
Analog Devices
Datasheet:
![ADUC7020](/images/manufacturer_photos/0/0/56/analog_devices_tmb.jpg)
Part Number:
Description:
Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI® MCU
Manufacturer:
Analog Devices
Datasheet: