AD7887 Data Sheet
Rev. E | Page 18 of 24
MICROPROCESSOR INTERFACING
The serial interface on the AD7887 allows the part to be directly
connected to a range of many different microprocessors. This
section explains how to interface the AD7887 with some of the
more common microcontroller and DSP serial interface
protocols.
AD7887 to TMS320C5x
The serial interface on the TMS320C5x uses a continuous serial
clock and frame synchronization signals to synchronize the data
transfer operations with peripheral devices like the AD7887.
The
CS
input allows easy interfacing with an inverter between
the serial clock of the TMS320C5x and the AD7887 being the
only glue logic required. The serial port of the TMS320C5x is
set up to operate in burst mode with internal CLKX (Tx serial
clock) and FSX (Tx frame sync). The serial port control register
(SPC) must have the following setup: FO = 0, FSM = 1,
MCM = 1, and TXM = 1. The connection diagram is shown in
Figure 22.
AD7887
1
DOUT
DIN
SCLK
CS
TMS320C5x
1
1
ADDITIONAL PINS OMITTED FOR CLARITY.
CLKX
CLKR
DR
DT
FSX
FSR
06191-022
Figure 22. Interfacing to the TMS320C5x
AD7887 to ADSP-21xx
The ADSP-21xx family of DSPs are easily interfaced to the
AD7887 with an inverter between the serial clock of the ADSP-
21xx and the AD7887. This is the only glue logic required. The
SPORT control register should be set up as follows:
Table 7. SPORT0 Control Register Setup
Setting Description
TFSW = RFSW = 1 Alternative framing
INVRFS = INVTFS = 1 Active low frame signal
DTYPE = 00 Right justify data
SLEN = 1111 16-bit data-word
ISCLK = 1 Internal serial clock
TFSR = RFSR = 1 Frame every word
IRFS = 0
ITFS = 1
The connection diagram is shown in Figure 23. The ADSP-21xx
has the TFS and RFS of the SPORT tied together, with TFS set
as an output and RFS set as an input. The DSP operates in
alternate framing mode, and the SPORT control register is set
up as described in Table 7. The frame synchronization signal
generated on the TFS is tied to
CS
and, as with all signal
processing applications, equidistant sampling is necessary. In
this example however, the timer interrupt is used to control the
sampling rate of the ADC and, under certain conditions,
equidistant sampling cannot be achieved.
The timer registers are loaded with a value that will provide an
interrupt at the required sample interval. When an interrupt is
received, a value is transmitted with TFS/DT (ADC control
word). The TFS is used to control the RFS and hence the
reading of data. The frequency of the serial clock is set in the
SCLKDIV register. When the instruction to transmit with TFS
is given (that is, AX0 = TX0), the state of the SCLK is checked.
The DSP waits until the SCLK has gone high, low, and high
again before a transmission starts. If the timer and SCLK values
are chosen such that the instruction to transmit occurs on or
near the rising edge of SCLK, the data may be transmitted or it
may wait until the next clock edge.
This situation results in nonequidistant sampling because the
transmit instruction is occurring on an SCLK edge. If the
number of SCLKs between interrupts is a whole integer number
of N, equidistant sampling will be implemented by the DSP.
AD7887
1
DOUT
DIN
SCLK
CS
1
ADDITIONAL PINS OMITTED FOR CLARITY.
SCLK
DR
DT
RFS
TFS
ADSP-21xx
1
06191-023
Figure 23. Interfacing to the ADSP-21xx
AD7887 to DSP56xxx
The connection diagram in Figure 24 shows how the AD7887
can be connected to the SSI (synchronous serial interface) of
the DSP56xxx family of DSPs from Motorola. The SSI is
operated in synchronous mode (SYN bit in CRB = 1) with an
internally generated 1-bit clock period frame sync for both Tx
and Rx (Bits FSL1 = 1 and FSL0 = 0 in CRB). Set the word
length to 16 by setting bits WL1 = 1 and WL0 = 0 in CRA. An
inverter is also necessary between the SCLK from the DSP56xxx
and the SCLK pin of the AD7887, as shown in Figure 24.
DOUT
DIN
SCLK
CS
1
ADDITIONAL PINS OMITTED FOR CLARITY.
DSP56xxx
1
AD7887
1
SCK
SRD
STD
SC2
0
6191-024
Figure 24. Interfacing to the DSP56xxx
Data Sheet AD7887
AD7887 to MC68HC11
The serial peripheral interface (SPI) on the MC68HC11 is
configured for master mode (MSTR = 1) when the clock
polarity bit (CPOL) = 1 and the clock phase bit (CPHA) = 1.
The SPI is configured by writing to the SPI Control Register
(SPCR)see the M68HC11 reference manual from Freescale
Semiconductor, Inc., for more information. The serial transfer
takes place as two 8-bit operations. A connection diagram is
shown in Figure 25.
DOUT
DIN
SCLK
CS
1
ADDITIONAL PINS OMITTED FOR CLARITY.
MC68HC11
1
AD7887
1
SCLK/PD4
MISO/PD2
MOSI/PD3
PA0
06191-025
Figure 25. Interfacing to the MC68HC11
AD7887 to 8051
It is possible to implement a serial interface using the data ports
on the 8051. This allows a full duplex serial transfer to be imple-
mented. The technique involves bit-banging an input/output
port (for example, P1.0) to generate a serial clock and using two
other input/output ports (for example, P1.1 and P1.2) to shift
data in and outsee Figure 26.
DOUT
DIN
SCLK
CS
1
ADDITIONAL PINS OMITTED FOR CLARITY.
AD7887
1
8051
1
P1.3
P1.0
P1.1
P1.2
06191-026
Figure 26. Interfacing to the 8051 Using Input/Output Ports
AD7887 to PIC16C6x/PIC16C7x
The PIC16C6x synchronous serial port (SSP) is configured as an
SPI master with the clock polarity bit = 1. This is done by writing to
the synchronous serial port control register (SSPCON). See the
PIC16/PIC17 Microcontroller User Manual. Figure 27 shows the
hardware connections needed to interface to the PIC16C6x/
PIC16C7x. In this example, input/output port RA1 is being used to
pulse
CS
. This microcontroller only transfers eight bits of data
during each serial transfer operation. Therefore, two consecutive
read/write operations are needed.
DOUT
DIN
SCLK
CS
1
ADDITIONAL PINS OMITTED FOR CLARITY.
AD7887
1
PIC16C6x/
PIC16C7x
1
SCK/RC3
SDO/RC5
RA1
SDI/RC4
06191-027
Figure 27. Interfacing to the PIC16C6x/PIC16C7x
Rev. E | Page 19 of 24
AD7887 Data Sheet
APPLICATION HINTS
Grounding and Layout
The AD7887 has very good immunity to noise on the power
supplies, as can be seen in Figure 7. However, care should still
be taken with regard to grounding and layout.
The printed circuit board that houses the AD7887 should be
designed so that the analog and digital sections are separated
and confined to certain areas of the board. This facilitates the
use of ground planes that can be easily separated. A minimum
etch technique is generally best for ground planes because it
results in the best shielding. Digital and analog ground planes
should be joined in only one place, as close as possible to the
GND pin of the AD7887. If the AD7887 is in a system where
multiple devices require AGND-to-DGND connections, the
connection should still be made at one point only, a star ground
point, which should be established as close as possible to the
AD7887.
Avoid running digital lines under the device because these will
couple noise onto the die. The analog ground plane should be
allowed to run under the AD7887 to avoid noise coupling. The
power supply lines to the AD7887 should use as large a trace as
possible to provide low impedance paths and reduce the effects
of glitches on the power supply line. Fast switching signals like
clocks should be shielded with digital ground to avoid radiating
noise to other sections of the board, and clock signals should
never be run near the analog inputs. Avoid crossover of digital
and analog signals. Traces on opposite sides of the board should
run at right angles to each other. This reduces the effects of
feedthrough through the board. A microstrip technique is by far
the best approach, but it is not always possible with a double-
sided board. In this technique, the component side of the board
is dedicated to ground planes, and signals are placed on the
solder side.
Good decoupling is also important. All analog supplies should
be decoupled with 10 μF tantalum in parallel with 0.1 μF
capacitors to AGND. To achieve the best from these decoupling
components, they must be placed as close as possible to the
device, ideally right up against the device.
Rev. E | Page 20 of 24

AD7887BR-REEL

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