ad1890jpz Analog Devices, Inc., ad1890jpz Datasheet - Page 10

no-image

ad1890jpz

Manufacturer Part Number
ad1890jpz
Description
Sampleport Stereo Asynchronous Sample Rate Converters
Manufacturer
Analog Devices, Inc.
Datasheet
AD1890/AD1891
Asynchronous sample rate conversion under the polyphase filter
bank model is accomplished by selecting the output of a particu-
lar polyphase filter on the basis of the temporal relationship be-
tween the input sample clock and the output sample clock
events. Figure 5 shows the desired filter group delay as a func-
tion of the relative time difference between the current output
sample clock and the last input sample clock. If an output
sample is requested late in the input sample period, then a short
filter delay is required, and if an output sample is requested
early in the input sample period, then a long filter delay is re-
quired. This nonintuitive result arises from the fact that FIR fil-
ters always produce some delay, so that selecting a filter with
shorter delay moves the interpolated sample closer to the newest
input sample.
A short delay corresponds to a large offset into the dense FIR
filter coefficient array, and a long delay corresponds to a small
offset. Note that because the output sample clock can arrive at
any arbitrary time with respect to the input sample clock, the
selection of a polyphase filter with which to convolve the input
sequence occurs on every output sample clock event. Occasion-
ally the FIFO which holds the input sequence in the FIR con-
volver is either not incremented, or incremented by two between
output sample clocks (see periods A and B in Figure 5); this
happens more often when the input and output sample clock
frequencies are dissimilar than when they are close together.
However, in this situation, an appropriate polyphase filter is
selected to process the input signal, and thus an accurate output
sample is computed. Input and output samples are not skipped
or repeated (unless the input FIFO underflows or overflows), as
is the case in some other sample rate converter implementations.
To obtain an accurate conversion, a large number of polyphase
filters are needed. The AD1890/AD1891 SamplePorts use the
equivalent of 65,536 polyphase filters to achieve their profes-
sional audio quality distortion and dynamic range specifications.
Sample Clock Tracking
It should be clear that, in either model, the correct computation
of the ratio between the input sample rate (as determined from
the left/right input clock, LR_I) and the output sample rate (as
determined from the left/right output clock, LR_O) is critical to
the quality of the output data stream. It is straightforward to
compute this ratio if the sample rates are fixed and synchronous;
the challenge is to accurately track dynamically varying and
asynchronous sample rates, as well as to account for jitter.
SERVO CONTROL LOOP
(F
SAMPLE CLOCK RATIO
LR_I
SIN
)
(F
LR_O
SOUT
)
START
ADDRESS
DATA_I
Figure 6. AD1890/AD1891 Functional Block Diagram
BCLK_I
POLYPHASE FILTER
LR_I
COMPRESSION
ROM ADDRESS
SERIAL DATA
GENERATOR
GENERATOR
FREQUENCY
F
INPUT UNIT
SELECTOR
RESPONSE
FIFO READ
ADDRESS
SOUT
WCLK_I
< F
SIN
LR_O
LR_I
COEFFICIENT
POLYPHASE
–10–
FIFO
ROM
GENERATOR
FIFO WRITE
ADDRESS
The AD1890/AD1891 SamplePorts solve this problem by
embedding the ratio computation circuit within a digital servo
control loop, as shown in Figure 6. This control loop includes
special provisions, to allow for the accurate tracking of dynami-
cally changing sample rates. The outputs of the control loop are
the starting read addresses for the input data FIFO and the filter
coefficient ROM. These start addresses are used by the FIFO
and ROM address generators, as shown in Figure 6.
The input data FIFO write address is generated by a counter
which is clocked by the input sample clock (i.e., LR_I). It is very
important that the FIFO read address and the FIFO write ad-
dress do not cross, as this means that the FIFO has either
underflowed or overflowed. This consideration affects the
choice of settling time of the control loop. When a step change
in the sample rate occurs, the relative positions of the read and
write addresses will change while the loop is settling. A fast set-
tling loop will act to keep the FIFO read and write addresses
separated better than a slow settling loop. The AD1890/
AD1891 include a user selectable pin (SETLSLW) to set the
loop settling time that essentially changes the coefficients of the
digital servo control loop filter. The state of the SETLSLW pin
can be changed on-the-fly but is normally set and forgotten.
FIR CONVOLVER
PAST
Figure 5. Input and Output Clock Event Relationship
LR_I
OFFSET INTO DENSE FIR FILTER COEFFICIENT ARRAY
COMPUTE REQUESTED OUTPUT SAMPLE
TO ACCESS REQUIRED POLYPHASE FILTER
REQUIRED FILTER GROUP DELAY TO
ACCUMULATOR
OUTPUT SEQUENCE
A
INPUT SEQUENCE
BCLK_O
SERIAL DATA
OUTPUT UNIT
WCLK_O
B
LR_O
FUTURE
SMALL
OFFSET
SHORT
DELAY
LARGE
OFFSET
LONG
DELAY
DATA_O
AMPLITUDE
AMPLITUDE
REV. 0

Related parts for ad1890jpz