AD73322
–24–
REV. B
OPERATION
Resetting the AD73322
The RESET pin resets all the control registers. All registers are
reset to zero, indicating that the default SCLK rate (DMCLK/
8) and sample rate (DMCLK/2048) are at a minimum to ensure
that slow speed DSP engines can communicate effectively. As
well as resetting the control registers using the RESET pin, the
device can be reset using the RESET bit (CRA:7) in Control
Register A. Both hardware and software resets require four
DMCLK cycles. On reset, DATA/PGM (CRA:0) is set to 0
(default condition) thus enabling Program Mode. The reset
conditions ensure that the device must be programmed to the
correct settings after power-up or reset. Following a reset, the
SDOFS will be asserted 2048 DMCLK cycles after RESET
going high. The data that is output following reset and during
Program Mode is random and contains no valid information
until either data or mixed mode is set.
Power Management
The individual functional blocks of the AD73322 can be en-
abled separately by programming the power control register
CRC. It allows certain sections to be powered down if not re-
quired, which adds to the device’s flexibility in that the user
need not incur the penalty of having to provide power for a
certain section if it is not necessary to their design. The power
control registers provide individual control settings for the major
functional blocks on each codec unit and also a global override
that allows all sections to be powered up by setting the bit.
Using this method the user could, for example, individually
enable a certain section, such as the reference (CRC:5), and
disable all others. The global power-up (CRC:0) can be used to
enable all sections, but if power-down is required using the
global control, the reference will still be enabled, in this case,
because its individual bit is set. Refer to Table XVI for details of
the settings of CRC.
NOTE: As both codec units share a common reference, the
reference control bits (CRC:5-7) in each SPORT are wire ORed
to allow either device to control the reference.
Operating Modes
There are three main modes of operation available on the AD73322;
Program, Data and Mixed Program/Data modes. Two other
operating modes are typically reserved as diagnostic modes:
Digital and SPORT Loop-Back. The device configuration—
register settings—can be changed only in Program and Mixed
Program/Data Modes. In all modes, transfers of information to
or from the device occur in 16-bit packets, therefore the DSP
engine’s SPORT will be programmed for 16-bit transfers.
Program (Control) Mode
In Program Mode, CRA:0 = 0, the user writes to the control
registers to set up the device for desired operation—SPORT
operation, cascade length, power management, input/output
gain, etc. In this mode, the 16-bit information packet sent to the
device by the DSP engine is interpreted as a control word whose
format is shown in Table XIII. In this mode, the user must
address the device to be programmed using the address field of
the control word. This field is read by the device and if it is zero
(000 bin), the device recognizes the word as being addressed to
it. If the address field is not zero, it is then decremented and the
control word is passed out of the device—either to the next device
in a cascade or back to the DSP engine. This 3-bit address
format allows the user to uniquely address any one of up to
eight devices in a cascade; please note that this addressing
scheme is valid only in sending control information to the device
—a different format is used to send DAC data to the device(s).
As the AD73322 is a dual codec, it features two separate device
addresses for programming purposes. If the AD73322 is used in
a standalone configuration connected to a DSP, the two device
addresses correspond to 0 and 1. If, on the other hand, the
AD73322 is configured in a cascade of multiple, dual or single
codecs (AD73322 or AD73311), its device addresses corre-
spond with its hardwired position in the cascade.
Following reset, when the SE pin is enabled, the codec responds
by raising the SDOFS pin to indicate that an output sample
event has occurred. Control words can be written to the device
to coincide with the data being sent out of the SPORT, as
shown in Figure 15, or they can lag the output words by a time
interval that should not exceed the sample interval. After reset,
output frame sync pulses will occur at a slower default sample
rate, which is DMCLK/2048, until Control Register B is
programmed, after which the SDOFS pulses will be set ac-
cording to the contents of DIR0-1. This is to allow slow con-
troller devices to establish communication with the AD73322.
During Program Mode, the data output by the device is random
and should not be interpreted as ADC data.
SAMPLE WORD (DEVICE 2)
SE
SDOFS
SCLK
SDO
SDIFS
SDI
SAMPLE WORD (DEVICE 1)
CONTROL WORD (DEVICE 2) CONTROL WORD (DEVICE 1)
Figure 15. Interface Signal Timing for Control Mode
Operation
Data Mode
Once the device has been configured by programming the cor-
rect settings to the various control registers, the device may exit
Program Mode and enter Data Mode. This is done by program-
ming the DATA/PGM (CRA:0) bit to a 1 and MM (CRA:1) to
0. Once the device is in Data Mode, the 16-bit input data frame
is now interpreted as DAC data rather than a control frame.
This data is therefore loaded directly to the DAC register. In
Data Mode, see Figure 16, as the entire input data frame con-
tains DAC data, the device relies on counting the number of
input frame syncs received at the SDIFS pin. When that num-
ber equals the device count stored in the device count field of
CRA, the device knows that the present data frame being re-
ceived is its own DAC update data. When the device is in nor-
mal Data Mode (i.e., mixed mode disabled), it must receive a
hardware reset to reprogram any of the control register settings.
AD73322
–25–REV. B
In a single AD73322 configuration, each 16-bit data frame sent
from the DSP to the device is interpreted as DAC data, but it is
necessary to send two DAC words per sample period in order to
ensure DAC update. Also, as the device count setting defaults
to 1, it must be set to 2 (001b) to ensure correct update of both
DACs on the AD73322.
Appendix B details the initialization and operation of an AD73322
in normal Data Mode.
SE
SDOFS
SCLK
SDO
SDIFS
SDI
ADC SAMPLE WORD (DEVICE 2) ADC SAMPLE WORD (DEVICE 1)
DAC DATA WORD (DEVICE 2) DAC DATA WORD (DEVICE 1)
Figure 16. Interface Signal Timing for Data Mode
Operation
Mixed Program/Data Mode
This mode allows the user to send control words to the device
along with the DAC data. This permits adaptive control of the
device whereby control of the input/output gains etc., can be
affected by interleaving control words along with the normal
flow of DAC data. The standard data frame remains 16 bits, but
now the MSB is used as a flag bit to indicate whether the re-
maining 15 bits of the frame represent DAC data or control
information. In the case of DAC data, the 15 bits are loaded
with MSB justification and LSB set to 0 to the DAC register.
Mixed mode is enabled by setting the MM bit (CRA:1) to 1 and
the DATA/PGM bit (CRA:0) to 1. In the case where control
setting changes will be required during normal operation, this
mode allows the ability to load both control and data informa-
tion with the slight inconvenience of formatting the data. Note
that the output samples from the ADC will also have the MSB
set to zero to indicate it is a data word.
Appendix C details the initialization and operation of an AD73322
operating in mixed mode. Note that it is not essential to load
the control registers in Program Mode before setting mixed
mode active. It is also possible to initiate mixed mode by pro-
gramming CRA with the first control word and then interleaving
control words with DAC data.
Digital Loop-Back
This mode can be used for diagnostic purposes and allows the
user to feed the ADC samples from the ADC register directly to
the DAC register. This forms a loop-back of the analog input to
the analog output by reconstructing the encoded signal using
the decoder channel. The serial interface will continue to work,
which allows the user to control gain settings, etc. Only when
DLB is enabled with mixed mode operation can the user disable
the DLB, otherwise the device must be reset.
SPORT Loop-Back
This mode allows the user to verify the DSP interfacing and
connection by writing words to the SPORT of the devices and
have them returned back unchanged after a delay of 16 SCLK
cycles. The frame sync and data word that are sent to the device
are returned via the output port. Again, SLB mode can only be
disabled when used in conjunction with mixed mode, otherwise
the device must be reset.
Analog Loop-Back
In Analog Loop-Back mode, the differential DAC output is
connected, via a loop-back switch, to the ADC input (see Figure
17). This mode allows the ADC channel to check functionality
of the DAC channel as the reconstructed output signal can be
monitored using the ADC as a sampler. Analog Loop-Back is
enabled by setting the ALB bit (CRF:7).
NOTE: Analog Loop-Back can only be enabled if the Analog
Gain Tap is powered down (CRC:1 = 0).
INVERTING
OP AMPS
ANALOG
LOOP-BACK
SELECT
INVERT
SINGLE-
ENDED
ENABLE
GAIN
61
+6/–15dB
PGA
CONTINUOUS
TIME
LOW-PASS
FILTER
V
REF
VFBN1
VINN1
VINP1
VFBP1
VOUTP1
VOUTN1
REFCAP
REFOUT
REFERENCE
0/38dB
PGA
AD73322
V
REF
ANALOG GAIN
TAP POWERED
DOWN
Figure 17. Analog Loop-Back Connectivity
AD73322
–26–
REV. B
INTERFACING
The AD73322 can be interfaced to most modern DSP engines
using conventional serial port connections and an extra enable
control line. Both serial input and output data use an accompa-
nying frame synchronization signal that is active high one clock
cycle before the start of the 16-bit word or during the last bit of
the previous word if transmission is continuous. The serial clock
(SCLK) is an output from the codec and is used to define the
serial transfer rate to the DSP’s Tx and Rx ports. Two primary
configurations can be used: the first is shown in Figure 18 where
the DSP’s Tx data, Tx frame sync, Rx data and Rx frame sync
are connected to the codec’s SDI, SDIFS, SDO and SDOFS
respectively. This configuration, referred to as indirectly coupled or
nonframe sync loop-back, has the effect of decoupling the trans-
mission of input data from the receipt of output data. The delay
between receipt of codec output data and transmission of input
data for the codec is determined by the DSP’s software latency.
When programming the DSP serial port for this configuration, it
is necessary to set the Rx FS as an input and the Tx FS as an
output generated by the DSP. This configuration is most useful
when operating in mixed mode, as the DSP has the ability to
decide how many words (either DAC or control) can be sent to
the codecs. This means that full control can be implemented
over the device configuration as well as updating the DAC in a
given sample interval. The second configuration (shown in
Figure 19) has the DSP’s Tx data and Rx data connected to the
codec’s SDI and SDO, respectively, while the DSP’s Tx and Rx
frame syncs are connected to the codec’s SDIFS and SDOFS.
In this configuration, referred to as directly coupled or frame
sync loop-back, the frame sync signals are connected together
and the input data to the codec is forced to be synchronous with
the output data from the codec. The DSP must be programmed
so that both the Tx FS and Rx FS are inputs as the codec
SDOFS will be input to both. This configuration guarantees
that input and output events occur simultaneously and is the
simplest configuration for operation in normal Data Mode.
Note that when programming the DSP in this configuration it is
advisable to preload the Tx register with the first control word
to be sent before the codec is taken out of reset. This ensures
that this word will be transmitted to coincide with the first out-
put word from the device(s).
TFS
DT
SCLK
DR
RFS
ADSP-21xx
DSP
AD73322
CODEC
CODEC1
CODEC2
SDIFS
SDI
SCLK
SDO
SDOFS
Figure 18. Indirectly Coupled or Nonframe Sync Loop-
Back Configuration
Cascade Operation
The AD73322 has been designed to support cascading of
codecs from a single DSP serial port (see Figure 31). Cascaded
operation can support mixes of dual or single channel devices
with the maximum number of codec units being eight (the
AD73322 is equivalent to two codec units). The SPORT inter-
face protocol has been designed so that device addressing is
built into the packet of information sent to the device. This
allows the cascade to be formed with no extra hardware over-
head for control signals or addressing. A cascade can be formed
in either of the two modes previously discussed.
There may be some restrictions in cascade operation due to the
number of devices configured in the cascade and the sampling
rate and serial clock rate chosen. The following relationship
details the restrictions in configuring a codec cascade.
Number of Codecs × Word Size (16) × Sampling Rate <= Serial
Clock Rate
TFS
DT
SCLK
DR
RFS
ADSP-21xx
DSP
AD73322
CODEC
CODEC1
CODEC2
SDIFS
SDI
SCLK
SDO
SDOFS
Figure 19. Directly Coupled or Frame Sync Loop-
Back Configuration
When using the indirectly coupled frame sync configuration in
cascaded operation, it is necessary to be aware of the restrictions
in sending data to all devices in the cascade. Effectively the time
allowed is given by the sampling interval (M/DMCLK—where
M can be one of 256, 512, 1024 or 2048), which is 125 µs for a
sample rate of 8 kHz. In this interval, the DSP must transfer
N × 16 bits of information where N is the number of devices in
the cascade. Each bit will take 1/SCLK and, allowing for any
latency between the receipt of the Rx interrupt and the trans-
mission of the Tx data, the relationship for successful operation
is given by:
M/DMCLK > ((N
×
16/SCLK) + T
INTERRUPT LATENCY
)
The interrupt latency will include the time between the ADC
sampling event and the Rx interrupt being generated in the
DSP—this should be 16 SCLK cycles.
As the AD73322 is configured in cascade mode, each device
must know the number of devices in the cascade because the
data and mixed modes use a method of counting input frame
sync pulses to decide when they should update the DAC register
from the serial input register. Control Register A contains a 3-bit
field (DC0-2) that is programmed by the DSP during the pro-
gramming phase. The default condition is that the field contains
000b, which is equivalent to a single device in cascade (see
Table XXII). However, for cascade operation this field must
contain a binary value that is one less than the number of de-
vices in the cascade, which is 001b for a single AD73322 device
configuration.

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