Data Sheet AD7798/AD7799
Rev. B | Page 19 of 28
0
–20
40
60
–80
100
0
300025002000
1500
1000
500
04856-015
FREQUENCY (Hz)
(dB)
Figure 14. Filter Profile with Update Rate = 242 Hz
0
–10
–20
–30
–40
50
60
0 10000900080007000
600050004000
300020001000
04856-016
FREQUENCY (Hz)
(dB)
Figure 15. Filter Response with Update Rate = 470 Hz
DIGITAL INTERFACE
As previously outlined, the programmable functions of the
AD7798/AD7799 are controlled using a set of on-chip registers.
Data is written to these registers via the serial interface, which
also provides read access to the on-chip registers. All
communication with the part must start with a write to the
communication register. After power-on or reset, the device
expects a write to its communication register. The data written
to this register determines whether the next operation is a read
or write operation and to which register this operation occurs.
Therefore, write access to any register begins with a write
operation to the communication 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 communication register, followed by a read
operation from the selected register.
The serial interface of the AD7798/AD7799 consists of four
signals:
CS
, DIN, SCLK, and DOUT/
RDY
. The DIN line is used
to transfer data into the on-chip registers, and 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, with the
line going low when a new data-word is available in the output
register. It is reset high when a read operation from the data
register is complete. 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 AD7798/AD7799 in systems where several
components are connected to the serial bus.
Figure 3 and Figure 4 show timing diagrams for interfacing to
the AD7798/AD7799, with
CS
being used to decode the part.
Figure 3 shows the timing for a read operation from the
AD7798/AD7799 output shift register, and Figure 4 shows the
timing for a write operation to the input shift register. 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 are complete 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 AD7798/AD7799. The end of the con-
version can be monitored using the
RDY
bit in the status regis-
ter. 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 idles high between data transfers.
The AD7798/AD7799 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
normally occurs after the falling edge of
SCLK in DSPs. The SCLK can continue to run between data
transfers, provided that the timing numbers are obeyed.
The serial interface can be reset by writing a series of 1s on the
DIN input. If a Logic 1 is written to the AD7798/AD7799 line
for at least 32 serial clock cycles, the serial interface is reset.
This ensures that the interface can be reset to a known state if
the interface is lost due to a software error or a glitch in the
system. Reset returns the interface to the state in which it is
expecting a write to the communication register. This opera-
tion resets the contents of all registers to their power-on
values. Following a reset, the user should allow a period of
500 microseconds before addressing the serial interface.
The AD7798/AD7799 can be configured to continuously
convert or to perform a single conversion (See Figure 16
through Figure 18).
AD7798/AD7799 Data Sheet
Rev. B | Page 20 of 28
Single-Conversion Mode
In single-conversion mode, the AD7798/AD7799 is placed in
power-down mode after conversions. When a single conversion
is initiated by setting MD2, MD1, and MD0 to 0, 0, and 1 in the
mode register, the AD7798/AD7799 powers up, performs a
single conversion, and then returns to power-down mode. The
on-chip oscillator requires approximately 1 ms to power up. A
conversion requires a time period of 2 × t
ADC
. DOUT/
RDY
goes
low to indicate the completion of a 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
is high.
Continuous-Conversion Mode
This is the default power-up mode. The AD7798/AD7799
continuously converts, with the
RDY
bit 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 communication
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 reread
this register if required. However, the user must ensure that the
data register is not accessed at the completion of the next
conversion, or the new conversion word is lost.
04856-017
DIN
0x08
0x200A
DATA
SCLK
DOUT/RDY
CS
0x58
Figure 16. Single Conversion
04856-018
DIN
SCLK
DOUT/RDY
CS
0x58
0x58
DATA DATA
Figure 17. Continuous Conversion
Data Sheet AD7798/AD7799
Rev. B | Page 21 of 28
Continuous Read
Rather than write to the communication register to access the
data each time a conversion is complete, the AD7798/AD7799
can be configured so that the conversions are placed on the
DOUT/
RDY
line automatically. By writing 01011100 to the
communication register, the user need only apply the
appropriate number of SCLK cycles to the ADC, and the
16-/24-bit word is automatically placed on the DOUT/
RDY
line
when a conversion is complete. The ADC should be configured
for continuous conversion mode.
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. In addition, the user must ensure that the data-word is
read before the next conversion is complete. If the user does not
read the conversion before the completion of the next conversion,
or if insufficient serial clocks are applied to the AD7798/AD7799
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 01011000
must be written to the communication register while the
DOUT/
RDY
pin is low. While in continuous-read mode, the
ADC monitors activity on the DIN line in case the instruction
to exit the continuous-read mode occurs. 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.
04856-019
DIN
SCLK
DOUT/RDY
CS
0x5C
DATA
DATA DATA
Figure 18. Continuous Read

AD7798BRUZ

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