a
Interfacing the AD1890/AD1891 to AES/EBU Receivers and Digital Filters
by Hank Zumbahlen, Senior Field Applications Engineer
AN-399
APPLICATION NOTE
ONE TECHNOLOGY WAY
P.O. BOX 9106
NORWOOD, MASSACHUSETTS 02062-9106
617/329-4700
ABSTRACT
The AES/EBU AES3-199X and the IEC-958 have become
the standard for interfacing digital audio components in
the digital domain. The AD1890/AD1891 Asynchronous
Sample Rate Converter (ASRC) is a device that pro-
vides a solution to sample rate interfacing and
compatibility issues. The practice of using oversampling
the digital signal before it goes to the digital-to-analog
converter has become standard as well. This paper
examines the issues with interfacing these components.
THE AES/EBU INPUT
Even though the resolution of commercial digital audio
sources, the Compact Disc (CD) and Digital Audio Tape
(DAT), is 16 bits, the AES/EBU interface has space for 20
bits of data, out of a total frame size of 32 bits. The
format for the subframe is shown in Figure 1. This
allows higher resolution in professional applications.
Therefore, since the data will not fill up the entire width
of the word, the data must be padded. This padding can
either be before or after the data word. If it is placed
before the data, the LSB (Least Significant Bit) is in the
32nd clock position. This is referred to as right-justified
data. If the padding is placed after the data, the MSB
(Most Significant Bit) is in the first clock position. This is
referred to as left-justified data.
PREAMBLE AUX
DATA AUDIO DATA VUCP
L
S
B
M
S
B
BIT 0 3 4 7 8
PREAMBLE – INDENTIFIES RIGHT OR LEFT CHANNEL AND START OF BLOCK
AUX DATA – AUDIO DATA IF DATA WORD GREATER THAN 20 BITS
– OPEN FOR OTHER APPLICATIONS IF DATA WORD IS
LESS THAN 20 BITS
V – VALIDITY BIT 0 = VALID DATA
U – USER DATA BIT UNDEFINED
C – CHANNEL STATUS BIT
P – PARITY BIT GENERATES EVEN PARITY
27 28 29 30 31
Figure 1a. Audio Subframe Format
The problem arises when you try to mate a component
that right justifies the data with one that expects left-
justified data. This is the case when trying to mate the
AD1890/AD1891 with the Yamaha YM3623B receiver
chip. The Crystal CS8412 allows the user to select which
data format is to be used. These two chips are by far the
most popular solutions at this point in time.
The standard digital audio signal set consists of the data,
which is alternated between the left and right channels,
a signal to indicate whether it is the left or right channel
(L/R), a bit clock and a word clock which indicates valid
data. It is by moving the L/R clock that we can change the
justification of the data.
Assume that we have 16 bits of right-justified data,
which is the case with the Yamaha part. That would
mean that we would have 16 leading zeros. By delaying
the L/R clock, outputted by the receiver chip, by the word
clock, also an output from the receiver chip, we delay the
L/R clock by a quarter cycle. The L/R signal will now
change state at the beginning of valid output data, which
in effect changes the data to left justification. This
delaying of the L/R clock is done simply with a D type
flip-flop (see Figure 2). The timing signals are given in
Figure 3.
ACH A
DATA BSB
CH B
DATA CH A
DATA CH B
DATA
END OF
STATUS BLOCK START OF
STATUS BLOCK
FRAME 191
PREAMBLE A – INDICATES CH A DATA
B – INDICATES CH B DATA
S – INDICATES CH A DATA AND START OF
STATUS BLOCK
PREAMBLE
SUB
FRAME
SUB
FRAME FRAME 0
Figure 1b. Audio Block Format
–2–
YM3623B
DIN
XIN
XOUT
ADJ
VCO
KMODE/
SEL
DOUT
CLK
L/R
EMP
HLDR
HLDL
ØA
ØB
S1
S2
ERR
28
6
5
2
3
7
22
AD1891
DATA_I
BCLK_I
L/R_I
WCLK_I
BKPOL_I
TRGLR_I
MSBDLY_I
DATA_O
BCLK_O
L/R_O
WCLK_O
BKPOL_O
TRGLR_O
MSBDLY_O
23
26
24
25
19
18
17
DQ
CLK
Q6
5
2
3
74HC74
+V
+V
4
1
17
12
15
16
19
20
8
9
23
24
21
25 26 13 18
+V
3
4
6
5
10
11
12
DMUTE_O
MUTE_I
16
15
12827 13 2
CL
PR
27
GPDLYS
SCLK
SSYNC
SDO
SYNC/
WC
FLAG_I
RESET
SEETLSLW
MCLK
ADDITIONAL CIRCUITRY NOT SHOWN FOR CLARITY
Figure 2. Justification Change
L/R
DATA
WORD
CLOCK
L/R
PIN
AD1890/91
15
17
YM3623B
PIN
5
18
32 CLOCKS 32 CLOCKS
Figure 3. AES Receiver - ASRC Timing
THE INTERPOLATION FILTER
Just the inverse process is required for interfacing to the
NPC SM5813 and similar digital filters. These filters are
used to raise the apparent sample rate of the digital
audio string by a factor of, typically, 4 or 8. By increasing
the apparent data rate the images are moved out in
frequency so that a much simpler (lower order) filter can
be designed. The advantages of a simpler filter are
many. First and most important is that a smaller filter is
easier to design and manufacture. They use less
components so they are less expensive. Also, a low
order filter will not have high “Q” sections which tend to
ring when hit with a transient.
The filter is expecting right hand justified data. The
AD1890/AD1891 outputs left-hand justified data.
Therefore we must use the same trick we used before
(see Figure 4). The L/R clock is delayed by the word clock
to effectively change the justification of the data from
left-justified to right-justified.
There is a slight difference though. The AD1890/AD1891
will put out 24 bits of data. The digital filter is expecting
only 16 bits. Luckily the data format is MSB first so that
the first 16 bits will be latched in when the L/R clock
transitions, which latches the contents of the digital
filters shift register. The remaining bits will not affect the
input to the filter, since the shift register is only sixteen
bits wide and the last bits of the previous channel will
have shifted all the way through the register before the
valid bits for the present channel are latched. Figure 5
shows the timing for the ASRC-filter interface.
AD1890
3
4
6
5
10
11
12
DATA_I
BCLK_I
L/R_I
WCLK_I
9
27
24
23
25
26
20
BKPOL_I
TRGLR_I
MSBDLY_I
DATA_O
BCLK_O
L/R_O
WCLK_O
BKPOL_O
TRGLR_O
MSBDLY_O
23
26
24
25
19
18
17
16
15
MUTE_O
MUTE_I
6
7
1
2
28
14
+V
NPC5813
XT1
XT0
DIN
BCLK
L/R
/RST
CKO
FSCO
DOL
DOR
WCKO
BCKO
DG
43
L/R
WORD CLOCK
6
5
4
3
74HC393
A
74HC393
BIT CLOCK
CLKOUT
12.288 MHz
3
1
2
10 15 17 16
DQ
CLK
Q6
5
2
3
74HC74
+V
+V
4
1
12827 13 2
CL
PR
GPDLYS
/CKDV
/CKSL
/SYN
/COB
/OW18
FLAG_I
RESET
SEETLSLW
MCLK
/OW20
QD
QC
QB
QA
8
9
10
11
A
13
12 QD
QC
QB
QA
CLR
CLR
ADDITIONAL CIRCUITRY NOT SHOWN FOR CLARITY
Figure 4. Digital Filter Interface
L/R
DATA
WORD
CLOCK
L/R
PIN
NPC5813
24
23
AD1890/91
PIN
28
32 CLOCKS 32 CLOCKS
24 CLOCKS
16
CLOCKS
Figure 5. ASRC-Digital Filter Timing
CONCLUSION
The interface between components which expect
different justification of data has been examined. A
proposal for modifying the justification has been
presented. It should be noted that second generation
ASRCs, the AD1893, have internal provisions for
selection either left justification or right justification.
BIBLIOGRAPHY
1) AUDIO ENGINEERING SOCIETY, “AES Recommend-
ed Practice for Digital Audio Engineering – Serial
Transmission Format for Linearly Represented
Digital Audio Data,” AES3-1985 (ANSI S4.40-1985).
2) INTERNATIONAL ELECTROTECHNICAL COMMISSION ,
“International Standard Digital Audio Interface,” IEC
958 1989.
3) Zumbahlen, Hank, “An Outboard Digital-to-Analog
Converter for Digital Audio Sources,” Analog Devices
AN-394, 1995.
4) Sanchez, Clifton & Taylor, Robert, “Overview of Digi-
tal Audio Interface Structures,” Crystal Semiconduc-
tor AN-22.
E2037–15–6/95
PRINTED IN U.S.A.