AD7911/AD7921
Rev. A | Page 22 of 28
MICROPROCESSOR INTERFACING
The serial interface on the AD7911/AD7921 allows the parts to
be directly connected to a range of microprocessors. This
section explains how to interface the AD7911/AD7921 with
some of the more common microcontroller and DSP serial
interface protocols.
AD7911/AD7921 to TMS320C541 Interface
The serial interface on the TMS320C541 uses a continuous
serial clock and frame synchronization signals to synchronize
the data transfer operations with peripheral devices like the
AD7911/AD7921. The
CS
input allows easy interfacing between
the TMS320C541 and the AD7911/AD7921 without any glue
logic required. The serial port of the TMS320C541 is set up to
operate in burst mode (FSM = 1 in the serial port control
register, SPC) with the internal serial clock CLKX (MCM = 1 in
the SPC register) and the internal frame signal (TXM = 1 in the
SPC register); therefore, both pins are configured as outputs.
For the AD7921, the word length should be set to 16 bits (FO =
0 in the SPC register). This DSP allows frames with a word
length of 16 bits or 8 bits only. In the AD7911, therefore, where
14 bits are required, the FO bit should be set up to 16 bits, and
16 SCLKs are needed. For the AD7911, two trailing zeros are
clocked out in the last two clock cycles.
The values in the SPC register are as follows:
FO = 0
FSM = 1
MCM = 1
TXM = 1
To implement the power-down mode on the AD7911/AD7921,
the format bit, FO, can be set to 1, which sets the word length to
8 bits.
The connection diagram is shown in Figure 32. Note that, for
signal processing applications, the frame synchronization signal
from the TMS320C541 must provide equidistant sampling.
AD7911/
AD7921*
TMS320C541*
CLKX
DR
FSX
FSR
SCLK
DOUT
CS
CLKR
DX
DIN
04350-0-031
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 32. Interfacing to the TMS320C541
AD7911/AD7921 to ADSP-218x
The ADSP-218x family of DSPs are interfaced directly to the
AD7911/AD7921 without any glue logic required. The SPORT
control register should be set up as follows:
TFSW = RFSW = 1, alternate framing
INVRFS = INVTFS = 1, active low frame signal
DTYPE = 00, right-justify data
ISCLK = 1, internal serial clock
TFSR = RFSR = 1, frame every word
IRFS = 0, set up RFS as an input
ITFS = 1, set up TFS as an output
SLEN = 1111, 16 bits for the AD7921
SLEN = 1101, 14 bits for the AD7911
To implement the power-down mode, SLEN should be set to
0111 to issue an 8-bit SCLK burst. The connection diagram is
shown in Figure 33. The ADSP-218x has the TFS and RFS of the
SPORT tied together, with TFS set as an output and RFS set as
an input. The DSP operates in alternate framing mode and the
SPORT control register is set up as described previously. The
frame synchronization signal generated on the TFS is tied to
CS
and, as with all signal processing applications, equidistant
sampling is necessary. However, in this example, the timer
interrupt is used to control the sampling rate of the ADC and,
under certain conditions, equidistant sampling might not be
achieved.
AD7911/
AD7921*
ADSP-218x*
SCLK
RFS
TFS
SCLK
CS
DR
DOUT
DT
DIN
04350-0-032
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 33. Interfacing to the ADSP-218x
The timer registers are loaded with a value that provides an
interrupt at the required sample interval. When an interrupt is
received, a value is transmitted with TFS/DT (ADC control
word). The TFS is used to control the RFS and, therefore, the
reading of data. The frequency of the serial clock is set in the
SCLKDIV register. When the instruction to transmit with TFS
is given, that is, TX0 = AX0, the state of the SCLK is checked.
The DSP waits until the SCLK has gone high, low, and high
again before transmission starts. If the timer and SCLK values
are chosen such that the instruction to transmit occurs on or
near the rising edge of SCLK, the data might be transmitted, or
it might wait until the next clock edge.
AD7911/AD7921
Rev. A | Page 23 of 28
For example, the ADSP-2189 has a master clock frequency of
40 MHz. If the SCLKDIV register is loaded with the value of 3,
then an SCLK of 5 MHz is obtained, and eight master clock
periods elapse for every one SCLK period. Depending on the
throughput rate selected, if the timer register is loaded with the
value 803 (803 + 1 = 804), then 100.5 SCLK occur between
interrupts and subsequently between transmit instructions. This
situation results in nonequidistant sampling, because the
transmit instruction occurs on a SCLK edge. If the number of
SCLKs between interrupts is a whole integer figure of N, then
equidistant sampling is implemented by the DSP.
AD7911/AD7921 to DSP563xx Interface
The connection diagram in Figure 34 shows how the AD7911/
AD7921 can be connected to the SSI (synchronous serial
interface) of the DSP563xx family of DSPs from Motorola. The
SSI is operated in synchronous and normal mode (SYN = 1 and
MOD = 0 in the Control Register B, CRB) with internally
generated word frame sync for both Tx and Rx (Bits FSL1 = 0
and FSL0 = 0 in the CRB). Set the word length in the Control
Register A (CRA) to 16 by setting Bits WL2 = 0, WL1 = 1, and
WL0 = 0 for the AD7921. This DSP does not offer the option
for a 14-bit word length, so the AD7911 word length is set up to
16 bits like the AD7921. For the AD7911, the conversion
process uses 16 SCLK cycles, with the last two clock periods
clocking out two trailing zeros to fill the 16-bit word.
To implement the power-down mode on the AD7911/AD7921,
the word length can be changed to 8 bits by setting Bits
WL2 = 0, WL1 = 0, and WL0 = 0 in CRA. The FSP bit in the
CRB register can be set to 1, which means that the frame goes
low and a conversion starts. Likewise, by means of the Bits
SCD2, SCKD, and SHFD in the CRB register, the Pin SC2 (the
frame sync signal) and SCK in the serial port are configured as
outputs, and the MSB is shifted first.
The values are as follows:
MOD = 0
SYN = 1
WL2, WL1, WL0 depend on the word length
FSL1 = 0, FSL0 = 0
FSP = 1, negative frame sync
SCD2 = 1
SCKD = 1
SHFD = 0
Note that, for signal processing applications, the frame
synchronization signal from the DSP563xx must provide
equidistant sampling.
AD7911/
AD7921*
DSP563xx*
SCK
SCLK
SRD
DOUT
STD
DIN
SC2
CS
04350-0-033
*ADDITIONAL PINS OMITTED FOR CLARITY
Figure 34. Interfacing to the DSP563xx
AD7911/AD7921
Rev. A | Page 24 of 28
APPLICATION HINTS
GROUNDING AND LAYOUT
The printed circuit board that houses the AD7911/AD7921
should be designed such that the analog and digital sections are
separated and confined to certain areas of the board. This
facilitates the use of ground planes that can be separated easily.
A minimum etch technique is generally best for ground planes,
because it gives the best shielding. Digital and analog ground
planes should be joined at only one place. If the AD7911/
AD7921 is in a system where multiple devices require an
AGND-to-DGND connection, the connection should still be
made at one point only, a star ground point that should be
established as close as possible to the AD7911/AD7921.
Avoid running digital lines under the device, because these
couple noise onto the die. The analog ground plane should be
allowed to run under the AD7911/AD7921 to avoid noise
coupling. The power supply lines to the AD7911/AD7921
should use as large a trace as possible to provide low impedance
paths and reduce the effects of glitches on the power supply
line. Fast-switching signals like 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. Avoid crossover of digital and analog signals. Traces on
opposite sides of the board should run at right angles to each
other to 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 solder side.
Good decoupling is also very important. The analog supply
should be decoupled with 10 μF tantalum in parallel with 0.1 μF
capacitors to AGND. To achieve the best performance from
these decoupling components, the user should endeavor to keep
the distance between the decoupling capacitor and the V
DD
and
GND pins to a minimum with short track lengths connecting
the respective pins.

AD7921ARMZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC 2CH 2.35-5.25V 250 kSPS 12-Bit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union