AD7366-5/AD7367-5
Rev. B | Page 22 of 28
SERIAL INTERFACE
Figure 25 and Figure 26 show the detailed timing diagram for
serial interfacing to the AD7366-5 and the AD7367-5. On the
falling edge of
CNVST
, the AD7366-5/AD7367-5 simultaneously
convert the selected channels. These conversions are performed
using the on-chip oscillator. After the falling edge of
CNVST
,
the BUSY signal goes high, indicating that the conversion has
started. The BUSY signal returns low when the conversion has
been completed. The data can now be read from the
D
OUT
pins.
The
CS
and SCLK signals are required to transfer data from the
AD7366-5/AD7367-5. The AD7366-5/AD7367-5 have two
output pins corresponding to each ADC. Data can be read from
the AD7366-5/ AD7367-5 using both D
OUT
A and D
OUT
B.
Alternatively, a single output pin of the user’s choice can be used.
The SCLK input signal provides the clock source for the serial
interface. The
CS
goes low to access data from the AD7366-
5/AD7367-5. The falling edge of
CS
takes the bus out of three-
state and clocks out the MSB of the conversion result. The data
stream consists of 12 bits of data for the AD7366-5 and 14 bits of
data for the AD7367-5, MSB first. The first bit of the conversion
result is valid on the first SCLK falling edge after the
CS
falling
edge. The subsequent 11-bits/ 13-bits of data for the AD7366-
5/AD7367-5, respectively, are clocked out on the falling edge of
the SCLK signal. A minimum of 12 clock pulses must be
provided to the AD7366-5 to access each conversion result, and
a minimum of 14 clock pulses must be provided to the AD7367-
5 to access the conversion result. shows how a 12
SCLK read is used to access the conversion results for the
AD7366-5, and illustrates the case for the AD7367-5
with a 14 SCLK read.
Figure 25
Figure 26
On the rising edge of
CS
, the conversion is terminated, and
D
OUTA
and D
OUTB
return to three-state. If
CS
is not brought high
but is instead held low for an additional 14 SCLK cycles, the
data from the other D
OUT
pin follows on the selected D
OUT
pin.
Note that the second serial result from the AD7366-5 is
preceded by two zeros. See and , where
D
OUTA
is shown. In this case, the D
OUT
line in use returns to
three-state on the rising edge of
Figure 27 Figure 28
CS
.
If the falling edge of SCLK coincides with the falling edge of
CS
,
the falling edge of SCLK is not acknowledged by the AD7366-5/
AD7367-5, and the next falling edge of SCLK is the first registered
after the falling edges of the
CS
.
The
CS
pin can be brought low before the BUSY signal goes low,
indicating the end of a conversion. When
CS
is at a logic low state,
the data bus is brought out of three-state. This feature can be
used to ensure that the MSB is valid on the falling edge of BUSY
by bringing
CS
low a minimum of t
4
before the BUSY signal
goes low. The dotted
CS
line in and
illustrates this feature.
Figure 22 Figure 23
Alternatively, the
CS
pin can be tied to a low logic state continu-
ously. In this case, the D
OUT
pins never enter three-state, and the
data bus is continuously active. Under these conditions, the MSB
of the conversion result for the AD7366-5/AD7367-5 is available
on the falling edge of the BUSY signal. The next most significant
bit is available on the first SCLK falling edge after the BUSY
signal has gone low. This mode of operation enables the user to
read the MSB as soon as it is made available by the converter.
D
OUT
A
D
OUT
B
THREE-
STATE
THREE-STATE
CS
SCLK
1
512
2
34
DB10
DB11
DB9 DB8 DB2 DB1 DB0
t
5
t
6
t
8
t
4
t
7
t
9
06842-027
Figure 25. Serial Interface Timing Diagram for the AD7366-5
D
OUT
A
D
OUT
B
THREE-
STATE
THREE-STATE
CS
SCLK
1
514
2
34
DB12
DB13
DB11 DB10 DB2 DB1 DB0
t
5
t
6
t
8
t
4
t
7
t
9
0
6842-028
Figure 26. Serial Interface Timing Diagram for the AD7367-5
AD7366-5/AD7367-5
Rev. B | Page 23 of 28
CS
SCLK
1
5
11
D
OUT
A
THREE-
STATE
t
5
2
34
12
t
7
t
4
THREE-
STATE
t
8
t
6
10
DB0
A
00
DB11
B
DB1
A
13 14 26
DB9
A
DB10
A
DB1
B
DB0
B
DB11
A
06842-030
Figure 27. Reading Data from Both ADCs on One D
OUT
Line with 24 SCLKs for the AD7366-5
CS
SCLK
1
5
13
D
OUT
A
THREE-
STATE
t
5
2
34
14
t
7
t
3
THREE-
STATE
t
8
t
6
12
DB12
B
DB13
B
DB0
A
DB1
A
15 28
DB11
A
DB12
A
DB13
A
DB1
B
DB0
B
06842-029
Figure 28. Reading Data from Both ADCs on One D
OUT
Line with 28 SCLKs for the AD7367-5
AD7366-5/AD7367-5
Rev. B | Page 24 of 28
MICROPROCESSOR INTERFACING
The serial interface on the AD7366-5/AD7367-5 allows the
parts to be directly connected to a range of different micro-
processors. This section explains how to interface the AD7366-5/
AD7367-5 with some more common microcontrollers and DSP
serial interface protocols.
Table 11. SPORT0 Control Register Setup
Setting Description
TFSW = RFSW = 1 Alternate framing.
INVRFS = INVTFS = 1 Active low frame signal.
DTYPE = 00 Right justify data.
SLEN = 1111
16-bit data-word (or can be set to 1101
for 14-bit data-word).
ISCLK = 1 Internal serial clock.
TFSR = RFSR = 1 Frame every word.
IRFS = 0
ITFS = 1
AD7366-5/AD7367-5 TO ADSP-218x
The ADSP-218x family of DSPs interfaces directly to the
AD7366-5/AD7367-5 with no glue logic required. The V
DRIVE
pin of the AD7366-5/AD7367-5 takes the same supply voltage
as that of the ADSP-218x. This allows the ADC to operate at a
higher supply voltage than its serial interface and therefore, the
ADSP-218x, if necessary. The connection diagram in Figure 29
shows both D
OUT
A and D
OUT
B of the AD7366-5/AD7367-5
connected to both serial ports of the ADSP-218x. The SPORT0
and SPORT1 control registers should be set up as shown in
Table 11 and Table 12.
Table 12. SPORT1 Control Register Setup
Setting Description
TFSW = RFSW = 1 Alternate framing.
INVRFS = INVTFS = 1 Active low frame signal.
DTYPE = 00 Right justify data.
SLEN = 1111
16-bit data-word (or can be set to 1101
for 14-bit data-word).
ISCLK = 0 External serial clock.
TFSR = RFSR = 1 Frame every word.
IRFS = 0
ITFS = 1
AD7366-5/
AD7367-5*
SCLK
CS
ADSP-218x*
*ADDITIONAL PINS OMITTED FOR CLARITY.
SCLK0
DR0
RFS0
TFS0
D
OUT
A
V
DRIVE
V
DD
D
OUT
BDR1
RFS1
SCLK1
IRQnBUSY
CNVST FLn
06842-031
The ADSP-218x has the TFS0 and RFS0 of the SPORT0 and the
RFS1 of SPORT1 tied together. TFS0 is set as an output, and both
RFS0 and RFS1 are set as inputs. The DSP operates in alternate
framing mode, and the SPORT control registers are set up as
described in Table 11 and Table 12. The frame synchronization
signal generated on the TFS0 is tied to
CS
.
The AD7366-5/AD7367-5 BUSY line provides an interrupt to
the ADSP-218x when the conversion is complete. The conversion
results can then be read from the AD7366-5/AD7367-5 using a
read operation. When an interrupt is received on
IRQn
from the
BUSY signal, a value is transmitted with TFS/DT (ADC control
word). The TFS is used to control the RFS and, therefore, the
reading of data.
Figure 29. Interfacing the AD7366-5/AD7367-5 to the ADSP-218x

AD7366BRUZ-5500RL7

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC Bipolar Input Dual 12B 2Ch SAR
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union