FEATURES
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 One 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
Differential Output for Optimum Performance
ADCs: –95 dB THD + N, 105 dB SNR and
Dynamic Range
DACs: –95 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
, 512 fS, and 768 fS Master
S
Mode Clocks
Power-Down Mode Plus Soft Power-Down Mode
Flexible Serial Data Port with Right-Justified, Left-
Justified, I
TDM Interface Mode Supports 8 In/8 Out Using a
Single SHARC
2
S Compatible, and DSP Serial Port Modes
®
SPORT
52-Lead MQFP Plastic Package
APPLICATIONS
DVD Video and Audio Players
Home Theater Systems
Automotive Audio Systems
Audio/Visual Receivers
Digital Audio Effects Processors
PRODUCT OVERVIEW
The AD1838 is a high performance single-chip codec featuring
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 AD1838 also contains an on-chip reference with a nominal
value of 2.25 V.
The AD1838 contains a flexible serial interface that allows for
glueless connection to a variety of DSP chips, AES/EBU receivers, and sample rate converters. The AD1838 can be configured
in left-justified, right-justified, I
modes. Control of the AD1838 is achieved by means of an SPI
2
S, or DSP compatible serial
®
compatible serial port. While the AD1838 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 AD1838 is available in a 52-lead MQFP package and is
specified for the industrial temperature range of –40ºC to +85ºC.
FUNCTIONAL BLOCK DIAGRAM
ODVDDDVDD
DVDD
AAUXDATA3
DLRCLK
DBCLK
DSDATA1
DSDATA2
DSDATA3
DAUXDATA
ADCLP
ADCLN
ADCRP
ADCRN
-
ADC
-
ADC
DIGITAL
FILTER
DIGITAL
FILTER
SERIAL DATA
I/O PORT
REV. A
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. 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 companies.
Performance of all channels is identical (exclusive of the Interchannel Gain Mismatch and Interchannel Phase Deviation specifications).
ParameterMinTypMaxUnit
ANALOG-TO-DIGITAL CONVERTERS
ADC Resolution24Bits
Dynamic Range (20 Hz to 20 kHz, –60 dB Input)
No Filter100103dB
A-Weighted101105dB
Total Harmonic Distortion + Noise (THD+N)–95–88.5dB
Interchannel Isolation100dB
Interchannel Gain Mismatch0.025dB
Analog Inputs
Differential Input Range (± Full Scale)–2.828+2.828V
Common-Mode Input Voltage2.25V
Input Impedance4kΩ
Input Capacitance15pF
V
REF
DC Accuracy
Gain Error± 5%
Gain Drift35ppm/ºC
DIGITAL-TO-ANALOG CONVERTERS
DAC Resolution
Dynamic Range (20 Hz to 20 kHz, –60 dBFS Input)
No Filter103105dB
With A-Weighted Filter105108dB
Total Harmonic Distortion + Noise–95–90dB
Interchannel Isolation110dB
DC Accuracy
Gain Error± 4%
Interchannel Gain Mismatch0.025dB
Gain Drift200ppm/°C
Interchannel Phase Deviation± 0.1Degrees
Volume Control Step Size (1023 Linear Steps)0.098%
Volume Control Range (Max Attenuation)60dB
Mute Attenuation–100dB
De-emphasis Gain Error± 0.1dB
Full-Scale Output Voltage at Each Pin (Single-Ended)1.0 (2.8)V rms (V p-p)
Output Resistance at Each Pin180Ω
Common-Mode Output Voltage2.25V
Operation, Both Supplies740mW
Operation, Analog Supply420mW
Operation, Digital Supply320mW
Power-Down, Both Supplies280mW
Power Supply Rejection Ratio
1 kHz, 300 mV p-p Signal at Analog Supply Pins–70dB
20 kHz, 300 mV p-p Signal at Analog Supply Pins–75dB
*Stresses above those listed under Absolute Maximum Ratings may cause perma-
nent 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.
+ 0.3 V
DD
+ 0.3 V
DD
ORDERING GUIDE
TemperaturePackagePackage
ModelRangeDescriptionOption
o
AD1838AS–40
AD1838AS-REEL–40
C to +85oC52-Lead MQFPS-52
o
C to +85oC52-Lead MQFPS-52
EVAL-AD1838EBEvaluation Board
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 the
AD1838 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 degradation or loss of functionality.
REV. A–6–
PIN CONFIGURATION
AD1838
DSDATA2
DSDATA1
AGND
OUTLN3
DGND
39
38
37
36
35
34
33
32
31
30
29
28
27
OUTLP3
DVDD
DBCLK
DLRCLK
DAUXDATA
M/S
AGND
NC
NC
NC
AGND
AVDD
OUTRP3
OUTRN3
DVDD
CLATCH
CIN
PD/RST
AGND
OUTLN1
OUTLP1
OUTRN1
OUTRP1
AGND
AVDD
OUTLN2
OUTLP2
DGND
CCLK
COUT
ASDATA
ODVDD
MCLK
ALRCLK
ABCLK
ADCLP
ADCLN
AAUXDATA3
)
ADCRN
50 494847 46 45 44 43 42 41 40
51
52
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15 16 17 18 19 20 21 22 23 24 25 26
AGND
OUTRP2
OUTRN2
FILTD
AD1838
TOP VIEW
(Not to Scale
FILTR
AVDD
DSDATA3
ADCRP
PIN FUNCTION DESCRIPTIONS
Input/
Pin No.MnemonicOutputDescription
1, 39DVDDDigital Power Supply. Connect to digital 5 V supply.
2CLATCHILatch Input for Control Data.
3CINISerial Control Input.
4PD/RSTIPower-Down/Reset.
5, 10, 16, 24, 30, 34AGNDAnalog Ground.
6, 12, 25OUTLNxODACx Left Channel Negative Output.
7, 13, 26OUTLPxODACx Left Channel Positive Output.
8, 14, 27OUTRNxODACx Right Channel Negative Output.
9, 15, 28OUTRPxODACx Right Channel Positive Output.
11, 19, 29AVDDAnalog Power Supply. Connect to analog 5 V supply.
17FILTDFilter Capacitor Connection. Recommended 10 µF/100 nF.
18FILTRReference Filter Capacitor Connection. Recommended 10 µF/100 nF.
20ADCLNIADC Left Channel Negative Input.
21ADCLPIADC Left Channel Positive Input.
22ADCRNIADC Right Channel Negative Input.
23ADCRPIADC Right Channel Positive Input.
31–33NCNot Connected.
35M/SIADC Master/Slave Select.
36DAUXDATAIAuxiliary DAC Input Data.
37DLRCLKI/ODAC LR Clock.
38DBCLKI/ODAC Bit Clock.
40, 52DGNDDigital Ground.
41–43DSDATAxIDACx Input Data (Left and Right Channels).
44AAUXDATA3IAuxiliary ADC3 Digital Input.
45ABCLKI/OADC Bit Clock.
46ALRCLKI/OADC LR Clock.
47MCLKIMaster Clock Input.
48ODVDDDigital Output Driver Power Supply.
49ASDATAOADC Serial Data Output.
50COUTOOutput for Control Data.
51CCLKIControl 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 (dB).
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.
Signal-to-(Total Harmonic Distortion + Noise)
[S/(THD + N)]
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 (dB).
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 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 milliseconds (ms).
More precisely, the derivative of radian phase with respect to
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 (µs).
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 AD1838
REV. A–10–
AD1838
FUNCTIONAL OVERVIEW
ADCs
There are two ADC channels in the AD1838, 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 stop-band
attenuation and linear phase response, operating at an oversampling ratio of 128 (for 48 kHz operation) or 64 (for 96 kHz
operation).
ADC 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 will hold peak information until
read; after reading, the registers are reset so that new peak
information can be acquired. Refer to the register description
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 M/S pin to
ODVDD or DGND, respectively. When the pins are set as
outputs, the AD1838 will generate the timing signals. When
the pins are set as inputs, the timing must be generated by the
external audio controller.
DACs
The AD1838 has six DAC channels arranged as three independent stereo pairs, with six fully differential analog outputs for
improved noise and distortion performance. Each channel has
its own independently programmable attenuator, adjustable in
1024 linear steps. Digital inputs are supplied through three serial
data input pins (one for each stereo pair) and a common frame
(DLRCLK) and bit (DBCLK) clock. Alternatively, one of the
packed data modes may 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 AD1838 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 set of differential output pins sits at a dc level of V
REF
and
swings ± 1.4 V for a 0 dB digital input signal. A single op amp
third order external low-pass filter is recommended to remove
high frequency noise present on the output pins, as well as to
provide differential-to-single-ended conversion. 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 is used to reduce the noise of the internal
DAC bias circuitry, thereby reducing the DAC output noise. In
some cases, this capacitor may be eliminated with little effect on
performance.
DAC and ADC Coding
The DAC and ADC output data stream is in a twos complement
encoded format. The word width can be selected from 16-bit,
20-bit, or 24-bit. The coding scheme is detailed in Table I.
Table I. Coding Scheme
CodeLevel
01111......1111+FS
00000......00000 (Ref Level)
10000......0000–FS
Clock Signals
The DAC and ADC engines in the AD1838 are designed to
operate from a 24.576 MHz internal master clock (IMCLK).
This clock is used to generate 48 kHz, and 96 kHz sampling
on the ADC and 48 kHz, 96 kHz, and 192 kHz on the DAC,
although the 192 kHz option is available only on one DAC pair.
The stereo replicate feature can be used to copy this DAC data
to the other DACs if required.
To facilitate the use of the different MCLK values, the AD1838
provides a clock scaling feature. The MCLK scaler can be programmed via the SPI port to scale the MCLK by a factor of 1
(pass through), 2 (doubling), or 2/3. The default setting of the
MCLK scaler is 2, which will generate 48 kHz sampling from
a 12.288 MHz MCLK. Additional sample rates can be achieved
by changing the MCLK value. For example, the CD standard
sampling frequency of 44.1 kHz can be achieved using an
11.2896 kHz MCLK. Figure 2 shows the internal configuration of the clock scaler and converter engines.
REV. A
MCLK
12.288MHz
DAC INPUT
ADC OUTPUT
48kHz/96kHz/192kHz
CLOCK SCALING
1
2
2/3
48kHz/96kHz
DAC ENGINE
INTERPOLATION
FILTER
IMCLK = 24.576MHz
OPTIONAL
HPF
-
MODULATOR
ADC ENGINE
DECIMATOR /
FILTER
Figure 2. Modulator Clocking Scheme
–11–
DAC
-
MODULATOR
ANALOG
OUTPUT
ANALOG
INPU T
AD1838
To maintain the highest performance possible, it is recommended
that the clock jitter of the master clock signal 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 should not be passed through an
FPGA or other large digital chip before being applied to the
AD1838. In most cases, this will induce clock jitter due to the
fact that the clock signal is sharing common power and ground
connections with other unrelated digital output signals.
RESET and Power-Down
PD/RST will power down the chip and set the control registers
to their default settings. After PD/RST is deasserted, an initialization routine will run inside the AD1838 to clear all memories
to zero. This initialization lasts for approximately 20 LRCLK
intervals. During this time, it is recommended that no SPI
writes occur.
Power Supply and Voltage Reference
The AD1838 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 will be 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 means of 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 FILTR pin should be limited to less than 50 µA.
Serial Control Port
The AD1838 has an SPI compatible control port to permit
programming the internal control registers for the ADCs and
DACs, and to read the ADC signal levels from the internal peak
detectors. The SPI control 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 3 shows the
format of the SPI signal.
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
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 AD1838 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, and 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. Figures 7 to 10 show
the timing for the packed mode. Packed mode is available only
for 48 kHz (based on MCLK = 12.288 MHz) and when the
M/S pin is low.
Auxiliary (TDM) Mode
A special auxiliary mode is provided to allow three external
stereo ADCs and one external stereo DAC to be interfaced to
the AD1838 to provide 8-in/8-out operation. In addition, this
mode supports 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 II for a list of redefined pins. The auxiliary and the TDM
interfaces are independently configurable to operate as masters
or slaves. When the auxiliary interface is set as a master, by
programming the aux mode bit in ADC Control Register 2,
AUXLRCLK and AUXBCLK are generated by the AD1838.
When the auxiliary interface is set as a slave, the AUXLRCLK
and AUXBCLK need to be generated by an external ADC as
shown in Figure 13.
The TDM interface can be set to operate as a master or slave
by connecting the M/S pin to DGND or ODVDD, respectively.
In master mode, the FSTDM and BCLK signals are outputs
and are generated by the AD1838. In slave mode, the FSTDM
and BCLK are inputs and should be generated by the SHARC.
Slave mode operation is available for 48 kHz and 96 kHz operation (based on a 12.288 MHz or 24.576 MHz MCLK), and
master mode operation is available for 48 kHz only.
2
S. By changing
REV. A–12–
AD1838
LRCLK
BCLK
SDATA
LRCLK
BCLK
SDATA
CLATCH
CCLK
CIN
COUT
MSB
t
t
COE
CLS
t
CCP
D15D14
t
COD
t
CCHtCCL
t
t
CDH
CDS
D8
D9
D9
D8D0
Figure 3. Format of SPI Timing
LEFT CHANNELRIGHT CHANNEL
LSB
LEFT-JUSTIFIED MODE—16 BITS TO 24 BITS PER CHANNEL
LEFT CHANNEL
MSBMSB
LSBLSB
I2S MODE—16 BITS TO 24 BITS PER CHANNEL
MSB
RIGHT CHANNEL
LSB
t
CLH
t
COTS
D0
LRCLK
BCLK
SDATA
LRCLK
BCLK
SDATA
LEFT CHANNELRIGHT CHANNEL
MSBMSB
RIGHT-JUSTIFIED MODE—S ELECT NUMBER OF BITS PER CHANNEL
MSBMSB
NOTES
1. DSP MODE DOES NOT IDENTIFY CHANNEL.
2. LRCLK NORMALLY OPERATES AT
3. BCLK FREQUENCY IS NORMALLY 64 LRCLK BUT MAY BE OPERATED IN BURST MODE.
f
EXCEPT FOR DSP MODE WHICH IS 2 f
S
LSBLSB
DSP MODE—16 BITS TO 24 BITS PER CHANNEL
LSBLSB
1/f
S
.
S
Figure 4. Stereo Serial Modes
REV. A
–13–
AD1838
ABCLK
ALRCLK
ASDATA
LEFT-JUSTIFIED
MODE
ASDATA
2
S MODE
I
ASDATA
RIGHT-JUSTIFIED
MODE
DBCLK
DLRCLK
t
t
DBH
ABH
t
ABP
t
ABL
t
ALS
MSBMSB – 1
t
DBL
t
DLS
MSB
MSB
Figure 5. ADC Serial Mode Timing
LSB
t
t
ALH
DLH
DSDATA
LEFT-JUSTIFIED
MODE
DSDATA
2
I
S MODE
DSDATA
RIGHT-JUSTIFIED
MODE
t
DDS
MSB
t
DDH
MSB – 1
t
DDS
MSB
t
DDH
t
DDS
Figure 6. DAC Serial Mode Timing
MSB
t
DDH
t
DDS
LSB
t
DDH
REV. A–14–
LRCLK
BCLK
ADC DATA
LRCLK
BCLK
DAC DATA
256 BCLKs
32 BCLKs
SLOT 1
LEFT
SLOT 3 SLOT 4SLOT 7 SLOT 8
SLOT 2
MSBMSB – 1 MSB – 2
SLOT 5
RIGHT
Figure 7. ADC Packed Mode 256
256 BCLKs
32 BCLKs
SLOT 2
SLOT 1
LEFT 1
SLOT 3
LEFT 3
SLOT 4
LEFT 2
MSBMSB – 1 MSB – 2
SLOT 5
RIGHT 1
Figure 8. DAC Packed Mode 256
SLOT 6
SLOT 6
RIGHT 2
SLOT 7
RIGHT 3
AD1838
SLOT 8
ABCLK
ALRCLK
ASDATA
MSB
Figure 9. ADC Packed Mode Timing
MSB – 1
DBCLK
DLRCLK
DSDATA
MSB
Figure 10. DAC Packed Mode Timing
MSB – 1
REV. A
–15–
AD1838
Table II. Pin Function Changes in Auxiliary Mode
Pin NameI2S ModeAux Mode
ASDATA (O)I
DSDATA1 (I)I
DSDATA2 (I)/AAUXDATA1 (I)I
DSDATA3 (I)/AAUXDATA2 (I)I
AAUXDATA3 (I)Not ConnectedAUX-I
ALRCLK (O)LRCLK for ADCTDM Frame Sync Out to SHARC (FSTDM)
ABCLK (O)BCLK for ADCTDM BCLK Out to SHARC
DLRCLK (I)/AUXLRCLK(I/O)LRCLK In/Out Internal DACsAUX LRCLK In/Out. Driven by Ext. LRCLK
DBCLK (I)/AUXBCLK(I/O)BCLK In/Out Internal DACsAUX BCLK In/Out. Driven by Ext. BCLK from
DAUXDATA(O)Not ConnectedAUX-I2S Data Out (to Ext. DAC)
FSTDM
BCLK
TDM
MSB TDM
ASDATA1
TDM (OUT)
1ST
CH
2
S Data Out, Internal ADCTDM Data Out to SHARC
2
S Data In, Internal DAC1TDM Data In from SHARC
2
S Data In, Internal DAC2AUX-I2S Data In 1 (from Ext. ADC)
2
S Data In, Internal DAC3AUX-I2S Data In 2 (from Ext. ADC)
2
S Data In 3 (from Ext. ADC)
from ADC in slave mode. In master mode,
driven by MCLK/512.
ADC in slave mode. In master mode, driven by
MCLK/8.
MSB TDM
8TH
CH
TDM INTERFACEAUX— I
S INTERFACE
2
DSDATA1
DSDATA1
LRCLK I
(FROM AUX ADC 1)
BCLK I
(FROM AUX ADC 1)
AAUXDATA1 (IN)
(FROM AUX ADC 1)
AAUXDATA2 (IN)
(FROM AUX ADC 2)
AAUXDATA3 (IN)
(FROM AUX ADC 3)
ASDATA
TDM (IN)
AUX
AUX
INTERNAL
ADC L1
MSB TDM
1ST
CH
INTERNAL
DAC L1
2
S
2
S
AUX BCLK FREQUENCY IS 64 FRAME RATE; TDM BCLK FREQUENCY IS 256 FRAME RATE.
AUX_ADC L2
32
INTERNAL
DAC L2
32
AUX_ADC L3
INTERNAL
DAC L3
LEFT
AUX_ADC L4
AUX DAC L4AUX DAC R4
INTERNAL
ADC R1
INTERNAL
DAC R1
Figure 11. Aux-Mode Timing
AUX_ADC R2
INTERNAL
DAC R2
AUX_ADC R3
INTERNAL
DAC R3
RIGHT
2
I
S— MSB RIGHTI2S— MSB LEFT
I2S— MSB RIGHTI2S— MSB LEFT
2
I
S— MSB RIGHTI2S— MSB LEFT
AUX_ADC R4
MSB TDM
8TH
CH
REV. A–16–
AD1838
ADC 1
SLAVE
ADC 1
SLAVE
ADC 2
SLAVE
LRCLK
BCLK
DATA
MCLK
LRCLK
BCLK
DATA
MCLK
LRCLK
BCLK
DATA
MCLK
30MHz
12.288MHz
SHARC
FSYNC-TDM (RFS)
RxDATA
RxCLK
ASDATA FSTDM BCLK DSDATA1
DBCLK/AUXBCLK
DLRCLK/AUXLRCLK
DSDATA2/AAUXDATA1
DSDATA3/AAUXDATA2
AAUXDATA3
MCLK
TFS (NC)
TxCLK
AD1838
MASTER
SHARC IS ALWAYS
RUNNING IN SLAVE MODE
(INTERRUPT DRIVEN).
TxDATA
DAUXDATA
Figure 12. Aux-Mode Connection to SHARC (Master Mode)
30MHz
12.288MHz
SHARC
SHARC IS ALWAYS
RUNNING IN SLAVE MODE
(INTERRUPT DRIVEN).
LRCLK
BCLK
DATA
MCLK
DAC 1
SLAVE
ADC 1
MASTER
ADC 1
SLAVE
ADC 2
SLAVE
LRCLK
BCLK
DATA
MCLK
LRCLK
BCLK
DATA
MCLK
LRCLK
BCLK
DATA
MCLK
FSYNC-TDM (RFS)
RxDATA
RxCLK
ASDATA FSTDM BCLK DSDATA1
DBCLK/AUXBCLK
DLRCLK/AUXLRCLK
DSDATA2/AAUXDATA1
DSDATA3/AAUXDATA2
AAUXDATA3
MCLK
TFS (NC)
TxCLK
AD1838
SLAVE
TxDATA
DAUXDATA
Figure 13. Aux-Mode Connection to SHARC (Slave Mode)
LRCLK
BCLK
DATA
MCLK
DAC 1
SLAVE
REV. A
–17–
AD1838
CONTROL/STATUS REGISTERS
The AD1838 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 six 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 3 shows the
format of the SPI read and write operation.
DAC CONTROL REGISTERS
The AD1838 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 below.
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. But 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.
DAC Data-Word Width
These two bits set the word width of the DAC data. Compact
Disc (CD) compatibility may require 16 bits, but many modern
digital audio formats require 24-bit sample resolution.
DAC Data Format
The AD1838 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 of these interface modes are
I
given in the Serial Data Ports section of this data sheet.
De-emphasis
The AD1838 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 AD1838 has its own independent
mute control. Setting the appropriate bit will mute the DAC
output. The AD1838 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
DAC 1 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 AD1838 has its own independent volume
control. The volume of each DAC can be adjusted in 1024
linear steps by programming the appropriate register. The
default value for this register is 1023, which provides no attenuation, i.e., full volume.
ADC CONTROL REGISTERS
The AD1838 register map has five registers that are used to
control the functionality and to 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 similar manner to the DAC power-down.
High-Pass Filter
The ADC signal path has a digital high-pass filter. Enabling this
filter will remove 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 AD1838 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 AD1838 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 ADC section
for more information.