Datasheet

AD5382 Data Sheet
Rev. C | Page 26 of 40
AD5382 INTERFACES
The AD5382 contains both parallel and serial interfaces.
Furthermore, the serial interface can be programmed to
be either SPI-, DSP-, MICROWIRE-, or I
2
C-compatible. The
SER/
PAR
pin selects parallel and serial interface modes.
In serial mode, the
SPI
/I
2
C pin is used to select DSP, SPI,
MICROWIRE, or I
2
C interface mode.
The device uses an internal FIFO memory to allow high speed
successive writes in parallel interface mode. The user can con-
tinue writing new data to the device while write instructions are
being executed. The
BUSY
signal indicates the current status of
the device, going low while instructions in the FIFO are being
executed. In parallel mode, up to 128 successive instructions
can be written to the FIFO at maximum speed. When the FIFO
is full, further writes to the device are ignored.
To minimize both the power consumption of the device and
the on-chip digital noise, the active interface powers up fully
when only the device is being written to, that is, on the falling
edge of
WR
or the falling edge of
SYNC
.
DSP-, SPI-, MICROWIRE-COMPATIBLE SERIAL
INTERFACES
The serial interface can be operated with a minimum of three
wires in standalone mode or four wires in daisy-chain mode.
Daisy chaining allows many devices to be cascaded together to
increase system channel count. The SER/
PAR
pin must be tied
high and the
SPI
/I
2
C pin (Pin 97) should be tied low to enable
the DSP-, SPI-, MICROWIRE-compatible serial interface. In
serial interface mode, the user does not need to drive the
parallel input data pins. The serial interfaces control pins are as
follows:
SYNC
, DIN, SCLKStandard 3-wire interface pins.
DCEN—Selects standalone mode or daisy-chain mode.
SDOData out pin for daisy-chain mode.
Figure 3 and Figure 5 show timing diagrams for a serial write to
the AD5382 in standalone and daisy-chain modes. The 24-bit
data-word format for the serial interface is shown in Table 18.
A
/B. When toggle mode is enabled, this pin selects whether the
data write is to the A or B register. With toggle disabled, this bit
should be set to 0 to select the A data register.
R/
W
is the read or write control bit.
A4A0 are used to address the input channels.
REG1 and REG0 select the register to which data is written, as
shown in Table 10.
DB13DB0 contain the input data-word.
X is a dont care condition.
Standalone Mode
By connecting the DCEN (daisy-chain enable) pin low, stand-
alone mode is enabled. The serial interface works with both a
continuous and a noncontinuous serial clock. The first falling
edge of
SYNC
starts the write cycle and resets a counter that
counts the number of serial clocks to ensure that the correct
number of bits are shifted into the serial shift register. Any
further edges on
SYNC
except for a falling edge are ignored
until 24 bits are clocked in. Once 24 bits are shifted in, the
SCLK is ignored. For another serial transfer to take place, the
counter must be reset by the falling edge of
SYNC
.
Table 18. 32-Channel, 14-Bit DAC Serial Input Register Configuration
MSB LSB
A
/B R/
W
0 A4 A3 A2 A1 A0 REG1 REG0 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0