AD73322
–33–REV. B
Digital Interfacing
The AD73322 is designed to easily interface to most common
DSPs. The SCLK, SDO, SDOFS, SDI and SDIFS must be
connected to the DSP’s Serial Clock, Receive Data, Receive
Data Frame Sync, Transmit Data and Transmit Data Frame
Sync pins respectively. The SE pin may be controlled from a
parallel output pin or flag pin such as FL0-2 on the ADSP-21xx
(or XF on the TMS320C5x) or, where SPORT powerdown is
not required, it can be permanently strapped high using a suit-
able pull-up resistor. The RESET pin may be connected to the
system hardware reset structure or it may also be controlled
using a dedicated control line. In the event of tying it to the
global system reset, it is advisable to operate the device in mixed
mode, which allows a software reset, otherwise there is no
convenient way of resetting the device. Figures 38 and 39
show typical connections to an ADSP-218x and TMS320C5x
respectively.
TFS
DT
SCLK
DR
RFS
ADSP-218x
DSP
AD73322
CODEC
SDIFS
SDI
SCLK
SDO
SDOFS
FL0
FL1
RESET
SE
Figure 38. AD73322 Connected to ADSP-218x
FSX
DT
CLKX
DR
FSR
TMS320C5x
DSP
AD73322
CODEC
SDIFS
SDI
SCLK
SDO
SDOFS
XF
RESET
SE
CLKR
Figure 39. AD73322 Connected to TMS320C5x
Cascade Operation
Where it is required to configure a cascade of up to eight codecs
(4 AD73322 dual codecs), it is necessary to ensure that the
timing of the SE and RESET signals is synchronized at each
device in the cascade. A simple D type flip flop is sufficient to
sync each signal to the master clock MCLK, as in Figure 40.
1/2
74HC74
CLK
DQ
DSP CONTROL
TO SE
MCLK
SE SIGNAL SYNCHRONIZED
TO MCLK
1/2
74HC74
CLK
DQ
DSP CONTROL
TO RESET
MCLK
RESET SIGNAL SYNCHRONIZED
TO MCLK
Figure 40. SE and
RESET
Sync Circuit for Cascaded
Operation
Connection of a cascade of devices to a DSP, as shown in Fig-
ure 41, is no more complicated than connecting a single device.
Instead of connecting the SDO and SDOFS to the DSP’s Rx
port, these are now daisy-chained to the SDI and SDIFS of the
next device in the cascade. The SDO and SDOFS of the final
device in the cascade are connected to the DSP’s Rx port to
complete the cascade. SE and RESET on all devices are fed
from the signals that were synchronized with the MCLK using
the circuit as described above. The SCLK from only one device
need be connected to the DSP’s SCLK input(s) as all devices
will be running at the same SCLK frequency and phase.
TFS
DT
DR
RFS
AD73322
CODEC
SDIFS
SDI
SCLK
SDO
SDOFS
SCLK
DEVICE 1
MCLK
SE
RESET
AD73322
CODEC
SDIFS
SDI
SCLK
SDO
SDOFS
DEVICE 2
MCLK
SE
RESET
74HC74
Q1
Q2
D1
D2
FL0 FL1
ADSP-218x
DSP
Figure 41. Connection of Two AD73322s Cascaded to
ADSP-218x
AD73322
–34–
REV. B
Grounding and Layout
Since the analog inputs to the AD73322 are differential, most of
the voltages in the analog modulator are common-mode volt-
ages. The excellent common-mode rejection of the part will
remove common-mode noise on these inputs. The analog and
digital supplies of the AD73322 are independent and separately
pinned out to minimize coupling between analog and digital
sections of the device. The digital filters on the encoder section
will provide rejection of broadband noise on the power supplies,
except at integer multiples of the modulator sampling frequency.
The digital filters also remove noise from the analog inputs
provided the noise source does not saturate the analog modula-
tor. However, because the resolution of the AD73322’s ADC is
high, and the noise levels from the AD73322 are so low, care
must be taken with regard to grounding and layout.
The printed circuit board that houses the AD73322 should be
designed so the analog and digital sections are separated and
confined to certain sections of the board. The AD73322 pin
configuration offers a major advantage in that its analog and
digital interfaces are connected on opposite sides of the package.
This facilitates the use of ground planes that can be easily sepa-
rated, as shown in Figure 42. A minimum etch technique is
generally best for ground planes as it gives the best shielding.
Digital and analog ground planes should be joined in only one
place. If this connection is close to the device, it is recommended
to use a ferrite bead inductor as shown in Figure 42.
DIGITAL GROUND
ANALOG GROUND
Figure 42. Ground Plane Layout
Avoid running digital lines under the device for they will couple
noise onto the die. The analog ground plane should be allowed
to run under the AD73322 to avoid noise coupling. The power
supply lines to the AD73322 should use as large a trace as pos-
sible to provide low impedance paths and reduce the effects of
glitches on the power supply lines. Fast switching signals such as
clocks should be shielded with digital ground to avoid radiating
noise to other sections of the board, and clock signals should
never be run near the analog inputs. Traces on opposite sides of
the board should run at right angles to each other. This will
reduce the effects of feedthrough through the board. A microstrip
technique is by far the best but is not always possible with a
double-sided board. In this technique, the component side of
the board is dedicated to ground planes while signals are placed
on the other side.
Good decoupling is important when using high speed devices.
On the AD73322 both the reference (REFCAP) and supplies
need to be decoupled. It is recommended that the decoupling
capacitors used on both REFCAP and the supplies, be placed as
close as possible to their respective pins to ensure high perfor-
mance from the device. All analog and digital supplies should be
decoupled to AGND and DGND respectively, with 0.1 µF
ceramic capacitors in parallel with 10 µF tantalum capacitors.
In systems where a common supply voltage is used to drive both
the AVDD and DVDD of the AD73322, it is recommended that
the system’s AVDD supply be used. This supply should have the
recommended analog supply decoupling between the AVDD
pins of the AD73322 and AGND and the recommended digital
supply decoupling capacitors between the DVDD pin and DGND.
DSP PROGRAMMING CONSIDERATIONS
This section discusses some aspects of how the serial port of the
DSP should be configured and the implications of whether Rx
and Tx interrupts should be enabled.
DSP SPORT Configuration
Following are the key settings of the DSP SPORT required for
the successful operation with the AD73322:
Configure for External SCLK.
Serial Word Length = 16 bits.
Transmit and Receive Frame Syncs required with every word.
Receive Frame Sync is an input to the DSP.
Transmit Frame Sync is an:
Input—in Frame Sync Loop-Back Mode
Output—in Nonframe Sync Loop-Back Mode.
Frame Syncs occur one SCLK cycle before the MSB of the
serial word.
Frame Syncs are active high.
DSP SPORT Interrupts
If SPORT interrupts are enabled, it is important to note that the
active signals on the frame sync pins do not necessarily corre-
spond with the positions in time of where SPORT interrupts are
generated.
On ADSP-21xx processors, it is necessary to enable SPORT
interrupts and use Interrupt Service Routines (ISRs) to handle
Tx/Rx activity, while on the TMS320CSx processors it is pos-
sible to poll the status of the Rx and Tx registers, which means
that Rx/Tx activity can be monitored using a single ISR that
would ideally be the Tx ISR as the Tx interrupt will typically
occur before the Rx ISR.
AD73322
–35–REV. B
DSP SOFTWARE CONSIDERATIONS WHEN
INTERFACING TO THE AD73322
It is important when choosing the operating mode and hardware
configuration of the AD73322 to be aware of their implications
for DSP software operation. The user has the flexibility of
choosing from either FSLB or nonFSLB when deciding on DSP
to AFE connectivity. There is also a choice to be made between
using autobuffering of input and output samples or simply
choosing to accept them as individual interrupts. As most mod-
ern DSP engines support these modes, this appendix will at-
tempt to discuss these topics in a generic DSP sense.
Operating Mode
The AD73322 supports two basic operating modes: Frame Sync
Loop Back (FSLB) and nonFSLB (See Interfacing section). As
described previously, FSLB has some limitations when used in
Mixed Mode but is very suitable for use with the autobuffering
feature that is offered on many modern DSPs. Autobuffering
allows the user to specify the number of input or output words
(samples) that are transferred before a specific Tx or Rx SPORT
interrupt is generated. Given that the AD73322 outputs two
sample words per sample period, it is possible using autobuffer-
ing to have the DSP’s SPORT generate a single interrupt on
receipt of the second of the two sample words. Additionally,
both samples could be stored in a data buffer within the data
memory store. This technique has the advantage of reducing the
number of both Tx and Rx SPORT interrupts to a single one at
each sample interval. The user also knows where each sample is
stored. The alternative is to handle a larger number of SPORT
interrupts (twice as many in the case of a single AD73322) while
also having some status flags to indicate where each new sample
comes from (or is destined for).
Mixed-Mode Operation
To take full advantage of mixed-mode operation, it is necessary
to configure the DSP/Codec interface in nonFSLB and to dis-
able autobuffering. This allows a variable numbers of words to
be sent to the AD73322 in each sample period—the extra words
being control words which are typically used to update gain
settings in adaptive control applications. The recommended
sequence for updating control registers in mixed-mode is to
send the control word(s) first before the DAC update word.
It is possible to use mixed-mode operation when configured in
FSLB, but it is necessary to replace the DAC update with a
control word write in each sample period which may cause some
discontinuity in the output signal due to a sample point being
missed and the previous sample being repeated. This however
may be acceptable in some cases as the effect may be masked by
gain changes, etc.
Interrupts
The AD73322 transfers and receives information over the serial
connection from the DSP’s SPORT. This occurs following reset
—during the initialization phase—and in both data-mode and
mixed-mode. Each transfer of data to or from the DSP can
cause a SPORT interrupt to occur. However even in FSLB
configuration where serial transfers in and out of the DSP are
synchronous, it is important to note that Tx and Rx interrupts
do not occur at the same time due to the way that Tx and Rx
interrupts are generated internally within the DSP’s SPORT.
This is especially important in time critical control loop applica-
tions where it may be necessary to use Rx interrupts only, as the
relative positioning of the Tx interrupts relative to the Rx inter-
rupts in a single sample interval are not suitable for quick up-
date of new DAC positions.
Initialization
Following reset, the AD73322 is in its default condition which
ensures that the device is in Control Mode and must be pro-
grammed or initialized from the DSP to start conversions. As
communications between AD73322 and the DSP are interrupt
driven, it is usually not practical to embed the initialization
codes into the body of the initialization routine. It is more prac-
tical to put the sequence of initialization codes in a data (or
program) memory buffer and to access this buffer with a pointer
that is updated on each interrupt. If a circular buffer is used, it
allows the interrupt routine to check when the circular buffer
pointer has wrapped around—at which point the initialization
sequence is complete.
In FSLB configurations, a single control word per codec per
sample period is sent to the AD73322 whereas in nonFSLB, it is
possible to initialize the device in a single sample period provide
the SCLK rate is programmed to a high rate. It is also possible
to use autobuffering in which case an interrupt is generated
when the entire initialization sequence has been sent to the
AD73322.
Running the AD73322 with ADCs or DACs in Power-Down
The programmability of the AD73322 allows the user flexibility
in choosing what sections of the AD73322 need be powered up.
This allows better matching of the power consumption to the
application requirements as the AD73322 offers two ADCs and
two DACs in any combination. The AD73322 always interfaces
to the DSP in a standard way regardless of what ADC or DAC
sections are enabled or disabled. Therefore the DSP will expect
to receive two ADC samples per sample period and to transmit
two DAC samples per sample period. If a particular ADC is
disabled (in power-down) then its sample value will be invalid.
Likewise a sample sent to a DAC which is disabled will have no
effect.
There are two distinct phases of operation of the AD73322:
initialization of the device via each codec section’s control regis-
ters, and operation of the converter sections of each codec. The
initialization phase involves programming the control registers
of the AD73322 to ensure the required operating characteristics
such as sampling rate, serial clock rate, I/O gain, etc. There are
several ways in which the DSP can be programmed to initialize
the AD73322. These range from hard-coding a sequence of
DSP SPORT Tx register writes with constants used for the
initialization words, to putting the initialization sequence in a
circular data buffer and using an autobuffered transmit sequence.
Hard-coding involves creating a sequence of writes to the DSP’s
SPORT Tx buffer which are separated by loops or instructions
that idle and wait for the next Tx interrupt to occur as shown in
the code below.
ax0 = b#1000100100000100;
tx0 = ax0;
idle; {wait for tx register to send current word}

AD73322LARUZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog Front End - AFE Dual-Ch 3V Front-End Processor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet