AD7898
–12– REV. A
CS
SCLK
1
56
15
SDATA
FOUR LEADING ZEROS
THREE-STATE
t
4
2
34
16
t
5
t
3
t
QUIET
t
CONVERT
t
2
THREE-STATE
DB11 DB10
DB9 DB0
t
6
t
7
t
8
14
ZERO ZERO ZERO Z
Figure 8. Serial Interface Timing Diagram Mode 1
Mode 1 Operation
The timing diagram in Figure 8 shows the AD7898 operating in
Mode 1. The serial clock provides the conversion clock and also
controls the transfer of information from the AD7898 during
conversion.
CS initiates the data transfer and conversion process. The fall-
ing edge of CS puts the track-and-hold into hold mode, takes
the bus out of three-state and the analog input is sampled at
this point. The conversion is also initiated at this point and will
require 16 SCLK cycles to complete. On the 14th SCLK falling
edge the track-and-hold will go back into track. On the 16th
SCLK falling edge the SDATA line will go back into three-
state. If the rising edge of CS occurs before 16 SCLKs have
elapsed then the conversion will be terminated and the SDATA
line will go back into three-state, otherwise SDATA returns to
three-state on the 16th SCLK falling edge as shown in Figure 8.
Sixteen serial clock cycles are required to perform the conver-
sion process and to access data from the AD7898. CS going
low provides the first leading zero to be read in by the micro-
controller or DSP. The remaining data is then clocked out by
subsequent SCLK falling edges beginning with the second lead-
ing zero, thus the first falling clock edge on the serial clock has
the first leading zero provided and also clocks out the second
leading zero. The final bit in the data transfer is valid on the
16th falling edge, having being clocked out on the previous (15th)
falling edge. It is also possible to read in data on each SCLK
rising edge, although the first leading zero will still have to be
read on the first SCLK falling edge after the CS falling edge.
Therefore the first rising edge of SCLK after the CS falling edge
would provide the second leading zero and the 15th rising SCLK
edge would have DB0 provided if the application requires data
to be read on each rising edge.
Mode Selection
Upon power-up, the default mode of operation of the AD7898
is Mode 0. The part will continue to operate in Mode 0 as out-
lined in the Mode 0 Operation section, provided an SCLK edge
is not applied to the AD7898 during the conversion time and
when CONVST is low. If an SCLK edge is applied to the
AD7898 during t
CONVERT
and when CONVST is low while in
Mode 0, the part will switch to operate in Mode 1 as shown in
Figure 9. The serial interface will now operate as described in
the Mode 1 operation section. The AD7898 will return to
Mode 0 operation from Mode 1 if CS is brought low and then
subsequently high without any SCLK edges provided while CS
is low (see Figure 10). If any SCLK edges are applied to the
device while CS is low when in Mode 1, the part will remain in
Mode 1 and may or may not enter a power-down mode as
determined by the number of SCLKs applied, see Power-Down
Mode section.
If the part is operating in Mode 0 and a glitch occurs on the
SCLK line while CONVST is low, the part will enter Mode 1
and the conversion that was initiated by CONVST going low
will be terminated. The part will now be operating in Mode 1,
but Mode 0 signals will still be applied from the processor.
When CS goes low and no SCLK is applied, the part will revert
back to Mode 0 operation. This avoids accidental changing of
modes due to glitches on the SCLK line.
CONVST
SCLK
CONVERSION
TERMINATES,
AD7898 ENTERS
MODE 1
CONVERSION IS
INITIATED IN
MODE 0
t
1
t
CONVERT
= 3.3s
Figure 9. Entering Mode 1 from Mode 0
CS
SCLK
AD7898 ENTERS
MODE 0
t
1
Figure 10. Entering Mode 0 from Mode 1
Power-Down Mode
The power-down mode is only accessible when in Mode 1
operation. This mode is intended for use in applications where
slower throughput rates are required; either the ADC is pow-
ered down between each conversion, or a series of conversions
may be performed at a high throughput rate and the ADC is
powered down for a relatively long duration between these
bursts of several conversions. When the AD7898 is in power-
down, all analog circuitry is powered down.
–13–REV. A
AD7898
SCLK
THREE-STATE
CS
SDATA
1 16
11
234
Figure 11. Entering Power-Down when in Mode 1
SCLK
CS
SDATA
11116 161
THE PART BEGINS
TO POWER UP
THE PART IS FULLY
POWERED UP
INVALID DATA VALID DATA
Figure 12. Exiting Power-Down when in Mode 1
To enter power-down, the conversion process must be inter-
rupted by bringing CS high anywhere after the fourth falling
edge of SCLK and before the 11th falling edge of SCLK as
shown in Figure 11. Once CS has been brought high in this
window of SCLK, then the part will enter power-down and the
conversion that was initiated by the falling edge of CS will be
terminated and SDATA will go back into three-state.
In order to exit this mode of operation and power the AD7898
up again, a dummy conversion is performed. On the falling edge
of CS the device will begin to power up, and will continue to
power up as long as CS is held low until after the falling edge of
the 11th SCLK. The device will be fully powered up once 16
SCLKs have elapsed and valid data will result from the next
conversion as shown in Figure 12. If CS is brought high before
the 11th falling edge of SCLK, the AD7898 will go back into
power-down. This avoids accidental power-up due to glitches
on the CS line or an inadvertent burst of eight SCLK cycles
while CS is low. So although the device may begin to power up
on the falling edge of CS, it will power down again on the rising
edge of CS as long as it occurs before the 11th SCLK falling edge.
Power-Up Times
The power-up time of the AD7898 is typically 4.33 µs, which
means that with any frequency of SCLK up to 3.7 MHz, one
dummy cycle will always be sufficient to allow the device to
power up. Once the dummy cycle is complete, the ADC will be
fully powered up and the input signal will be properly acquired.
The quiet time, t
QUIET
, must still be allowed from the point at
which the bus goes back into three-state after the dummy con-
version, to the next falling CS edge.
When powering up from power-down mode at any SCLK fre-
quency a dummy cycle is sufficient to power up the device and
fully acquire V
IN
; it does not necessarily mean that a full dummy
cycle of 16 SCLKs must always elapse to power up the device
and fully acquire V
IN
. 4.33 µs would be sufficient to power up
the device and fully acquire V
IN
. If, for example, a 1 MHz SCLK
frequency was applied to the ADC, the cycle time would be 16 µs.
In one dummy cycle, 16 µs, the part would be powered up and
V
IN
fully acquired. However, after 4.33 µs with a 1 MHz SCLK
just over four SCLK cycles would have elapsed. At this stage the
ADC would be fully powered up and the signal acquired. So, in
this case, CS could be brought high after the 11th SCLK falling
edge and brought low again after t
QUIET
to initiate a new conversion.
MICROPROCESSOR/MICROCONTROLLER INTERFACE
FOR MODE 0 OPERATION
The AD7898 provides a 3-wire serial interface that can be
used for connection to the serial ports of DSP processors and
microcontrollers. Figures 13 through 16 show the AD7898
interfaced to a number of different microcontrollers and DSP
processors. The AD7898 accepts an external serial clock and,
as a result, in all interfaces shown here, the processor/controller
is configured as the master, providing the serial clock with the
AD7898 configured as the slave in the system. The AD7898 has
no BUSY signal, therefore a read operation should be timed to
occur 3.3 µs after CONVST goes low.
8x51/L51 to AD7898 Interface
Figure 13 shows an interface between the AD7898 and the
8x51/L51 microcontroller. The 8x51/L51 is configured for its
Mode 0 serial interface mode. The diagram shows the simplest
form of the interface where the AD7898 is the only part con-
nected to the serial port of the 8x51/L51 and, therefore, no
decoding of the serial read operations is required.
AD7898
SDATA
P3.0
8x51/L51
SCLKP3.1
Figure 13. 8x51/L51 to AD7898 Interface
AD7898
–14– REV. A
To chip-select the AD7898 in systems where more than one
device is connected to the 8x51/L51’s serial port, a port bit
configured as an output, from one of the 8x51/L51’s parallel
ports can be used to gate on or off the serial clock to the AD7898.
A simple AND function on this port bit and the serial clock from
the 8x51/L51 will provide this function. The port bit should be
high to select the AD7898 and low when it is not selected.
The AD7898 outputs the MSB first during a read operation,
while the 8xL51 expects the LSB first. Therefore, the data which
is read into the serial buffer needs to be rearranged before the
correct data format from the AD7898 appears in the accumulator.
The serial clock rate from the 8x51/L51 is limited to signifi-
cantly less than the allowable input serial clock frequency with
which the AD7898 can operate. As a result, the time to read
data from the part will actually be longer than the conversion
time of the part. This means that the AD7898 cannot run at its
maximum throughput rate when used with the 8x51/L51.
68HC11/L11 to AD7898 Interface
An interface circuit between the AD7898 and the 68HC11/L11
microcontroller is shown in Figure 14. For the interface shown,
the 68L11 SPI port is used, and the 68L11 is configured in its
single-chip mode. The 68L11 is configured in the master mode
with its CPOL bit set to a logic zero and its CPHA bit set to a
logic one. As with the previous interface, the diagram shows the
simplest form of the interface where the AD7898 is the only part
connected to the serial port of the 68L11 and, therefore, no
decoding of the serial read operations is required.
AD7898
SDATA
MISO
SCLK
SCK
68HC11/L11
Figure 14. 68HC11/L11 to AD7898 Interface
Once again, to chip-select the AD7898 in systems where more
than one device is connected to the 68HC11’s serial port, a port
bit configured as an output from one of the 68HC11’s parallel
ports can be used to gate on or off the serial clock to the AD7898.
A simple AND function on this port bit and the serial clock
from the 68L11 will provide this function. The port bit should
be high to select the AD7898 and low when it is not selected.
The serial clock rate from the 68HC11/L11 is limited to signifi-
cantly less than the allowable input serial clock frequency with
which the AD7898 can operate. As a result, the time to read
data from the part will actually be longer than the conversion
time of the part. This means that the AD7898 cannot run at its
maximum throughput rate when used with the 68HC11/L11.
ADSP-2103/ADSP-2105 to AD7898 Interface
An interface circuit between the AD7898 and the ADSP-2103/
ADSP-2105 DSP processor is shown in Figure 15. In the inter-
face shown, the RFS1 output from the ADSP-2103/ADSP-2105’s
SPORT1 serial port is used to gate the serial clock (SCLK1) of
the ADSP-2103/ADSP-2105 before it is applied to the SCLK
input of the AD7898. The RFS1 output is configured for active
high operation. The interface ensures a noncontinuous clock for
the AD7898’s serial clock input with only 16 serial clock pulses
provided and the serial clock line of the AD7898 remaining low
between data transfers. A read operation should be timed to
occur 3.3 µs after CONVST goes low. The SDATA line from
the AD7898 is connected to the DR1 line of the ADSP-2103/
ADSP-2105’s serial port.
AD7898
SCLK
SCLK1
RFS1
ADSP-2103/
ADSP-2105
SDATADR1
Figure 15. ADSP-2103/ADSP-2105 to AD7898 Interface
The timing relationship between the SCLK1 and RFS1 outputs
of the ADSP-2103/ADSP-2105 are such that the delay between
the rising edge of the SCLK1 and the rising edge of an active
high RFS1 is up to 30 ns. There is also a requirement that data
must be set up 10 ns prior to the falling edge of the SCLK1 to
be read correctly by the ADSP-2103/ADSP-2105. The data
access time for the AD7898 is t
4
(5 V) from the rising edge of its
SCLK input. Assuming a 10 ns propagation delay through the
external AND gate, the high time of the SCLK1 output of the
ADSP-2105 must be (30 + 60 +10 +10) ns, i.e., 110 ns.
This means that the serial clock frequency with which the inter-
face of Figure 15 can work is limited to 4.5 MHz. However,
there is an alternative method that allows for the ADSP-2105
SCLK1 to run at 5 MHz (the max serial clock frequency of the
SCLK1 output). The arrangement occurs when the first leading
zero of the data stream from the AD7898 cannot be guaranteed
to be clocked into the ADSP-2105 due to the combined delay of
the RFS signal and the data access time of the AD7898. In most
cases, this is acceptable because there will still be three leading
zeros followed by the 12 data bits.
Another alternative scheme is to configure the ADSP-2103/
ADSP-2105 so that it accepts an external noncontinuous serial
clock. In this case, an external noncontinuous serial clock is
provided that drives the serial clock inputs of both the ADSP-
2103/ADSP-2105 and the AD7898. In this scheme, the serial
clock frequency is limited to 15 MHz by the AD7898.
DSP56002/L002 to AD7898 Interface
Figure 16 shows an interface circuit between the AD7898 and
the DSP56002/L002 DSP processor. The DSP56002/L002 is
configured for normal mode asynchronous operation with gated
clock. It is also set up for a 16-bit word with SCK as gated clock
output. In this mode, the DSP56002/L002 provides sixteen
serial clock pulses to the AD7898 in a serial read operation.
Because the DSP56002/L002 assumes valid data on the first
falling edge of SCK, the interface is simply 2-wire as shown in
Figure 16.
AD7898
SCLK
SCK
DSP56002/L002
SDATA
SDR
Figure 16. DSP56002/L002 to AD7898 Interface
MICROPROCESSOR INTERFACING FOR MODE 1
The serial interface on the AD7898 for Mode 1 allows the parts
to be directly connected to a range of many different micropro-
cessors. This section explains how to interface the AD7898 with
some of the more common microcontroller and DSP serial
interface protocols for Mode 1 operation.

AD7898AR-3REEL7

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC 5V 12-Bit Serial 220 kSPS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union