5 V stereo audio system with 3.3 V tolerant digital interface
Supports up to 96 kHz sample rates
192 kHz sample rate available on 1 DAC
Supports 16-/20-/24-bit word lengths
Multibit Σ-∆ modulators with perfect differential linearity
restoration for reduced idle tones and noise floor
Data-directed scrambling DACs—least sensitive to jitter
Single-ended output
ADCs: −95 dB THD + N, 105 dB SNR and dynamic range
DACs: −92 dB THD + N, 108 dB SNR and dynamic range
On-chip volume controls per channel with 1024-step linear
scale
DAC and ADC software controllable clickless mutes
Digital de-emphasis processing
Supports 256 × f
Power-down mode and soft power-down mode
Flexible serial data port with right-justified, left-justified,
2
S compatible, and DSP serial modes
I
TDM interface mode supports 8-in/8-out operation using a
single SHARC® SPORT
52-lead MQFP plastic package
APPLICATIONS
DVD video and audio players
Home theater systems
Automotive audio systems
Audio/visual receivers
Digital audio effects process
, 512 × fS, and 768 × fS master mode clocks
S
FUNCTIONAL BLOCK DIAGRAM
ODVDDDVDDAVDDAVDDDVDD
ASDATAABCLKALRCLK
96 kHz, 24-Bit Sigma-Delta Codec
AD1839A
GENERAL DESCRIPTION
The AD1839A is a high performance single-chip codec that
features three stereo DACs and one stereo ADC. Each DAC
comprises a high performance digital interpolation filter, a
multibit Σ-∆ modulator featuring Analog Devices’ patented
technology, and a continuous-time voltage-out analog section.
Each DAC has independent volume control and clickless mute
functions. The ADC comprises two 24-bit conversion channels
with multibit Σ-∆ modulators and decimation filters.
The AD1839A also contains an on-chip reference with a
nominal value of 2.25 V.
The AD1839A contains a flexible serial interface that allows
glueless connection to a variety of DSP chips, AES/EBU
receivers, and sample rate converters. The AD1839A can be
configured in left-justified, right-justified, I
ble serial modes. Control of the AD1839A is achieved by means
of an SPI® compatible serial port. While the AD1839A can be
operated from a single 5 V supply, it also features a separate
supply pin for its digital interface that allows the device to be
interfaced to other devices using 3.3 V power supplies. The
AD1839A is available in a 52-lead MQFP package and is
specified for the −40°C to +85°C industrial temperature range.
M/S
CINCLATCHCCLKCOUT
MCLK
PD/RST
2
S, or DSP compati-
AAUXDATA3
DLRCLK
DBCLK
DSDATA1
DSDATA2
DSDATA3
DAUXDATA
ADCLP
ADCLN
ADCRP
ADCRN
Σ-∆
ADC
Σ-∆
ADC
SERIAL DATA
I/O PORT
DIGITAL
FILTER
DIGITAL
FILTER
AGNDDGND
Rev. B
Information furnished by Analog Devices is believed to be accurate and reliable.
However, no responsibility is assumed by Analog Devices for its use, nor for any
infringements of patents or other rights of third parties that may result from its use.
Specifications subject to change without notice. No license is granted by implication
or otherwise under any patent or patent rights of Analog Devices. Trademarks and
registered trademarks are the property of their respective owners.
Supply Voltages 5.0 V (AVDD, DVDD)
Ambient Temperature 25°C
Input Clock 12.288 MHz (256 × f
DAC Input Signal 1.0078125 kHz, 0 dBFS
ADC Input Signal 1.0078125 kHz, −1 dBFS
Input Sample Rate (f
) 48 kHz
S
Measurement Bandwidth 0 Hz to 20 kHz
Word Width 24 bits
Load Capacitance 100 pF
Load Impedance 47 kΩ
Performance of all channels is identical (except for the Interchannel Gain Mismatch and Interchannel Phase Deviation specifications).
Table 1.
Parameter Min Typ Max Unit
ANALOG-TO-DIGITAL CONVERTERS
ADC Resolution 24 Bits
Dynamic Range (20 Hz to 20 kHz, –60 dB Input)
No Filter 103 dB
A-Weighted (48 kHz and 96 kHz) 100 105 dB
Total Harmonic Distortion + Noise (THD + N)
48 kHz –95 –88.5 dB
96 kHz –95 –87.5 dB
Interchannel Isolation 100 dB
Interchannel Gain Mismatch 0.025 dB
Analog Inputs
Differential Input Range (±Full Scale) –2.828 +2.828 V
Common-Mode Input Voltage 2.25 V
Input Impedance 4 kΩ
Input Capacitance 15 pF
V
REF
DC Accuracy
Gain Error ±5 %
Gain Drift 35 ppm/°C
DIGITAL-TO-ANALOG CONVERTERS
DAC Resolution 24 Bits
Dynamic Range (20 Hz to 20 kHz, –60 dBFS Input)
No Filter 103 105 dB
A-Weighted Filter (48 kHz and 96 kHz) 105 108 dB
Total Harmonic Distortion + Noise (48 kHz and 96 kHz) –92 –90 dB
Interchannel Isolation 110 dB
DC Accuracy
Gain Error ±4 %
Interchannel Gain Mismatch 0.025 dB
Gain Drift 200 ppm/°C
Interchannel Phase Deviation ±0.1 Degrees
Volume Control Step Size (1023 Linear Steps) 0.098 %
Volume Control Range (Maximum Attenuation) 60 dB
Mute Attenuation –100 dB
De-emphasis Gain Error ±0.1 dB
Full-Scale Output Voltage at Each Pin (Single-Ended) 1.0 (2.8) V rms (V p-p)
Output Resistance at Each Pin 180 Ω
Common-Mode Output Voltage 2.25 V
mode)
S
2.25 V
Rev. B | Page 3 of 24
AD1839A
Parameter Min Typ Max Unit
ADC DECIMATION FILTER, 48 kHz
Pass Band 21.77 kHz
Pass-Band Ripple ±0.01 dB
Stop Band 26.23 kHz
Stop-Band Attenuation 120 dB
Group Delay 910 µs
ADC DECIMATION FILTER, 96 kHz1
Pass Band 43.54 kHz
Pass-Band Ripple ±0.01 dB
Stop Band 52.46 kHz
Stop-Band Attenuation 120 dB
Group Delay 460 µs
DAC INTERPOLATION FILTER, 48 kHz1
Pass Band 21.77 kHz
Pass-Band Ripple ±0.01 dB
Stop Band 28 kHz
Stop-Band Attenuation 55 dB
Group Delay 340 µs
DAC INTERPOLATION FILTER, 96 kHz1
Pass Band 43.54 kHz
Pass-Band Ripple ±0.01 dB
Stop Band 52 kHz
Stop-Band Attenuation 55 dB
Group Delay 160 µs
DAC INTERPOLATION FILTER, 192 kHz1
Pass Band 81.2 kHz
Pass-Band Ripple ±0.06 dB
Stop Band 97 kHz
Stop-Band Attenuation 80 dB
Group Delay 110 µs
DIGITAL I/O
Input Voltage High 2.4 V
Input Voltage Low 0.8 V
Output Voltage High ODVDD – 0.4 V
Output Voltage Low 0.4 V
Leakage Current ±10 µA
POWER SUPPLIES
Supply Voltage (AVDD and DVDD) 4.5 5.0 5.5 V
Supply Voltage (ODVDD) 3.0 DVDD V
Supply Current I
Supply Current I
Supply Current I
Supply Current I
ANALOG
, Power-Down 55 67 mA
ANALOG
DIGITAL
, Power-Down 1 4.5 mA
DIGITAL
Dissipation
Operation, Both Supplies 740 mW
Operation, Analog Supply 420 mW
Operation, Digital Supply 320 mW
Power-Down, Both Supplies 280 mW
Power Supply Rejection Ratio
1 kHz, 300 mV p-p Signal at Analog Supply Pins –70 dB
20 kHz, 300 mV p-p Signal at Analog Supply Pins –75 dB
1
Guaranteed by design.
1
84 95 mA
64 74 mA
Rev. B | Page 4 of 24
AD1839A
TIMING SPECIFICATIONS
Table 2.
Parameter Min Max Unit Comments
MASTER CLOCK AND RESET
tMH MCLK High 15 ns
tML MCLK Low 15 ns
t
PDR
PD/RST Low
SPI PORT
t
CCLK High 40 ns
CCH
t
CCLK Low 40 ns
CCL
t
CCLK Period 80 ns
CCP
t
CDATA Setup 10 ns To CCLK rising edge
CDS
t
CDATA Hold 10 ns From CCLK rising edge
CDH
t
CLATCH Setup 10 ns To CCLK rising edge
CLS
t
CLATCH Hold 10 ns From CCLK rising edge
CLH
t
COUT Enable 15 ns From CLATCH falling edge
COE
t
COUT Delay 20 ns From CCLK falling edge
COD
t
COUT Three-State 25 ns From CLATCH rising edge
COTS
DAC SERIAL PORT (48 kHz and 96 kHz)
Normal Mode (Slave)
t
DBCLK High 60 ns
DBH
t
DBCLK Low 60 ns
DBL
fDB DBCLK Frequency 64 × fS
t
DLRCLK Setup 10 ns To DBCLK rising edge
DLS
t
DLRCLK Hold 10 ns From DBCLK rising edge
DLH
t
DSDATA Setup 10 ns To DBCLK rising edge
DDS
t
DSDATA Hold 10 ns From DBCLK rising edge
DDH
Packed 128/256 Modes (Slave)
t
DBCLK High 15 ns
DBH
t
DBCLK Low 15 ns
DBL
fDB DBCLK Frequency 256 × fS
t
DLRCLK Setup 10 ns To DBCLK rising edge
DLS
t
DLRCLK Hold 10 ns From DBCLK rising edge
DLH
t
DSDATA Setup 10 ns To DBCLK rising edge
DDS
t
DSDATA Hold 10 ns From DBCLK rising edge
DDH
ADC SERIAL PORT (48 kHz and 96 kHz)
Normal Mode (Master)
t
ABCLK Delay 25 ns From MCLK rising edge
ABD
t
ALRCLK Delay 5 ns From ABCLK falling edge
ALD
t
ASDATA Delay 10 ns From ABCLK falling edge
ABDD
Normal Mode (Slave)
t
ABCLK High 60 ns
ABH
t
ABCLK Low 60 ns
ABL
fAB ABCLK Frequency 64 × fS
t
ALRCLK Setup 5 ns To ABCLK rising edge
ALS
t
ALRCLK Hold 15 ns From ABCLK rising edge
ALH
t
ASDATA Delay 15 ns From ABCLK falling edge
ABDD
Packed 128/256 Mode (Master)
t
ABCLK Delay 40 ns From MCLK rising edge
PABD
t
LRCLK Delay 5 ns From ABCLK falling edge
PALD
t
ASDATA Delay 10 ns From ABCLK falling edge
PABDD
20 ns
Rev. B | Page 5 of 24
AD1839A
Parameter Min Max Unit Comments
TDM256 MODE (Master, 48 kHz and 96 kHz)
t
BCLK Delay 40 ns From MCLK rising edge
TBD
t
FSTDM Delay 5 ns From BCLK rising edge
FSD
t
ASDATA Delay 10 ns From BCLK rising edge
TABDD
t
DSDATA1 Setup 15 ns To BCLK falling edge
TDDS
t
DSDATA1 Hold 15 ns From BCLK falling edge
TDDH
TDM256 MODE (Slave, 48 kHz and 96 kHz)
fAB BCLK Frequency 256 × fS
t
BCLK High 17 ns
TBCH
t
BCLK Low 17 ns
TBCL
t
FSTDM Setup 10 ns To BCLK falling edge
TFS
t
FSTDM Hold 10 ns From BCLK falling edge
TFH
t
ASDATA Delay 15 ns From BCLK rising edge
TBDD
t
DSDATA1 Setup 15 ns To BCLK falling edge
TDDS
t
DSDATA1 Hold 15 ns From BCLK falling edge
TDDH
TDM512 MODE (Master, 48 kHz)
t
BCLK Delay 40 ns From MCLK rising edge
TBD
t
FSTDM Delay 5 ns From BCLK rising edge
FSD
t
ASDATA Delay 10 ns From BCLK rising edge
TABDD
t
DSDATA1 Setup 15 ns To BCLK falling edge
TDDS
t
DSDATA1 Hold 15 ns From BCLK falling edge
TDDH
TDM512 MODE (Slave, 48 kHz)
fAB BCLK Frequency 512 × fS
t
BCLK High 17 ns
TBCH
t
BCLK Low 17 ns
TBCL
t
FSTDM Setup 10 ns To BCLK falling edge
TFS
t
FSTDM Hold 10 ns From BCLK falling edge
TFH
t
ASDATA Delay 15 ns From BCLK rising edge
TBDD
t
DSDATA1 Setup 15 ns To BCLK falling edge
TDDS
t
DSDATA1 Hold 15 From BCLK falling edge
TDDH
AUXILIARY INTERFACE (48 kHz and 96 kHz)
t
AAUXDATA Setup 10 ns To AUXBCLK rising edge
AXDS
t
AAUXDATA Hold 10 ns From AUXBCLK rising edge
AXDH
t
DAUXDATA Delay 10 ns From AUXBCLK falling edge
DXD
f
AUXBCLK Frequency 64 × fS ns
ABP
Slave Mode
t
AUXBCLK High 15 ns
AXBH
t
AUXBCLK Low 15 ns
AXBL
t
AUXLRCLK Setup 10 ns To AUXBCLK rising edge
AXLS
t
AUXLRCLK Hold 10 ns From AUXBCLK rising edge
AXLH
Master Mode
t
AUXBCLK Delay 20 ns From MCLK rising edge
AUXBCLK
t
AUXLRCLK Delay 15 ns From AUXBCLK falling edge
AUXLRCLK
t
MCLK
t
MCLK
MH
t
ML
PD/RST
t
PDR
Figure 2. MCLK and
Rev. B | Page 6 of 24
PD/RST
Timing
03627-B-002
AD1839A
ABSOLUTE MAXIMUM RATINGS
TA = 25°C, unless otherwise noted.
Table 3.
Parameter Rating
AVDD, DVDD, ODVDD to AGND,
DGND −0.3 V to +6.0 V
AGND to DGND −0.3 V to +0.3 V
Digital I/O Voltage to DGND −0.3 V to ODVDD + 0.3 V
Analog I/O Voltage to AGND −0.3 V to AVDD + 0.3 V
Operating Temperature Range
Industrial (A Version) −40°C to +85°C
TEMPERATURE RANGE
Table 4.
Parameter Min Typ Max Unit
Specifications Guaranteed +25 °C
Functionality Guaranteed −40 +85 °C
Storage −65 +150 °C
Stresses above those listed under Absolute Maximum Ratings
may cause permanent damage to the device. This is a stress
rating only; functional operation of the device at these or any
other conditions above those listed in the operational sections
of this specification is not implied. Exposure to absolute
maximum rating conditions for extended periods may affect
device reliability.
ESD CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on
the human body and test equipment and can discharge without detection. Although this product features
proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy
electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance
1, 39 DVDD Digital Power Supply. Connect to digital 5 V supply.
2 CLATCH I Latch Input for Control Data.
3 CIN I Serial Control Input.
4
PD/RST
I Power-Down/Reset.
5, 10, 16, 24, 30, 34 AGND Analog Ground.
6, 8, 12, 14, 25, 27, 31–33 NC Not connected.
7, 13, 26 OUTLx O DACx Right Channel Negative Output.
9, 15, 28 OUTRx O DACx Right Channel Positive Output.
11, 19, 29 AVDD Analog Power Supply. Connect to analog 5 V supply.
17 FILTD Filter Capacitor Connection. Recommended 10 µF/100 nF.
18 FILTR Reference Filter Capacitor Connection. Recommended 10 µF/100 nF.
20 ADCLN I ADC Left Channel Negative Input.
21 ADCLP I ADC Left Channel Positive Input.
22 ADCRN I ADC Right Channel Negative Input.
23 ADCRP I ADC Right Channel Positive Input.
35
M/S
I ADC Master/Slave Select.
36 DAUXDATA O Auxiliary DAC Output Data.
37 DLRCLK I/O DAC LR Clock.
38 DBCLK I/O DAC Bit Clock.
40, 52 DGND Digital Ground.
41–43 DSDATAx I DACx Input Data (left and right channels).
44 AAUXDATA3 I Auxiliary ADC3 Digital Input.
45 ABCLK I/O ADC Bit Clock.
46 ALRCLK I/O ADC LR Clock.
47 MCLK I Master Clock Input.
48 ODVDD Digital Output Driver Power Supply.
49 ASDATA O ADC Serial Data Output.
50 COUT O Output for Control Data.
51 CCLK I Control Clock Input for Control Data.
The ratio of a full-scale input signal to the integrated input
noise in the pass band (20 Hz to 20 kHz), expressed in decibels.
Dynamic range is measured with a −60 dB input signal and is
equal to (S/[THD + N]) + 60 dB. Note that spurious harmonics
are below the noise with a −60 dB input, so the noise level
establishes the dynamic range. The dynamic range is specified
with and without an A-weight filter applied.
The ratio of the root-mean-square (rms) value of the
fundamental input signal to the rms sum of all other spectral
components in the pass band, expressed in decibels.
Pass Band
The region of the frequency spectrum unaffected by the
attenuation of the digital decimator’s filter.
Pass-Band Ripple
The peak-to-peak variation in amplitude response from equalamplitude input signal frequencies within the pass band,
expressed in decibels.
Stop Band
The region of the frequency spectrum attenuated by the digital
decimator’s filter to the degree specified by stop-band
attenuation.
Gain Error
With identical near full-scale inputs, the ratio of actual output
to expected output, expressed as a percentage.
Interchannel Gain Mismatch
With identical near full-scale inputs, the ratio of outputs of the
two stereo channels, expressed in decibels.
Gain Drift
Change in response to a near full-scale input with a change in
temperature, expressed as parts-per-million (ppm) per °C.
Crosstalk (EIAJ Method)
Ratio of response on one channel with a grounded input to a
full-scale 1 kHz sine wave input on the other channel, expressed
in decibels.
Power Supply Rejection
With no analog input, signal present at the output when a
300 mV p-p signal is applied to the power supply pins,
expressed in decibels of full scale.
Group Delay
Intuitively, the time interval required for an input pulse to
appear at the converter’s output, expressed in microseconds.
More precisely, the derivative of radian phase with respect to
the radian frequency at a given frequency.
Group Delay Variation
The difference in group delays at different input frequencies.
Specified as the difference between the largest and the smallest
group delays in the pass band, expressed in microseconds.
Acronyms
ADC—Analog-to-digital converter.
DAC—Digital-to-analog converter.
DSP—Digital signal processor.
IMCLK—Internal master clock signal used to clock the ADC
and DAC engines.
MCLK—External master clock signal applied to the AD1839A.
Rev. B | Page 11 of 24
AD1839A
FUNCTIONAL OVERVIEW
ADCS
There are two ADC channels in the AD1839A, configured as a
stereo pair. Each ADC has fully differential inputs. The ADC
section can operate at a sample rate of up to 96 kHz. The ADCs
include on-board digital decimation filters with 120 dB stopband attenuation and linear phase response, operating at an
oversampling ratio of 128 (for 48 kHz operation) or 64 (for
96 kHz operation).
The peak level information for each ADC may be read from the
ADC Peak 0 and ADC Peak 1 registers. The data is supplied as a
6-bit word with a maximum range of 0 dB to −63 dB and a
resolution of 1 dB. The registers hold peak information until
read; after reading, the registers are reset so that new peak
information can be acquired. (Refer to the register description
in Table 10 for details of the format.) The two ADC channels
have a common serial bit clock and a left-right framing clock.
The clock signals are all synchronous with the sample rate.
The ADC digital pins, ABCLK and ALRCLK, can be set to
operate as inputs or outputs by connecting the
ODVDD or DGND, respectively. When the pins are set as
outputs, the AD1839A generates the timing signals. When the
pins are set as inputs, the timing must be generated by the
external audio controller.
DACS
The AD1839A has six DAC channels arranged as three
independent stereo pairs, with six single-ended analog outputs.
Each channel has its own independently programmable
attenuator, adjustable in 1,024 linear steps. Digital inputs are
supplied through three serial data input pins (one for each
stereo pair) and a common frame (DLRCLK) and bit clock
(DBCLK). Alternatively, one of the packed data modes can be
used to access all six channels on a single TDM data pin. A
stereo replicate feature is included where the DAC data sent to
the first DAC pair is also sent to the other DACs in the part.
The AD1839A can accept DAC data at a sample rate of 192 kHz
on DAC 1 only. The stereo replicate feature can then be used to
copy the audio data to the other DACs.
Each of the output pins sits at a dc level of V
±1.4 V for a 0 dB digital input signal. A single op amp, thirdorder, external low-pass filter is recommended to remove high
frequency noise present on the output pins. Note that the use of
op amps with low slew rate or low bandwidth may cause high
frequency noise and tones to fold down into the audio band;
care should be exercised in selecting these components.
The FILTD pin should be connected to an external grounded
capacitor. This pin reduces the noise of the internal DAC bias
circuitry, thus reducing the DAC output noise. At times, this
capacitor may be eliminated with little effect on performance.
/S pin to
M
and swings
REF
DAC AND ADC CODING
The DAC and ADC output data stream is in a twos complement
encoded format. A 16-bit, 20-bit, or 24-bit word width can be
selected. The coding scheme is detailed in Table 6.
Table 6. Coding Scheme
Code Level
01111......1111 +FS
00000......0000 0 (Ref level)
10000......0000 −FS
AD1839A CLOCKING SCHEME
By default, the AD1839A requires an MCLK signal that is
256 times the required sample frequency up to a maximum of
12.288 MHz. The AD1839A uses a clock scaler to double the
clock frequency for use internally. The default setting of the
clock scaler is Multiply by 2. The clock scaler can also be set to
Multiply by 1 (bypass) or Multiply by 2/3. The clock scaler is
controlled by programming the bits in the ADC Control 3
register. The internal MCLK signal, IMCLK, should not exceed
24.576 MHz to ensure correct operation.
The MCLK of the AD1839A should remain constant during
normal operation of the DAC and ADC. If it is required to
change the MCLK rate, the AD1838A should be reset. Also, if
MCLK scaler needs to be modified so that the IMCLK does not
exceed 24.576 MHz, this should be done during the internal
reset phase of the AD1839A by programming the bits in the
first 3,072 MCLK periods following the reset.
Selecting the DAC Sampling Rate
The AD1839A DAC engine has a programmable interpolator
that allows the user to select different interpolation rates based
on the required sample rate and MCLK value available. Table 7
shows the settings required for sample rates based on a fixed
MCLK of 12.288 MHz.
Table 7. DAC Sample Rate Settings
Sample Rate Interpolator Rate DAC Control 1 Register
The AD1839A ADC engine has a programmable decimator that
allows the user to select the sample rate based on the MCLK
value. By default, the output sample rate is IMCLK/512. To
achieve a sample rate of IMCLK/256, the sample rate bit in the
ADC Control 1 register should be set as shown in Table 8.
To maintain the highest performance possible, the clock
jitter of the master clock signal should be limited to less than
300 ps rms, measured using the edge-to-edge technique. Even at
these levels, extra noise or tones may appear in the DAC outputs
if the jitter spectrum contains large spectral peaks. It is highly
recommended that the master clock be generated by an independent crystal oscillator. In addition, it is especially important
that the clock signal not be passed through an FPGA or other
large digital chip before being applied to the AD1839A. In most
cases, this induces clock jitter because the clock signal is sharing
common power and ground connections with unrelated digital
output signals.
RESET AND POWER-DOWN
PD/RST
to their default settings. After
ization routine runs inside the device to clear all memories to
zero. The initialization lasts approximately 20 LRCLK intervals.
During this time, it is recommended that no SPI writes occur.
powers down the chip and sets the control registers
PD/RST
is deasserted, an initial-
POWER SUPPLY AND VOLTAGE REFERENCE
The AD1839A is designed for 5 V supplies. Separate power
supply pins are provided for the analog and digital sections.
These pins should be bypassed with 100 nF ceramic chip
capacitors, as close to the pins as possible, to minimize noise
pickup. A bulk aluminum electrolytic capacitor of at least 22 µF
should also be provided on the same PC board as the codec. For
critical applications, improved performance is obtained with
separate supplies for the analog and digital sections. If this is
not possible, it is recommended that the analog and digital
supplies be isolated by two ferrite beads in series with the
bypass capacitor of each supply. It is important that the analog
supply be as clean as possible.
The internal voltage reference is brought out on the FILTR pin
and should be bypassed as close as possible to the chip, with a
parallel combination of 10 µF and 100 nF. The reference voltage
may be used to bias external op amps to the common-mode
voltage of the analog input and output signal pins. The current
drawn from the V
pin should be limited to less than 50 µA.
REF
SERIAL CONTROL PORT
The AD1839A has an SPI compatible control port to permit
programming the internal control registers for the ADCs and
DACs, and for reading the ADC signal levels from the internal
peak detectors. The SPI port is a 4-wire serial control port. The
format is similar to the Motorola SPI format except the input
data-word is 16 bits wide. The maximum serial bit clock
frequency is 12.5 MHz and may be completely asynchronous to
the sample rate of the ADCs and DACs. Figure 15 shows the
format of the SPI signal.
CLATCH
CCLK
CIN
COUT
MCLK
12.288MHz
t
COE
DAC INPUT
ADC OUTPUT
t
CLS
t
CCP
D15D14
48kHz/96kHz/192kHz
CLOCK SCALING
×1
×2
×2/3
48kHz/96kHz
INTERPOLATION
FILTER
IMCLK = 24.576MHz
OPTIONAL
HPF
Figure 14. Modular Clocking Scheme
t
CCHtCCL
t
t
CDH
CDS
D8
D8D0
D9
t
D9
COD
Figure 15. Format of SPI Timing
DAC ENGINE
MODULATOR
ADC ENGINE
DECIMATOR/
FILTER
Σ-∆
DAC
Σ-∆
MODULATOR
ANALOG
OUTPUT
ANALOG
INPUT
t
CLH
D0
03627-B-014
t
COTS
03627-B-015
Rev. B | Page 13 of 24
AD1839A
SERIAL DATA PORTS—DATA FORMAT
The ADC serial data output mode defaults to the popular I2S
format, where the data is delayed by 1 BCLK interval from the
edge of the LRCLK. By changing Bits 6 to 8 in ADC Control
Register 2, the serial mode can be changed to right-justified
(RJ), left-justified DSP (DSP), or left-justified (LJ). In the RJ
mode, it is necessary to set Bits 4 and 5 to define the width of
the data-word. The DAC serial data input mode defaults to I
By changing Bits 5, 6, and 7 in DAC Control Register 1, the
mode can be changed to RJ, DSP, LJ, or Packed Mode 256. The
word width defaults to 24 bits but can be changed by
reprogramming Bits 3 and 4 in DAC Control Register 1.
PACKED MODES
The AD1839A has a packed mode that allows a DSP or other
controller to write to all DACs and read all ADCs using one
input data pin and one output data pin. Packed Mode 256 refers
to the number of BCLKs in each frame. The LRCLK is low
while data from a left-channel DAC or ADC is on the data pin;
LRCLK is high while data from a right-channel DAC or ADC is
on the data pin. DAC data is applied on the DSDATA1 pin, and
ADC data is available on the ASDATA pin. Figure 19 to
Figure 24 show the timing for the packed mode. Packed mode is
available for 48 kHz and 96 kHz.
2
S.
AUXILIARY TIME DIVISION MULTIPLEXING
(TDM) MODE
A special auxiliary mode is provided to allow three external
stereo ADCs and one external stereo DAC to be interfaced to
the AD1839A to provide 8-in/8-out operation. In addition, this
mode supports a glueless interface to a single SHARC DSP
serial port, allowing a SHARC DSP to access all eight channels
of analog I/O. In this special mode, many pins are redefined; see
Table 9 for a list of redefined pins.
The auxiliary and TDM interfaces are independently
configurable to operate as masters or slaves. When the auxiliary
interface is set as a master, by programming the auxiliary mode
bit in ADC Control Register 2, AUXLRCLK and AUXBCLK are
generated by the AD1839A. When the auxiliary interface is set
as a slave, AUXLRCLK and AUXBCLK need to be generated by
an external ADC, as shown in Figure 27.
The TDM interface can be set to operate as a master or slave by
connecting the
master mode, the FSTDM and BCLK signals are outputs and are
generated by the AD1839A. In slave mode, the FSTDM and
BCLK are inputs and should be generated by the SHARC. Both
48 kHz and 96 kHz operations are available (based on a
12.288 MHz or 24.576 MHz MCLK) in this mode.
/S pin to DGND or ODVDD, respectively. In
M
Table 9. Pin Function Changes in Auxiliary Mode
Pin Name I2S Mode Auxiliary Mode
ASDATA (O) I2S Data Out, Internal ADC TDM Data Out to SHARC.
DSDATA1 (I) I2S Data In, Internal DAC1 TDM Data In from SHARC.
DSDATA2 (I)/AAUXDATA1 (I) I2S Data In, Internal DAC2 AUX-I2S Data In 1 (from external ADC).
DSDATA3 (I)/AAUXDATA2 (I) I2S Data In, Internal DAC3 AUX-I2S Data In 2 (from external ADC).
AAUXDATA3 (I) Not Connected AUX-I2S Data In 3 (from external ADC).
ALRCLK (O) LRCLK for ADC TDM Frame Sync Out to SHARC (FSTDM).
ABCLK (O) BCLK for ADC TDM BCLK Out to SHARC.
DLRCLK (I)/AUXLRCLK (I/O) LRCLK In/Out Internal DACs
DBCLK (I)/AUXBCLK (I/O) BCLK In/Out Internal DACs
DAUXDATA (O) Not Connected AUX-I2S Data Out (to external DAC).
AUX LRCLK In/Out. Driven by external LRCLK from ADC in slave mode.
In master mode, driven by MCLK/512.
AUX BCLK In/Out. Driven by external BCLK from ADC in slave mode.
In master mode, driven by MCLK/8.
Rev. B | Page 14 of 24
AD1839A
LRCLK
BCLK
SDATA
MSB
LEFT CHANNELRIGHT CHANNEL
LSB
LEFT-JUSTIFIED MODE—16 BITS TO 24 BITS PER CHANNEL
MSB
LSB
LRCLK
BCLK
SDATA
LRCLK
BCLK
SDATA
LRCLK
BCLK
SDATA
LEFT CHANNEL
MSBMSB
LEFT CHANNELRIGHT CHANNEL
MSBMSB
RIGHT-JUSTIFIED MODE—SELECT NUMBER OF BITS PER CHANNEL
MSBMSB
NOTES
1. DSP MODE DOES NOT IDENTIFY CHANNEL.
2.
NORMALLY OPERATES ATfS EXCEPT FOR DSP MODE, WHICH IS 2 × fS.
LRCLK
3. BCLK FREQUENCY IS NORMALLY 64× LRCLK BUT MAY BE OPERATED IN BURST MODE.
LSBLSB
2
I
S MODE—16 BITS TO 24 BITS PER CHANNEL
LSBLSB
LSBLSB
DSP MODE—16 BITS TO 24 BITS PER CHANNEL
1/f
S
Figure 16. Stereo Serial Modes
t
ABH
ABCLK
t
ABL
ALRCLK
t
ALS
t
ABDD
RIGHT CHANNEL
03627-B-016
ASDATA
LEFT-JUSTIFIED
MODE
ASDATA
2
I
S COMPATIBLE
MODE
ASDATA
RIGHT-JUSTIFIED
MODE
MSB
MSB – 1
MSB
MSB
Figure 17. ADC Serial Mode Timing
Rev. B | Page 15 of 24
LSB
03627-B-017
AD1839A
DBCLK
DLRCLK
DSDATA
LEFT-JUSTIFIED
MODE
DSDATA
2
S COMPATIBLE
I
RIGHT-JUSTIFIED
MODE
DSDATA
MODE
t
DBH
t
DBL
t
t
DLS
DDS
MSB
t
DDH
t
DDS
MSB – 1
MSB
t
DDH
t
DDS
MSB
t
DDH
t
DLH
t
DDS
LSB
t
DDH
03627-B-018
Figure 18. DAC Serial Mode Timing
LRCLK
BCLK
ADC DATA
16 BCLKs
SLOT 1
LEFT 1
SLOT 2
LEFT 2
SLOT 3
LEFT 3
128 BCLKs
SLOT 4
LEFT 4
SLOT 5
RIGHT 1
SLOT 6
RIGHT 2
SLOT 7
RIGHT 3
SLOT 8
RIGHT 4
LRCLK
BCLK
ADC DATA
32 BCLKs
SLOT 1
LEFT 1
MSBMSB – 1 MSB – 2
Figure 19. ADC Packed Mode 128
256 BCLKs
SLOT 2
SLOT 3
LEFT 2
LEFT 3
MSBMSB – 1 MSB – 2
SLOT 4
LEFT 4
SLOT 5
RIGHT 1
Figure 20. ADC Packed Mode 256
SLOT 6
RIGHT 2
SLOT 7
RIGHT 3
SLOT 8
RIGHT 4
03627-B-019
03627-B-020
Rev. B | Page 16 of 24
AD1839A
K
LRCLK
BCLK
DAC DATA
16 BCLKs
SLOT 1
LEFT 1
SLOT 2
LEFT 2
SLOT 3
LEFT 3
128 BCLKs
SLOT 4
LEFT 4
SLOT 5
RIGHT 1
SLOT 6
RIGHT 2
SLOT 7
RIGHT 3
SLOT 8
RIGHT 4
LRCLK
BCLK
DAC DATA
ABCLK
ALRCLK
ASDATA
32 BCLKs
SLOT 1
LEFT 1
MSBMSB – 1 MSB – 2
Figure 21. DAC Packed Mode 128
256 BCLKs
SLOT 2
SLOT 3
LEFT 2
LEFT 3
MSBMSB – 1 MSB – 2
SLOT 4
LEFT 4
SLOT 5
RIGHT 1
Figure 22. DAC Packed Mode 256
t
ABH
t
ABL
t
ABH
t
ALH
MSB
MSB – 1
Figure 23. ADC Packed Mode Timing
SLOT 6
RIGHT 2
SLOT 7
RIGHT 3
t
ABDD
SLOT 8
RIGHT 4
03627-B-024
03627-B-021
03627-B-022
t
DBH
DBCLK
t
DBL
t
DLS
DLRCL
t
DLH
t
DSDATA
DDS
MSBMSB – 1
t
DDH
Figure 24. DAC Packed Mode Timing
Rev. B | Page 17 of 24
03627-B-025
AD1839A
FSTDM
BCLK
TDM
MSB TDMMSB TDM
INTERNAL
DAC R4
RIGHT
2
S - MSB RIGHT
I
I2S - MSB RIGHT
8TH
CH
R4
8TH
CH
TDM INTERFACEAUX - I
(FROM AUX ADC NO. 1)
(FROM AUX ADC NO. 1)
AAUXDATA1 (IN)
S INTERFACE
(FROM AUX ADC NO. 1)
2
AAUXDATA2 (IN)
(FROM AUX ADC NO. 2)
ASDATA1
TDM (OUT)
ASDATA
DSDATA1
TDM (IN)
DSDATA1
AUX
LRCLK I
AUX
BCLK I2S
1ST
CH
INTERNAL
ADC L1
MSB TDMMSB TDM
1ST
CH
INTERNAL
DAC L1
2
S
AUX_ADCL2AUX_ADCL3AUX_ADCL4INTERNAL
32
INTERNAL
DAC L2
32
2
I
2
I
INTERNAL
LEFT
S - MSB LEFT
S - MSB LEFT
DAC L3
INTERNAL
DAC L4
ADC R1
INTERNAL
DAC R1
AUX_ADCR2AUX_ADCR3AUX_ADC
INTERNAL
DAC R2
INTERNAL
DAC R3
AAUXDATA3 (IN)
(FROM AUX ADC NO. 3)
AUXBCLK FREQUENCY IS 64×
2
I
S - MSB LEFT
FRAME RATE; TDM BCLK FREQUENCY IS 256× FRAME RATE.
Figure 27. Auxiliary Mode Connection (Slave Mode) to SHARC
CONTROL/STATUS REGISTERS
The AD1839A has 13 control registers, 11 of which are used to
set the operating mode of the part. The other two registers,
ADC Peak 0 and ADC Peak 1, are read-only and should not be
programmed. Each of the registers is 10 bits wide with the
exception of the ADC peak reading registers, which are 6 bits
wide. Writing to a control register requires a 16-bit data frame
to be transmitted. Bits 15 to 12 are the address bits of the
required register. Bit 11 is a read/write bit. Bit 10 is reserved and
should always be programmed to 0. Bits 9 to 0 contain the
10-bit value that is to be written to the register, or, in the case of
a read operation, the 10-bit register contents. Figure 15 shows
the format of the SPI read and write operation.
DAC Control Registers
The AD1839A register map has eight registers that are used to
control the functionality of the DAC section of the part. The
function of the bits in these registers is discussed next.
Sample Rate
These bits control the sample rate of the DACs. Based on a
24.576 MHz IMCLK, sample rates of 48 kHz, 96 kHz, and
192 kHz are available. The MCLK scaling bits in ADC Control 3
should be programmed appropriately, based on the master clock
frequency.
Power-Down/Reset
This bit controls the power-down status of the DAC section. By
default, normal mode is selected; by setting this bit, the digital
section of the DAC stage can be put into a low power mode,
thus reducing the digital current. The analog output section of
the DAC stage is not powered down.
SHARC
TFS (NC)
TxCLK
AD1839A
SLAVEMCLK
DAC Data-Word Width
These two bits set the word width of the DAC data. Compact
disk (CD) compatibility may require 16 bits, but many modern
digital audio formats require 24-bit sample resolution.
DAC Data Format
The AD1839A serial data interface can be configured to be
compatible with a choice of popular interface formats, including
2
S, LJ, RJ, or DSP modes. Details on these interface modes are
I
provided in the Serial Data Ports—Data Format section.
De-emphasis
The AD1839A provides built-in de-emphasis filtering for the
three standard sample rates of 32.0 kHz, 44.1 kHz, and 48 kHz.
Mute DAC
Each of the six DACs in the AD1839A has its own independent
mute control. Setting the appropriate bit mutes the DAC output.
The AD1839A uses a clickless mute function that attenuates the
output to approximately −100 dB over a number of cycles.
Stereo Replicate
Setting this bit copies the digital data sent to the stereo pair
DAC1 to the three other stereo DACs in the system. This allows
all three stereo DACs to be driven by one digital data stream.
Note that in this mode, DAC data sent to the other DACs is
ignored.
DAC Volume Control
Each DAC in the AD1839A has its own independent volume
control. The volume of each DAC can be adjusted in 1,024
linear steps by programming the appropriate register. The
default value for this register is 1023, which provides no
attenuation, that is, full volume.
SHARC IS ALWAYS
RUNNING IN SLAVE MODE
(INTERRUPT DRIVEN).
TxDATA
DAUXDATA
LRCLK
BCLK
DATA
MCLK
DAC NO. 1
SLAVE
03627-B-028
Rev. B | Page 19 of 24
AD1839A
ADC Control Registers
The AD1839A register map has five registers that are used to
control the functionality and read the status of the ADCs. The
function of the bits in each of these registers is discussed below.
ADC Peak Level
These two registers store the peak ADC result from each
channel when the ADC peak readback function is enabled. The
peak result is stored as a 6-bit number from 0 dB to −63 dB in
1 dB steps. The value contained in the register is reset once it
has been read, allowing for continuous level adjustment as
required. Note that the ADC peak level registers use the six
most significant bits in the register to store the results.
Sample Rate
This bit controls the sample rate of the ADCs. Based on a
24.576 MHz IMCLK, sample rates of 48 kHz and 96 kHz are
available. The MCLK scaling bits in ADC Control 3 should be
programmed appropriately, based on the master clock
frequency.
ADC Power-Down
This bit controls the power-down status of the ADC section and
operates in a manner similar to the DAC power-down.
Table 10. Control Register Map
Register Address Register Name Description Type Width Reset Setting (Hex)
0000 DACCTRL1 DAC Control 1
0001 DACCTRL2 DAC Control 2
0010 DACVOL1 DAC Volume—Left 1
0011 DACVOL2 DAC Volume—Right 1
0100 DACVOL3 DAC Volume—Left 2
0101 DACVOL4 DAC Volume—Right 2
0110 DACVOL5 DAC Volume—Left 3
0111 DACVOL6 DAC Volume—Right 3
1000 DACVOL7 DAC Volume—Left 4
1001 DACVOL8 DAC Volume—Right 4
1010 ADCPeak0 ADC Left Peak R 6 000
1011 ADCPeak1 ADC Right Peak R 6 000
1100 ADCCTRL1 ADC Control 1
1101 ADCCTRL2 ADC Control 2
1110 ADCCTRL3 ADC Control 3
1111 Reserved Reserved
High-Pass Filter
The ADC signal path has a digital high-pass filter. Enabling this
filter removes the effect of any dc offset in the analog input
signal from the digital output codes.
ADC Data-Word Width
These two bits set the word width of the ADC data.
ADC Data Format
The AD1839A serial data interface can be configured to be
compatible with a choice of popular interface formats, including
2
S, LJ, RJ, or DSP modes.
I
Master/Slave Auxiliary Mode
When the AD1839A is operating in the auxiliary mode, the
auxiliary ADC control pins, AUXBCLK and AUXLRCLK, which
connect to the external ADCs, can be set to operate as a master
or slave. If the pins are set in slave mode, one of the external
ADCs should provide the LRCLK and BCLK signals.
ADC Peak Readback
Setting this bit enables ADC peak reading. See the ADCs
section for more information.
RES Reserved IMCLK Clocking Scaling ADC Peak Readback DAC Test Mode ADC Test Mode
11 10 9, 8 7, 6 5 4, 3, 2 1, 0
ADC DataWord Width
AUXDATA RES Right Left
CASCADE MODE
Dual AD1839A Cascade
The AD1839A can be cascaded to an additional AD1839A that,
in addition to six external stereo ADCs and two external stereo
DACs, can be used to create a 32-channel audio system with
16 inputs and 16 outputs. The cascade is designed to connect
to a SHARC DSP and operates in a time division multiplexing
(TDM) format. Figure 28 shows the connection diagram for
cascade operation. The digital interface for both parts must be
set to operate in Auxiliary 512 mode by programming ADC
Control Register 2. AD1839A Device 1 is set as the master
device by connecting the
Device 2 is set as a slave device by connecting the
ODVDD. Both devices should be run from the same MCLK
and
PD/RST
signals to ensure that they are synchronized. With
/S pin to DGND; AD1839A
M
M
/S to
Device 1 set as a master, it generates the frame-sync and bit
clock signals. These signals are sent to the SHARC and Device 2,
ensuring that both know when to send and receive data.
The cascade can be thought of as two 256-bit shift registers, one
for each device. At the beginning of a sample interval, the shift
registers contain the ADC results from the previous sample
interval. The first shift register (Device 1) clocks data into the
SHARC and clocks in data from the second shift register
(Device 2). While this is happening, the SHARC is sending DAC
data to the second shift register. By the end of the sample
interval, all 512 bits of ADC data in the shift registers have been
clocked into the SHARC and replaced by DAC data, which is
subsequently written to the DACs. Figure 29 shows the timing
diagram for the cascade operation.