AD7856
–24–
REV. A
Table X.␣ Interface Mode Description
Interface Processor/
Mode Controller Comment
1 8XC51 (2-Wire)
8XL51 (DIN Is an Input/
PIC17C42 Output Pin)
2 68HC11 (3-Wire, SPI)
68L11 (Default Mode)
68HC16
PIC16C64
ADSP-21xx
DSP56000
DSP56001
DSP56002
DSP56L002
DETAILED TIMING SECTION
Mode 1 (2-Wire 8051 Interface)
The read and write takes place on the DIN line and the conver-
sion is initiated by pulsing the CONVST pin (note that in every
write cycle the 2/3 MODE bit must be set to 1). The conversion
may be started by setting the CONVST bit in the control regis-
ter to 1 instead of using the CONVST pin.
Figures 31 and 32 show the timing diagrams for Operating
Mode 1 in Table X where the AD7856 is in the 2-wire interface
mode. Here the DIN pin is used for both input and output as
shown. The SYNC input is level-triggered active low and can be
pulsed (Figure 31) or can be constantly low (Figure 32).
In Figure 31 the part samples the input data on the rising edge
of SCLK. After the 16th rising edge of SCLK the DIN is con-
figured as an output. When the SYNC is taken high the DIN is
three-stated. Taking SYNC low disables the three-state on the
DIN pin and the first SCLK falling edge clocks out the first data
bit. Once the 16 clocks have been provided the DIN pin will
automatically revert back to an input after a time, t
14
. Note that
a continuous SCLK shown by the dotted waveform in Figure 31
can be used provided that the SYNC is low for only 16 clock
pulses in each of the read and write cycles.
In Figure 32 the SYNC line is permanently tied low and this
results in a different timing arrangement. With SYNC perma-
nently tied low the DIN pin will never be three-stated. The 16th
rising edge of SCLK configures the DIN pin as an input or an
output as shown in the diagram. Here no more than 16 SCLK
pulses must occur for each of the read and write operations.
If reading from and writing to the calibration registers in this
interface mode, all the selected calibration registers must be
read from or written to. The read and write operations cannot
be aborted. When reading from the calibration registers, the
DIN pin will remain as an output for the full duration of all the
calibration register read operations. When writing to the calibra-
tion registers, the DIN pin will remain as an input for the full
duration of all the calibration register write operations.
NOTE: Initiating conversions in software is not recommended
in Mode 1 operation.
A degradation of 0.3 LSB in linearity can be expected when
operating in Mode 1; however, when hardware initiation of
conversions is used, all other specifications that apply to Mode 2
operation also apply to Mode 1.
t
3
= –0.4
t
SCLK
MIN (NONCONTINUOUS SCLK) –/+ 0.4
t
SCLK
ns MIN/MAX (CONTINUOUS SCLK),
t
6
= 45/75ns MAX (A/K),
t
7
= 30/40ns MIN (A/K),
t
8
= 20ns MIN
POLARITY PIN LOGIC HIGH
SYNC (I/P)
SCLK (I/P)
DIN (I/O)
t
3
t
11
t
3
t
11
161161
t
12
t
8
t
6
t
6
t
5
t
14
DIN BECOMES AN OUTPUT DIN BECOMES AN INPUT
DB15 DB0 DB15 DB0
3-STATE
DATA WRITE DATA READ
t
7
Figure 31. Timing Diagram for Read/Write Operation with DIN as an Input/Output (i.e., Mode 1)
POLARITY PIN LOGIC HIGH
SCLK (I/P)
DIN (I/O)
161161
t
13
t
8
t
6
t
6
t
14
DIN BECOMES AN INPUT
DB15 DB0 DB15 DB0
6
t
6
= 45/75ns MAX (A/K),
t
7
= 30/40ns MIN (A/K),
t
8
= 20ns MIN,
t
13
= 90ns MAX,
t
14
= 50ns MIN
t
7
DATA WRITE DATA READ
Figure 32. Timing Diagram for Read/Write Operation with DIN as an Input/Output and
SYNC
Input Tied Low (i.e., Interface Mode 1)
AD7856
–25–REV. A
Mode 2 (3-Wire SPI/QSPI Interface Mode)
This is the DEFAULT INTERFACE MODE.
In Figure 33 below we have the timing diagram for interface
Mode 2, which is the SPI/QSPI interface mode. Here the SYNC
input is active low and may be pulsed or permanently tied low.
If SYNC is permanently low, 16 clock pulses must be applied to
the SCLK pin for the part to operate correctly otherwise, with a
pulsed SYNC input, a continuous SCLK may be applied pro-
vided SYNC is low for only 16 SCLK cycles. In Figure 33 the
t
3
= –0.4
t
SCLK
MIN (NONCONTINUOUS SCLK) –/+0.4
t
SCLK
ns MIN/MAX (CONTINUOUS SCLK),
t
6
= 45/75ns MAX (A/K),
t
7
= 30/40ns MIN (A/K),
t
8
= 20ns MIN,
t
11
= 30ns MIN (NONCONTINUOUS SCLK), 30/0.4
t
SCLK
ns MIN/MAX (CONTINUOUS SCLK)
t
11
t
12
16654321
t
10
t
8
t
6
t
9
t
8
t
6
t
3
t
5
THREE-
STATE
DB0DB10DB11DB12DB13DB14DB15
DB15 DB14 DB13 DB12 DB11 DB10 DB0
SYNC (I/P)
SCLK (I/P)
DOUT (O/P)
DIN (I/P)
POLARITY PIN LOGIC HIGH
t
7
THREE-
STATE
Figure 33. SPI/QSPI Mode 2 Timing Diagram for Read/Write Operation with DIN Input
DOUT Output and
SYNC
Input
SYNC going low disables the three-state on the DOUT pin. The
first falling edge of the SCLK after the SYNC going low clocks
out the first leading zero on the DOUT pin. The DOUT pin is
three-stated again a time, t
12
, after the SYNC goes high. With
the DIN pin the data input has to be set up a time, t
7
, before the
SCLK rising edge as the part samples the input data on the
SCLK rising edge in this case. If resetting the interface is re-
quired, the SYNC must be taken high and then low.
AD7856
–26–
REV. A
CONFIGURING THE AD7856
The AD7856 contains 14 on-chip registers that can be accessed
via the serial interface. In the majority of applications it will not
be necessary to access all of these registers. Here the CLKIN
signal is applied directly after power-on, the CLKIN signal must
be present to allow the part to perform a calibration. This auto-
matic calibration will be completed approximately 150 ms
after power-on.
Writing to the AD7856
For accessing the on-chip registers it is necessary to write to the
part. To change the channel from the default channel setting the
user will be required to write to the part. To enable Serial Inter-
face Mode 1 the user must also write to the part. Figures 34 and
35 outline flowcharts of how to configure the AD7856 Serial
Interface Modes 1 and 2 respectively. The continuous loops on
all diagrams indicate the sequence for more than one conversion.
START
POWER-ON, APPLY CLKIN SIGNAL,
WAIT 150ms FOR AUTOMATIC CALIBRATION
APPLY SYNC (IF REQUIRED), SCLK,
WRITE TO CONTROL REGISTER
SETTING CHANNEL AND TWO-WIRE MODE
PULSE CONVST PIN
WAIT FOR BUSY SIGNAL TO GO LOW
OR
WAIT FOR BUSY BIT = 0
1
SERIAL
INTERFACE
MODE
?
READ
DATA
DURING
CONVERSION
?
NO
YES
APPLY SYNC (IF REQUIRED), SCLK, READ
CURRENT CONVERSION RESULT ON DIN PIN
APPLY SYNC (IF REQUIRED), SCLK, READ
PREVIOUS CONVERSION RESULT ON DIN PIN
WAIT APPROX. 200 ns AFTER
CONVST RISING EDGE OR AFTER END
OF CONTROL REGISTER WRITE
Figure 34. Flowchart for Setting Up, Reading and Writing in Interface Mode 1
The options of using a hardware (pulsing the CONVST pin) or
software (setting the CONVST bit to 1) conversion start, and
reading/writing during or after conversion are shown in Figures
34 and 35. If the CONVST pin is never used, it should be
permanently tied to DV
DD
. Where reference is made to the
BUSY bit equal to a Logic 0, to indicate the end of conversion,
the user in this case would poll the BUSY bit in the status register.
Interface Mode 1 Configuration
Figure 34 shows the flowchart for configuring the part in Inter-
face Mode 1. This mode of operation can only be enabled by
writing to the control register and setting the 2/3 MODE bit.
Reading and writing cannot take place simultaneously in this
mode as the DIN pin is used for both reading and writing.
Initiating conversions in software is not recommended in this
mode, see Detailed Timing section.

AD7856KRZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC 5V SGL-Supply 8-Ch 14B 285kSPS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union