REV. B–18–
AD7722
Varying the Master Clock
Although the AD7722 is specified with a master clock of 12.5 MHz,
the AD7722 operates with clock frequencies up to 15 MHz and
as low as 300 kHz. The input sample rate, output word rate, and
frequency response of the digital filter are directly proportional
to the master clock frequency. For example, reducing the clock
frequency to 5 MHz leads to an analog input sample rate of
10 MHz, an output word rate of 78.125 kSPS, a pass-band
frequency of 36.25 kHz, a cutoff frequency of 38.77 kHz, and a
stop-band frequency of 41.875 kHz.
SYSTEM SYNCHRONIZATION AND CONTROL
The AD7722 digital filter contains a sequencer block that
controls the digital interface and all the control logic needed to
operate the digital filter. A 14-bit cycle counter keeps track of
where the filters are in their overall operating cycle and decodes
the digital interface signals to the AD7722. The cycle counter
has a number of important transition points. In particular, the
bottom six bits control the convolution counter that decimates
by 64 to the update rate of the output data register. The counters
top bit is used to provide ample time (8192 CLKIN cycles) to
allow the modulator and digital filter to settle as the AD7722
sequences through its autocalibration process. The counter
increments on the rising edge of the signal at the CLKIN pin and
all of the digital I/O signals are synchronous with this clock. The
upper bit of this counter also controls when DVAL or DRDY
indicates that valid data is available in the output data register
after a SYNC, RESET, CAL, or initial FSI. During normal
operation, the delay of 128 conversions (8192 CLKIN cycles)
should not be confused with the actual settling time (5376
CLKIN cycles) and group delay (2688 CLKIN cycles) of the
digital filter.
SYNC Input
The SYNC input provides a synchronization function for use in
parallel or serial mode. SYNC allows the user to start gathering
samples of the analog input from a known point in time. This
allows a system using multiple AD7722s, operated from a common
master clock, to be synchronized so that each ADC updates its
output register simultaneously. The SYNC input resets the digital
filter without affecting the contents of the calibration registers.
In a system using multiple AD7722s, a common signal to their
sync input will synchronize their operation. On the rising edge
of SYNC, the digital filter sequencer counter is reset to zero.
The filter is held in a reset state until a rising edge on CLKIN
senses SYNC low. A SYNC pulse, one CLKIN cycle long, can
be applied synchronous to the falling edge of CLKIN. This way,
on the next rising edge of CLKIN, SYNC is sensed low, the
filter is taken out of its reset state, and multiple parts start to
gather input samples.
In serial mode, DVAL remains low for 8192 CLKIN cycles to
allow the modulator and digital filter to settle. In parallel mode,
DRDY remains high for an additional 64 CLKIN cycles when
valid data is loaded into the output register. After a SYNC, conver-
sion data is not valid until the digital filter settles (see Figure 7).
DVAL
The DVAL pin, when used in the serial mode, indicates if invalid
data may be present at the ADC output. There are four events that
can cause DVAL to be deasserted, and they have different impli-
cations for how long the results should be considered invalid.
DVAL is set low if there is an overflow condition in the first stage
of the digital filter. The overflow can result from an analog input
signal nearly twice the allowable maximum input span. When an
overflow condition is detected, DVAL is set low for 64 CLKIN
cycles (one output period) and the output data is clipped to
either positive or negative full scale depending on the sign of the
overflow. After the next convolution is completed (64 CLKIN
cycles), if the overflow condition does not exist, DVAL goes
high to indicate that a valid output is available. Otherwise, DVAL
will remain low until the overflow condition is eliminated.
The second stage digital filter can overflow as a result of overflow
from the first stage. The overflow condition is detected when
the second stage filter calculates a conversion result that exceeds
either plus or minus full scale (i.e., below 32,768 or above
32,767 in bipolar mode). When the overflow is detected, DVAL
is set low and the output register is updated with either positive
or negative full scale, depending on the sign of the overload.
After the next convolution is completed, DVAL returns high
if the next conversion result is within the full-scale range.
As with all high order Σ- modulators, large overloads on the
analog input can cause the modulator to go unstable. The
modulator is designed to be stable with input signals as high as
twice full scale within the input bandwidth. Out-of-band signals
as high as the full-scale range will not cause instability. When
instability is detected by internal circuits, DVAL is set low and
the output is clipped to either positive or negative full scale
depending on the polarity of the overload. The modulator is
reset to a stable state, and the digital filter sequencer counter is
reset. DVAL is set low for a minimum of 8192 CLKIN cycles
while the modulator settles out, and the digital filter accumu-
lates new samples. DVAL returns high to indicate that valid
data is available from the serial output register 8192 CLKIN
cycles after the overload condition is removed.
Lastly, DVAL also indicates when valid data is available at the
serial interface after initial power-up or upon completion of a
CAL, RESET, or SYNC sequence.
Reset Input
The AD7722 RESET input controls the digital filter the same
as the SYNC input described previously. Additionally, it resets
the modulator by shorting its integrator capacitors and clears
the on-chip calibration registers so that the conversion results
are not corrected for offset or gain error.
Power-On Reset
A power-on reset function is provided to reset the AD7722
internal logic after initial power-up. On power-up, the offset and
gain calibration registers are cleared.
REV. B
AD7722
–19–
Offset and Gain Calibration
A calibration of offset and gain errors can be performed in both
serial and parallel modes by initiating a calibration cycle. During
this cycle, offset and gain registers in the filter are loaded with
values representing the dc offset of the analog modulator and a
modulator gain correction factor. The correction factors are
determined by an on-chip microcontroller measuring the conver-
sion results for three different input conditions: minus full scale
(FS), plus full scale (+FS), and midscale. In normal operation,
the offset register is subtracted from the digital filter output and
the result is multiplied by the gain correction factor to obtain an
offset and gain corrected final result.
The calibration cycle is controlled by internal logic, and the user
need only initiate the cycle. A calibration is initiated when the
rising edge of CLKIN senses a high level on the CAL input.
There is an uncertainty of up to 64 CLKIN cycles before the
calibration cycle actually begins because the current conversion
must complete before calibration commences. The calibration
values loaded into the registers only apply for the particular
analog input mode (bipolar/unipolar) selected when initiating
the calibration cycle. On changing to a different analog input
mode, a new calibration must be performed.
During the calibration cycle, in unipolar mode, the offset of the
analog modulator is evaluated; the differential inputs to the
modulator are shorted internally to AGND. Once calibration
begins, DVAL goes low and DRDY goes high, indicating there
is invalid data in the output register. After 8192 CLKIN cycles,
when the modulator and digital filter settle, the average of eight
output results (512 CLKIN cycles) is calculated and stored in
the offset register. In unipolar mode, this result also represents
minus full scale, required to calculate the gain correction factor.
The gain correction factor can then be determined by internally
switching the inputs to +FS (V
REF2
). The positive input of the
modulator is switched to the reference voltage and the negative
input to AGND. Again, when the modulator and digital filter
settle, the average of the eight output results is used to calculate
the gain correction factor. DVAL goes high whenever a calcula-
tion is performed on the average of eight conversion results
(512 CLKIN cycles) and then returns low. See Figure 8.
In bipolar mode, an additional measurement is required since
zero scale is not the same as FS. Therefore, calibration in
bipolar mode requires an additional (512 + 8192) CLKIN
cycles. Zero scale is similarly determined by shorting both
analog inputs to AGND. Then the inputs are internally
reconfigured to apply +FS and FS (+V
REF2
/2 and V
REF2
/2)
to determine the gain correction factor.
After the calibration registers have been loaded with new values,
the inputs of the modulator are switched back to the input pins.
However, correct data is available at the interface only after the
modulator and filter have settled to the new input values.
Should the part see a rising edge on the SYNC or RESET pin
during a calibration cycle, the calibration cycle is discontinued,
and a synchronization operation or reset will be performed.
The calibration registers are static. They need to be updated
only if unacceptable drifts in analog offsets or gain are expected.
After power-up, a RESET is not mandatory since power-on reset
circuitry clears the offset and gain registers. Care must be taken
to ensure that the CAL pin is held low during power-up. Before
initiating a calibration routine, ensure that the supplies and
reference input have settled, and that the voltage on the analog
input pins is between the supply voltages.
DATA INTERFACING
The AD7722 offers a choice of serial or parallel data interface
options to meet the requirements of a variety of system configu-
rations. In parallel mode, multiple AD7722s can be easily
configured to share a common data bus. Serial mode is ideal
when it is required to minimize the number of data interface
lines connected to a host processor. In either case, careful
attention to the system configuration is required to realize the
high dynamic range available with the AD7722. Consult the
recommendations in the Power Supply Grounding and Layout
section. The following recommendations for parallel interfacing
also apply for the system design in serial mode.
Parallel Interface
When using the AD7722, place a buffer/latch adjacent to the
converter to isolate the converters data lines from any noise
that may be on the data bus. Even though the AD7722 has
three-state outputs, use of an isolation latch represents good
design practice. This arrangement will inject a small amount of
digital noise on the AD7722 ground plane; these currents
should be quite small and can be minimized by ensuring that
the converter input/output does not drive a large fanout (they
normally cant by design). Minimizing the fanout on the
AD7722s digital port will also keep the converter logic transi-
tions relatively free from ringing and thereby minimize any
potential coupling into the analog port of the converter.
The simplified diagram (Figure 23) shows how the parallel
interface of the AD7722 can be configured to interface with the
system data bus of a microprocessor or a modern microcontroller,
such as the MC68HC16 or 8xC251.
AD7722
ADDR
DECODE
DB0–DB15
DRDY
CS
RD
16 16
74xx16374
OR
74xx16244
OE
D0–D15
RD
INTERRUPT
ADDR
DSP/µC
Figure 23. Parallel Interface Connection
With CS and RD tied permanently low, the data output bits are
always active. When the DRDY output goes high for two CLKIN
cycles, the rising edge of DRDY is used to latch the conversion
data before a new conversion result is loaded into the output
data register. The falling edge of DRDY then sends an appro-
priate interrupt signal for interface control. Alternatively if buffers
are used instead of latches, the falling edge of DRDY provides
the necessary interrupt when a new output word is available
from the AD7722.
REV. B–20–
AD7722
SERIAL INTERFACE
The AD7722s serial data interface port allows easy interfacing
to industry-standard digital signal processors. The AD7722
operates solely in the master mode, providing three serial data
output pins for transfer of the conversion results. The serial data
clock output (SCO), serial data output (SDO), and frame sync
output (FSO) are all synchronous with CLKIN. SCO frequency
is always one-half the CLKIN frequency. FSO is continuously
output at the conversion rate of the ADC (f
CLKIN
/64). The
generalized timing diagrams in Figure 2 show how the AD7722
may be used to transmit its conversion results.
Serial data shifts out of the SDO pin synchronous with SCO. The
FSO is used to frame the output data transmission to an external
device. An output data transmission is 32 SCO cycles in duration.
The serial data shifts out of the SDO pin MSB first, LSB last
for a duration of 16 SCO cycles. For the next 16 SCO cycles,
SDO outputs zeros.
Two control inputs, SFMT and CFMT, select the format for the
serial data transmission. FSO is either a pulse (approximately
one SCO cycle in duration) or a square wave with a period of
32 SCO cycles, depending on the state of the SFMT. The logic
level applied to SFMT also determines if the serial data is valid
on the rising or falling edge of the SCO. The clock format pin,
CFMT, simply switches the phase of SCO for the selected
FSO format.
With a logic low level on SFMT and CFMT set low (Figure 4),
FSO pulses high for one SCO cycle at the beginning of a data
transmission frame. When FSO goes low, the MSB is available
on the SDO pin after the rising edge of SCO and can be latched
on the SCO falling edge.
With a logic high level on SFMT and CFMT set low (Figure 4),
the data on the SDO pin is available after the falling edge of
SCO and can be latched on the SCO rising edge. FSO goes low
at the beginning of a data transmission frame when the MSB is
available and returns high after 16 SCO cycles.
The frame sync input (FSI) can be used if the AD7722 conver-
sion process must be synchronized to an external source. FSI is
an optional signal; if FSI is grounded or tied high frame syncs
are internally generated. Frame sync allows the conversion data
presented to the serial interface to be a filtered and decimated
result derived from a known point in time. FSI can be applied
once after power-up, or it can be a periodic signal, synchronous to
CLKIN, occurring every 64 CLKIN cycles. When FSI is applied
for the first time, or if a low-to-high transition is detected that is not
synchronized to the output word rate, the next 127 conversions
should be considered invalid while the digital filter accumulates
new samples. Figure 4 shows how the frame sync signal resets
the serial output interface and how the AD7722 will begin to
output its serial data transmission frame. A common frame sync
signal can be applied to two or more AD7722s to synchronize
them to a common master clock.
2-Channel Multiplexed Operation
Three additional serial interface control pins (DOE, TSI, and
CFMT) are provided. The connection diagram in Figure 24
shows how they are used to allow the serial data outputs of two
AD7722s to easily share one serial data line. Since a serial data
transmission frame lasts 32 SCO cycles, two AD7722s can share
a single data line by alternating transmission of their 16-bit output
data onto one SDO pin.
CFMT SDO
SFMT SCO
TSI
FSO
FSI DOE
CLKIN
AD7722
MASTER
FSI DOE
CLKIN SDO
CFMT
SCO
SFMT FSO
TSI
AD7722
SLAVE
DV
DD
DV
DD
DGND
FROM
CONTROL
LOGIC
TO HOST
PROCESSOR
Figure 24. Connection for 2-Channel Multiplexed
Operation
The data output enable pin (DOE) controls SDOs output buffer.
When the logic level on DOE matches the state of the TSI pin,
the SDO output buffer drives the serial dataline; otherwise, the
output of the buffer goes high impedance. The serial format pin
(SFMT) is set high to choose the frame sync output format. The
clock format pin (CFMT) is set high so that serial data is made
available on SDO after the rising edge of SCO and can be
latched on the SCO falling edge.
The master device is selected by setting TSI to a logic low and
connecting its FSO to DOE. The slave device is selected with its
TSI pin tied high, and both its FSI and DOE are controlled
from the masters FSO. Since the FSO of the master controls
the DOE input of both the master and slave, one ADCs SDO is
active while the other is high impedance (Figure 25). When the
master transmits its conversion result during the first 16 SCO
cycles of a data transmission frame, the low level on DOE sets
the slaves SDO high impedance. Once the master completes
transmitting its conversion data, its FSO goes high and triggers
the slaves FSI to begin its data transmission frame.
Following power up of the two devices, once the supplies have
settled, a synchronous RESET/SYNC pulse should be issued to
both ADCs to ensure synchronization. After a RESET/SYNC
has been issued, FSI can be applied to the master ADC to
allow continuous synchronization between the processor and
the ADCs. For continuous synchronization, FSI should not be
applied within four CLKIN cycles before an FSO (master) edge.
See Figure 25.
Serial Interfacing to DSPs
In serial mode, the AD7722 can be interfaced directly to several
industry-standard DSPs. In all cases, the AD7722 operates as
the master with the DSP operating as the slave. The AD7722
outputs its own serial clock (SCO) to transmit the digital word on
the SDO pin to a DSP. The DSPs serial interface is synchronized
to the data transmission provided by the FSO signal.
Since the serial data clock from the AD7722 is always one-half
the CLKIN frequency, DSPs that can accept relatively high
serial clock frequencies are required. The ADSP-21xx family of
DSPs can operate with a maximum serial clock of 13.824 MHz;
the DSP56002 allows a maximum serial clock of 13.3 MHz; the
TMS320C5x-57 accepts a maximum serial clock of 10.989 MHz.

AD7722ASZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC CMOS 16-Bit 195 kSPS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet