Data Sheet AD7787
Rev. A | Page 15 of 20
DIGITAL INTERFACE
As previously outlined, the AD7787’s programmable functions
are controlled using a set of on-chip registers. Data is written to
these registers via the part’s serial interface and read access to
the on-chip registers is also provided by this interface. All
communications with the part must start with a write to the
communications register. After power-on or reset, the device
expects a write to its communications register. The data written
to this register determines whether the next operation is a read
operation or a write operation and also determines to which
register this read or write operation occurs. Therefore, write
access to any of the other registers on the part begins with a
write operation to the communications register followed by a
write to the selected register. A read operation from any other
register (except when continuous read mode is selected) starts
with a write to the communications register followed by a read
operation from the selected register.
The AD7787’s serial interface consists of four signals:
CS
, DIN,
SCLK, and DOUT/
RDY
. The DIN line is used to transfer data
into the on-chip registers while DOUT/
RDY
is used for
accessing data from the on-chip registers. SCLK is the serial
clock input for the device and all data transfers (either on DIN
or DOUT/
RDY
) occur with respect to the SCLK signal.
The DOUT/
RDY
pin operates as a data-ready signal as well as
a DOUT pin. Each time a conversion is available in the output
register, DOUT/
RDY
goes low. DOUT/
RDY
resets high when a
read operation from the data register is completed. It also goes
high prior to the updating of the data register to indicate when
not to read from the device to ensure that a data read is not
attempted while the register is being updated.
CS
is used to
select a device. It can be used to decode the AD7787 in systems
where several components are connected to the serial bus.
Figure 3 and Figure 4 show timing diagrams for interfacing to
the AD7787 with
CS
being used to decode the part. Figure 3
shows the timing for a read operation from the AD7787’s
output shift register, while Figure 4 shows the timing for a write
operation to the input shift register. In all modes, except
continuous read mode, it is possible to read the same word from
the data register several times even though the DOUT/
RDY
line
returns high after the first read operation. However, care must be
taken to ensure that the read operations have been completed
before the next output update occurs. In continuous read mode, the
data register can only be read once.
The serial interface can operate in 3-wire mode by tying
CS
low.
In this case, the SCLK, DIN, and DOUT/
RDY
lines are used to
communicate with the AD7787. The end of the conversion can
be monitored using the
RDY
bit in the status register. This
scheme is suitable for interfacing to microcontrollers. If
CS
is
required as a decoding signal, it can be generated from a port
pin. For microcontroller interfaces, it is recommended that
SCLK idle high between data transfers.
The AD7787 can be operated with
CS
being used as a frame
synchronization signal. This scheme is useful for DSP
interfaces. In this case, the first bit (MSB) is effectively clocked
out by
CS
, because
CS
would normally occur after the falling
edge of SCLK in DSPs. The SCLK can continue to run between
data transfers, provided the timing numbers are obeyed.
The serial interface can be reset by writing a series of 1s to the
DIN input. If a Logic 1 is written to the AD7787 line for at least
32 serial clock cycles, the serial interface is reset. In 3-wire
systems, this ensures that the interface can be reset to a known
state if the interface gets lost due to a software error or some
glitch in the system. Reset returns the interface to the state in
which it is expecting a write to the communications register.
This operation resets the contents of all registers to their power-
on values.
The AD7787 can be configured to continuously convert or to
perform a single conversion (see Figure 13 through Figure 15).
04477-0-007
DIN
SCLK
DOUT/RDY
CS
0x10 0x38
0x82
D
ATA
Figure 13. Single Conversion
AD7787 Data Sheet
Rev. A | Page 16 of 20
Single Conversion Mode
In single conversion mode, the AD7787 is placed in shutdown
mode between conversions. When a single conversion is
initiated by setting MD1 to 1 and MD0 to 0 in the mode
register, the AD7787 powers up, performs a single conversion,
and then returns to shutdown mode. When a single conversion
is initiated, the AD7787’s oscillator requires 1 ms to power up
and settle. The AD7787 then performs a conversion which
requires 2 × t
ADC
. DOUT/
RDY
is high while the conversion is
being performed and goes low to indicate the completion of the
conversion. When the data word has been read from the data
register, DOUT/
RDY
goes high. If
CS
is low, DOUT/
RDY
remains high until another conversion is initiated and
completed. The data register can be read several times, if
required, even when DOUT/
RDY
has gone high.
Continuous Conversion Mode
This is the default power-up mode. The AD7787 will
continuously converts with the
RDY
pin in the status register
going low each time a conversion is complete. If
CS
is low, the
DOUT/
RDY
line also goes low when a conversion is complete.
To read a conversion, the user can write to the communications
register, indicating that the next operation is a read of the data
register. The digital conversion is placed on the DOUT/
RDY
pin as soon as SCLK pulses are applied to the ADC.
DOUT/
RDY
returns high when the conversion is read. The
user can read this register additional times, if required.
However, the user must ensure that the data register is not being
accessed at the completion of the next conversion or the new
conversion word is lost.
04477-0-009
DIN
SCLK
DOUT/RDY
CS
0x38
0x38
DATA DATA
Figure 14. Continuous Conversion
Data Sheet AD7787
Rev. A | Page 17 of 20
Continuous Read Mode
Rather than write to the communications register each time a
conversion is complete to access the data, the AD7787 can be
placed in continuous read mode. By writing 00111100
(Channel AIN1) or 00111101 (Channel AIN2) to the
communications register, the user only needs to apply the
appropriate number of SCLK cycles to the ADC, and the 24-bit
word is automatically placed on the DOUT/
RDY
line when a
conversion is complete.
When DOUT/
RDY
goes low to indicate the end of a
conversion, sufficient SCLK cycles must be applied to the ADC,
and the data conversion is placed on the DOUT/
RDY
line.
When the conversion is read, DOUT/
RDY
returns high until
the next conversion is available. In this mode, the data can only
be read once. Also, the user must ensure that the data-word is
read before the next conversion is complete. If the user has not
read the conversion before the completion of the next
conversion, or if insufficient serial clocks are applied to the
AD7787 to read the word, the serial output register is reset
when the next conversion is complete, and the new conversion
is placed in the output serial register.
To exit the continuous read mode, the instruction 001110XX
must be written to the communications register while the
RDY
pin is low. While in the continuous read mode, the ADC
monitors activity on the DIN line so that it can receive the
instruction to exit the continuous read mode. Additionally, a
reset occurs if 32 consecutive 1s are seen on DIN. Therefore,
DIN should be held low in continuous read mode until an
instruction is written to the device.
04477-0-008
DIN
SCLK
DOUT/RDY
CS
0x3C
DATA DATA DATA
Figure 15. Continuous Read

AD7787BRMZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC Low Pwr 2-Ch 24-Bit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet