AD7721
REV. A
–12–
PARALLEL INTERFACE
Read Operation
The device defaults to parallel mode if CS, RD and WR are not
tied to DGND together. Figure 11 shows a timing diagram for
reading from the AD7721 in the parallel mode. When operating
the device in parallel mode,
CS and RD should be tied to
DGND permanently except when control information is being
written to the AD7721.
DRDY goes high for 2 clock cycles to
indicate that new data is available from the interface. The
AD7721 outputs this data after the falling edge of
DRDY. This
DRDY pin can be used to drive an edge-triggered interrupt of a
microprocessor.
Write Operation
The write operation is used to write data into the control regis-
ter. The outputs of the control register select the analog input
range, allow the part to be put into power-down (standby)
mode, define the function of the DVAL/
SYNC pin, and initiate
the calibration routine. After power-up and after at least 16
clock cycles, the control register must be written to. A cali-
bration must also be performed at least once after power-up to
set the calibration registers. The function of each bit in the
control register is shown in Table I. When writing to the con-
trol register, the
RD pin must be taken high so that the pins D0
to D11 are configured as inputs.
DATA OUT (O)
SCLK (O)
DB0DB10DB11DB12DB13DB14DB15
RFS (I) / DRDY (O)
t
2
t
3
t
4
t
5
t
6
t
8
NOTE: (I) SIGNIFIES AN INPUT; (O) SIGNIFIES AN OUTPUT.
t
1
t
9
t
7
Figure 10. Serial Mode Output Register Read
DRDY (O)
DB0–DB11 (O)
RD
(I)
CS (I)
t
12
t
11
NOTE: (I) SIGNIFIES AN INPUT; (O) SIGNIFIES AN OUTPUT.
t
10
Figure 11. Parallel Mode Output Register Read
NOTE: (I) SIGNIFIES AN INPUT; (O) SIGNIFIES AN OUTPUT.
WR
(I)
VALID DATA
CS
(I)
DB0–DB11 (I)
t
14
t
15
t
13
Figure 12. Write Timing Diagram
AD7721
REV. A
–13–
MICROCOMPUTER/MICROPROCESSOR INTERFACING
The AD7721 has a variety of interfacing options. It offers two
operating modes—serial and parallel.
Serial Interfacing
In serial mode, the AD7721 can be directly interfaced to several
DSPs. In all cases, the AD7721 operates as the master with the
DSP acting as the slave. The AD7721 provides its own serial
clock to clock the digital word from the AD7721 to the DSP.
The serial clock is a buffered version of the master clock CLK.
The frame synchronization signal to the AD7721 and the DSP
is provided by the
DRDY signal.
Because the serial clock from the AD7721 has the same frequency
as the master clock, DSPs that can accept high serial clock fre-
quencies are required. When the AD7721 is being operated
with a 15 MHz clock, Analog Devices’ ADSP-2106x SHARC
®
DSP is suitable as this DSP can accept very high serial clocks.
The 40 MHz version of this DSP can accept a serial clock of
40 MHz maximum. To interface the AD7721 to other DSPs,
the master clock frequency of the AD7721 can be reduced so
that it equals the maximum allowable frequency of the serial
clock for the DSP. This will cause the sampling rate, the output
word rate and the bandwidth of the AD7721 to be reduced by a
proportional amount. The ADSP-21xx family can operate with
a maximum serial clock of 13.824 MHz, the DSP56002 uses a
maximum serial clock of 13.3 MHz while the TMS320C5x-57
accepts a maximum serial clock of 10.989 MHz.
When the AD7721 is being operated with a low master clock
frequency (< 8 MHz), DSPs such as the TMS320C20/C25 and
DSP56000/1 can be used. Figures 13 to 15 show the interfaces
between the AD7721 and several DSPs. In all cases,
CS, RD
and
WR are permanently hardwired to DGND.
AD7721 to ADSP-21xx Interface
Several of the ADSP-21xx family can interface directly to the
AD7721.
DRDY is used as the frame sync signal for both the
ADSP-21xx and the AD7721.
DRDY, which goes high for two
clock cycles when a conversion is complete, can also be used as
an interrupt signal if required. Figure 13 shows the AD7721
interface to the ADSP-21xx. For the ADSP-21xx, the bits in
the serial port control register should be set up as RFSR = 1
(a frame sync is needed for each transfer), SLEN = 15 (16 bit
word lengths), RFSW = 0 (normal framing mode for receive
operations), INVRFS = 0 (active high RFS), IRFS = 0 (external
RFS), and ISCLK = 0 (external serial clock).
AD7721ADSP-21xx
DRDY
WR
RD
CS
DR
RFS
SCLK
SCLK
RFS
SDATA
IRQ
Figure 13. AD7721 to ADSP-21xx Interface
The interface between the AD7721 and the ADSP-2106x
SHARC DSP is the same as shown in Figure 13, but the DSP is
configured as follows: SLEN = 15 (16-bit word transfers),
SENDN = 0 (the MSB of the 16-bit word will be received by
the DSP first), ICLK = 0 (an external serial clock will be used),
RFSR = 0 (a frame sync is required for every word transfer),
IRFS = 0 (the receive frame sync signal is external), CKRE = 0
(the receive data will be latched into the DSP on the falling
clock edge), LAFS = 0 (the DSP begins reading the 16 bit word
after the DSP has identified the frame sync signal rather than
the DSP reading the word at the same instant as the frame sync
signal has been identified), LRFS = 0 (RFS is active high).
AD7721 to DSP56002 Interface
Figure 14 shows the AD7721 to DSP56002 interface. If the
AD7721 is being used at a lower clock frequency (5.128 MHz),
the DSP56000 or DSP56001 can be used. The interface will be
similar for all three DSPs. To interface the DSP56002 to the
AD7721, the DSP56002 is configured as follows: SYN = 1
(synchronous mode), SCD1 = 0 (RFS will be an input),
GCK = 0 (a continuous clock will be used), SCKD = 0 (the
serial clock will be external), WL1 = 1, WL0 = 0 (transfers will
be 16 bits wide), FSL1 = 0, FSL0 = 1 (the frame sync will be
active at the beginning of each transfer).
AD7721
DSP56002
DRDY
WR
RD
CS
SRD
SC1
SCK
SCLK
RFS
SDATA
IRQ
Figure 14. AD7721 to DSP56002 Interface
Alternatively, the DSP56002 can be operated in asynchronous
mode (SYN = 0). In this mode, the serial clock for the Receive
section in inputted to the SC0 pin. This is accomplished by
setting bit SCD0 to 0 (external Rx clock).
AD7721 to TMS320C20/C25/C5x Interface
Figure 15 shows the AD7721 to TMS320C20/C25/C5x inter-
face. For the TMS320C5x, FSR and CLKR are automatically
configured as inputs. The serial port is configured as follows:
FO = 0 (16-bit word transfers), FSM = 1 (a frame sync occurs
for each transfer). Figure 15 shows the interface diagram when
the AD7721 is being interfaced to the TMS320C20 and the
TMS320C25 also but, these DSPs can be used only when the
AD7721 is being used at a lower frequency such as 5 MHz
(C25) or 2.56 MHz (C20).
AD7721
DRDY
WR
RD
CS
SCLK
RFS
SDATA
TMS320C
20/25/5x
DR
FSR
CLKR
INT
0
Figure 15. AD7721 to TMS320C20/25/5x Interface
SHARC is a registered trademark of Analog Devices, Inc.
AD7721
REV. A
–14–
Parallel Interface
In parallel mode, the DRDY signal is still available. This signal
can be used to generate an interrupt in the DSP as
DRDY goes
high for two clock cycles when a conversion is complete. Data
is available from the AD7721 every 32 CLK cycles. The ADC
outputs the 12-bit digital word automatically. Hence, latches are
needed into which the 12-bit parallel word can be transferred.
Because
RD and CS are permanently tied to DGND when the
ADC is performing A-to-D conversions, some further glue logic
is needed to interface the AD7721 to a DSP in parallel mode.
When a digital word is available from the AD7721, it will be
automatically transferred to the latches. The
DRDY signal
informs the DSP that a new word is available to be read. The
DSP then reads the word from the latches. By using the
latches, the microprocessor is free to perform other tasks be-
tween reads from the AD7721.
When using the parallel mode,
CS and RD should be permanently
tied to DGND,
RD being taken high only when a control word
is being written to the AD7721.
CS and RD should not be
pulsed, as is the procedure with other ADCs, as the specifications
for the device will degrade and the part may become unstable.
CS
DSP
RD
WR
INTERRUPT
AD7721
DRDY
WR
RD
CS
1Y1
1Y2
1Y3
2Y1
2Y2
2Y3
2Y4
HC244
1G 2G
1A1
1A2
1A3
1A4
2A1
2A2
2A3
2A4
1Y4
DECODE
DB11
DB10
DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
DB11
DB10
DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
1Y1
1Y3
2A1
2A2
2A3
2A4
HC244
1G 2G
1A1
1A2
1A3
1A4
2Y1
2Y2
2Y3
2Y4
1Y4
1Y2
Figure 16. Interfacing the AD7721 to a Microprocessor in
Parallel Mode
AD7721 to ADSP-21xx Interface
Figure 17 shows the AD7721 to ADSP-21xx interface. DRDY
is used to interrupt the DSP when a conversion is complete and
the HC244 latches contain a new word. The
WR signal from
the DSP is used to drive both the
RD and WR inputs of the
AD7721 since
RD will be tied low at all times except when the
control register of the device is being written to. The
RD signal
of the DSP is used to enable the outputs of the latches so that
the 12 bit word can be read into the DSP. Two 8-bit latches
are used. Twelve of the latches are used to hold the 12-bit
conversion from the AD7721. The remaining four latches are
used to hold the control information being transferred from the
DSP to the AD7721. When a control word is being written to
the AD7721, Bits 4 to 6 and Bits 9 to 10, which are test bits,
need to be loaded with zeros. Therefore, pull-down resistors
are used so that Pins 4 to 6 and 9 to 10 are tied to ground when
the control register is being loaded.
CS
AD7721
DRDY
WR
RD
CS
1Y1
1Y2
1Y3
2Y1
2Y2
2Y3
2Y4
HC244
1G 2G
1A1
1A2
1A3
1A4
2A1
2A2
2A3
2A4
1Y4
1Y1
1Y2
1Y3
2A1
2A2
2A3
2A4
HC244
1G 2G
1A1
1A2
1A3
1A4
2Y1
2Y2
2Y3
2Y4
1Y4
DB11
DB10
DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
RD
WR
ADSP-21xx
DMD11–DMD
DMA13–DMA0
IRQ
DMS
EN
ADDR
DECODE
Figure 17. AD7721 to ADSP-21xx Interface
AD7721 to DSP56002 Interface
Figure 18 shows the AD7721 to DSP56002 interface. The
connections for the DSP56002 are similar to those for the
ADSP-21xx family. The diagram shows the connections for
the DSP56002, but the connections for the DSP56000 and
DSP56001 are similar.
CS
AD7721
DRDY
WR
RD
CS
1Y1
1Y2
1Y3
2Y1
2Y2
2Y3
2Y4
HC244
1G 2G
1A1
1A2
1A3
1A4
2A1
2A2
2A3
2A4
1Y4
1Y1
1Y2
1Y3
2A1
2A2
2A3
2A4
HC244
1G 2G
1A1
1A2
1A3
1A4
2Y1
2Y2
2Y3
2Y4
1Y4
DB11
DB10
DB9
DB8
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
RD
WR
IRQ
A15–A0
D11–D0
DS
DSP56002
EN
ADDR
DECODE
Figure 18. AD7721 to DSP56002 Interface
AD7721 to TMS320C20/C25/C5x Interface
Figure 19 shows the AD7721 to TMS320C20/C25 interface
while Figure 20 shows the AD7721 to TMS320C5x interface.
Again, the interface is similar to that of the ADSP-21xx. However,
the TMS320C20/C25 has a common RD/
W pin. This output
is decoded using the
STRB pin. The TMS320C5x has a RD/W
pin also so external glue logic can be used to decode the RD/
W
pin as done for the C20 and C25. An alternative is to use the
RD and WE pins of the C5x. Using these outputs, WE oper-
ates as the
WR signal while RD functions as the RD signal.
Also, additional glue logic is not required.

AD7721ARZ

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

Products related to this Datasheet