AD5371
Rev. B | Page 21 of 28
TOGGLE MODE
The AD5371 has two X2 registers per channel, X2A and X2B,
that can be used to switch the DAC output between two levels
with ease. This approach greatly reduces the overhead required
by a microprocessor, which would otherwise need to write to
each channel individually. When the user writes to the X1A,
X1B, M, or C register, the calculation engine takes a certain
amount of time to calculate the appropriate X2A or X2B value.
If an application, such as a data generator, requires that the
DAC output switch between two levels only, any method that
reduces the amount of calculation time necessary is advantageous.
For the data generator example, the user needs only to set the
high and low levels for each channel once by writing to the X1A
and X1B registers. The values of X2A and X2B are calculated and
stored in their respective registers. The calculation delay, therefore,
happens only during the setup phase, that is, when programming
the initial values. To toggle a DAC output between the two levels,
it is only required to write to the relevant A/B select register to
set the MUX2 register bit. Furthermore, because there are eight
MUX2 control bits per register, it is possible to update eight
channels with a single write.
Table 10 shows the bits that corre-
spond to each DAC output.
Table 10. DACs Selected by A/B Select Registers
Bits
1
A/B Select
Register
F7 F6 F5 F4 F3 F2 F1 F0
0 VOUT7 VOUT6 VOUT5 VOUT4 VOUT3 VOUT2 VOUT1 VOUT0
1 VOUT15 VOUT14 VOUT13 VOUT12 VOUT11 VOUT10 VOUT9 VOUT8
2 VOUT23 VOUT22 VOUT21 VOUT20 VOUT19 VOUT18 VOUT17 VOUT16
3 VOUT31 VOUT30 VOUT29 VOUT28 VOUT27 VOUT26 VOUT25 VOUT24
4 VOUT39 VOUT38 VOUT37 VOUT36 VOUT35 VOUT34 VOUT33 VOUT32
1
If the bit is set to 0, Register X2A is selected. If the bit is set to 1, Register X2B is selected.
AD5371
Rev. B | Page 22 of 28
SERIAL INTERFACE
The AD5371 contains two high speed serial interfaces: an SPI-
compatible interface operating at clock frequencies up to 50 MHz
(20 MHz for read operations) and an LVDS interface. To minimize
both the power consumption of the device and the on-chip digital
noise, the interface powers up fully only when the device is being
written to, that is, on the falling edge of
SYNC
.
SPI INTERFACE
The serial interface is 2.5 V LVTTL-compatible when operating
from a 2.5 V to 3.6 V DV
CC
supply. The SPI interface is selected
when the
SPI
/LVDS pin is held low. It is controlled by four pins,
as described in
Table 11.
Table 11. Pins That Control the SPI Interface
Pin Description
SYNC
Frame synchronization input
SDI Serial data input pin
SCLK Clocks data in and out of the device
SDO Serial data output pin for data readback
When the SPI mode is used, the SYNC,
SDI
, and
SCLK
pins
should be connected to DGND either directly or by using pull-
down resistors.
LVDS INTERFACE
The LVDS interface uses the same input pins, with the same
designations, as the SPI interface; however, SDO is not used. In
addition, three other pins are provided for the complementary
signals needed for differential operation, as described in
Table 12.
Table 12. Pins That Control the LVDS Interface
Pin Description
SYNC Differential frame synchronization signal
SYNC Differential frame synchronization signal
(complement)
SDI Differential serial data input
SDI
Differential serial data input (complement)
SCLK Differential serial clock input
SCLK
Differential serial clock input (complement)
SPI WRITE MODE
The AD5371 allows writing of data via the serial interface to
every register directly accessible to the serial interface, that is,
all registers except the X2A, X2B, and DAC registers. The X2A
and X2B registers are updated when the user writes to the X1A,
X1B, M, or C register, and the DAC data registers are updated
by
LDAC
.
The serial word (see
Table 13) is 24 bits long: 14 of these bits are
data bits; six bits are address bits; two bits are mode bits that
determine what is done with the data; and two bits are reserved.
The serial interface works with both a continuous and a burst
(gated) serial clock. Serial data applied to SDI is clocked into
the AD5371 by clock pulses applied to SCLK. The first falling
edge of
SYNC
starts the write cycle. At least 24 falling clock edges
must be applied to SCLK to clock in 24 bits of data before
SYNC
is taken high again. If
SYNC
is taken high before the 24
th
falling
clock edge, the write operation is aborted.
If a continuous clock is used,
SYNC
must be taken high before
the 25
th
falling clock edge. This inhibits the clock within the
AD5371. If more than 24 falling clock edges are applied before
SYNC
is taken high again, the input data becomes corrupted. If
an externally gated clock of exactly 24 pulses is used,
SYNC
can
be taken high any time after the 24
th
falling clock edge.
The input register addressed is updated on the rising edge of
SYNC
. For another serial transfer to take place,
SYNC
must be
taken low again.
Table 13. Serial Word Bit Assignment
I23 I22 I21 I20 I19 I18 I17 I16 I15 I14 I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1
1
I0
1
M1 M0 A5 A4 A3 A2 A1 A0 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 0
1
Bit I1 and Bit I0 are reserved for future use and should be set to 0 when writing the serial word. These bits read back as 0.
AD5371
Rev. B | Page 23 of 28
SPI READBACK MODE
The AD5371 allows data readback via the serial interface from
every register directly accessible to the serial interface, that is,
all registers except the X2A, X2B, and DAC data registers. To
read back a register, it is first necessary to tell the AD5371
which register is to be read. This is achieved by writing a word
whose first two bits are the Special Function Code 00 to the
device. The remaining bits then determine which register is to
be read back.
If a readback command is written to a special function register,
data from the selected register is clocked out of the SDO pin
during the next SPI operation. The SDO pin is normally three-
stated but becomes driven as soon as a read command is issued.
The pin remains driven until the register data is clocked out.
See
Figure 5 for the read timing diagram. Note that due to the
timing requirements of t
22
(25 ns), the maximum speed of the
SPI interface during a read operation should not exceed 20 MHz.
LVDS OPERATION
The LVDS interface operates as follows. Note that, because the
LVDS signals are differential, when a signal goes high, its
complementary signal goes low, and vice versa.
1. The
SYNC
signal frames the data. SCLK is initially high.
2. After
SYNC
goes high and the
SYNC
-to-SCLK setup time
has elapsed, SCLK can start to clock in the data.
3. Data is clocked into the AD5371 on the high-to-low
transition of SCLK and must be stable at this time (observe
setup and hold time specifications).
4.
SYNC
can then be taken low after the SCLK-to-
SYNC
hold
time to latch the data.
The same comments about burst and continuous clocks for the
SPI interface apply to the LVDS interface. However, readback is
not available when using the LVDS interface.
REGISTER UPDATE RATES
The value of the X2A register or the X2B register is calculated
each time the user writes new data to the corresponding X1, C, or
M register. The calculation is performed by a three-stage process.
The first two stages take approximately 600 ns each, and the
third stage takes approximately 300 ns. When the write to the
X1, C, or M register is complete, the calculation process begins.
If the write operation involves the update of a single DAC channel,
the user is free to write to another register, provided that the
write operation does not finish until the first-stage calculation is
complete, that is, 600 ns after the completion of the first write
operation. If a group of channels is being updated by a single
write operation, the first-stage calculation is repeated for each
channel, taking 600 ns per channel. In this case, the user should
not complete the next write operation until this time has elapsed.
CHANNEL ADDRESSING AND SPECIAL MODES
If the mode bits are not 00, the data-word D13 to D0 is written
to the device. Address Bit A5 to Address Bit A0 determine
which channels are written to, and the mode bits determine to
which register (X1A, X1B, C, or M) the data is written, as shown in
Table 14 and Table 15. Data is to be written to the X1A register
when the
A
/B bit in the control register is 0, or to the X1B
register when the
A
/B bit is 1.
Table 14. Mode Bits
M1 M0 Action
1 1 Write to DAC input data (X) register
1 0 Write to DAC offset (C) register
0 1 Write to DAC gain (M) register
0 0
Special function, used in combination
with other bits of the data-word
The AD5371 has very flexible addressing that allows the writing
of data to a single channel, all channels in a group, the same
channel in Group 0 to Group 4, the same channel in Group 1 to
Group 4, or all channels in the device (see
Table 15).

AD5371BBCZ-REEL

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Digital to Analog Converters - DAC 40-CH 14-bit Serial bipolar IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union