Datasheet

AD5381 Data Sheet
Rev. D | Page 26 of 40
INTERFACES
The AD5381 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 devices use 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, any 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 only powers up fully
when 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 paral-
lel input data pins. The serial interfaces control pins are
SYNC
, DIN, SCLKStandard 3-wire interface pins.
DCENSelects 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 AD5381 in standalone and daisy-chain modes. The 24-bit
data-word format for the serial interface is shown in Table 18.
A
/B This pin selects whether the data write is to the A or B
register when toggle mode is enabled. 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.
A5 to A0 are used to address the input channels.
REG1 and REG0 select the register to which data is written,
as shown in Table 10.
DB11 to .DB0 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 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. In
order for another serial transfer to take place, the counter must
be reset by the falling edge of
SYNC
.
Table 18. 40-Channel, 12-bit DAC Serial Input Register Configuration
MSB LSB
A/B R/W
A5 A4 A3 A2 A1 A0 REG1 REG0 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 X X