AD660
Rev. B | Page 15 of 20
MICROPROCESSOR INTERFACE
AD660 TO MC68HC11 (SPI BUS) INTERFACE
The AD660 interface to the Motorola SPI (serial peripheral
interface) is shown in Figure 17. The MOSI, SCK, and
SS
pins
of the 68HC11 are respectively connected to the DB0/DB8/SIN,
CS
, and LDAC pins of the AD660. The
SER
pin of the AD660 is
tied low causing the first rank latch to be transparent. The
majority of the interfacing issues are taken care of in the
software initialization. A typical routine such as the one shown
in the Software Initialization Example begins by initializing the
state of the various SPI data and control registers.
The most significant data byte (MSBY) is then retrieved from
memory and processed by the SENDAT subroutine. The
SS
pin
is driven low by indexing into the PORTD data register and
clearing Bit 5. This causes the 2nd rank latch of the AD660 to
become transparent. The MSBY is then set to the SPI data
register where it is automatically transferred to the AD660.
The HC11 generates the requisite eight clock pulses with data
valid on the rising edges. After the most significant byte is
transmitted, the least significant byte (LSBY) is loaded from
memory and transmitted in a similar fashion. To complete the
transfer, the LDAC pin is driven high, latching the complete
16-bit word into the AD660.
Software Initialization Example
INIT LDAA #$2F
;
SS
= I; SCK = 0; MOSI
= I
STAA PORTD ;SEND TO SPI OUTPUTS
LDAA #$38
;
SS
, SCK,MOSI = OUTPUTS
STAA DDRD
;SEND DATA DIRECTION
INFO
LDAA #$50
;DABL INTRPTS,SPI IS
MASTER & ON
STAA SPCR ;CPOL = 0, CPHA = 0,1MHZ
BAUD RATE
NEXTPT LDAA MSBY
;LOAD ACCUM WITH UPPER 8
BITS
BSR SENDAT ;JUMP TO DAC OUTPUT
ROUTINE
JMP NEXTPT ;INFINITE LOOP
SENDAT LDY #$1000
;POINT AT ON-CHIP
REGISTERS
BCLR $08,Y,$20
;DRIVE
SS
(LDAC) LOW
STAA SPDR ;SEND MS-BYTE TO SPI
DATA REG
WAIT1 LDAA SPSR ;CHECK STATUS OF SPIE
BPL WAIT1
;POLL FOR END OF X-
MISSION
LDAA LSBY
;GET LOW 8 BITS FROM
MEMORY
STAA SPDR
;SEND LS-BYTE TO SPI
DATA REG
WAIT2 LDAA SPSR ;CHECK STATUS OF SPIE
BPL WAIT2
;POLL FOR END OF X-
MISSION
BSET $08,Y,$20
;DRIV
SS
HIGH TO LATCH
DATA
RTS
DB0/DB8/SIN
CS
LDAC
MDSI
SCK
SS
AD660
68HC11
SER
01813-017
Figure 17. AD660 to 68HC11 (SPI) Interface
AD660 TO MICROWIRE INTERFACE
The flexible serial interface of the AD660 is also compatible
with the National Semiconductor MICROWIRE™ interface.
The MICROWIRE interface is used on microcontrollers, such
as the COP400 and COP800 series of processors. A generic
interface to the MICROWIRE interface is shown in Figure 18.
The G1, SK, and SO pins of the MICROWIRE interface are respec-
tively connected to the LDAC,
CS
and DB0/DB8/SIN pins of
the AD660.
DB0/DB8/SIN
CS
LDAC
SO
SK
G1
AD660
MICROWIRE
SER
01813-018
Figure 18. AD660 to MICROWIRE Interface
AD660 TO ADSP-210x FAMILY INTERFACE
The serial mode of the AD660 minimizes the number of control
and data lines required to interface to digital signal processors
(DSPs) such as the ADSP-210x family. The application in
Figure 19 shows the interface between an ADSP-210x and the
AD660. Both the TFS pin and the DT pins of the ADSP-210x
should be connected to the
SER
and DB0 pins of the AD660,
respectively. An inverter is required between the SCLK output
and the
CS
input of the AD660 to ensure that data transmitted
to the DB0 pin is valid on the rising edge of
CS
.
The serial port (SPORT) of the DSP should be configured for
alternate framing mode so that TFS complies with the word
length framing requirement of
SER
. Note that the INVTFS bit
in the SPORT control register should be set to invert the TFS
signal so that
SER
is the correct polarity. The LDAC signal,
which must meet the minimum hold specification of t
HIGH
, is
easily generated by delaying the rising edge of
SER
with a
74HC74 flip-flop. The
CS
signal clocks the flip-flop, resulting
in a delay of approximately one
CS
clock cycle.
AD660
Rev. B | Page 16 of 20
In applications such as waveform generation, accurate timing of
the output samples is important to avoid noise that is induced
by jitter on the LDAC signal. In this example, the ADSP-210x
is set up to use the internal timer to interrupt the processor at
the precise and desired sample rate. When the timer interrupt
occurs, the 16-bit data word of the processor is written to the
transmit register (TXn). This causes the DSP to automatically
generate the TFS signal and begin transmission of the data.
DB0/DB8/SIN
CS
LDAC
SCLK
DT
TFS
AD660
ADSP-210x 74HC04
74HC74
SER
01813-019
D
Q
Figure 19. AD660 to ADSP-210x Interface
AD660 TO Z80 INTERFACE
Figure 20 shows a Zilog Z80 8-bit microprocessor connected to
the AD660 using the byte mode interface. The double-buffered
capability of the AD660 allows the microprocessor to indepen-
dently write to the low and high byte registers, and update the
DAC output. Processor speeds up to 6 MHz on the Z80 require
no extra wait states to interface with the AD660 when using a
74ALS138 as the address decoder.
The address decoder analyzes the input-output address produced
by the processor to select the function to be performed by the
AD660, qualified by the coincidence of the input/output request
(
IORQ
) and write (
WR
) pins. The least significant address bit
(A0) determines if the low or high byte register of the AD660 is
active. More significant address bits select between input register
loading, DAC output update, and unipolar or bipolar clear.
A typical Z80 software routine begins by writing the low byte of
the desired 16-bit DAC data to Address 0, followed by the high
byte to Address 1. The DAC output is then updated by activating
LDAC with a write to Address 2 (or Address 3). A clear to unipolar
zero occurs on a write to Address 4, and a clear to bipolar zero
is performed by a write to Address 5. The actual data written to
Address 2 through Address 5 is irrelevant. The decoder can easily
be expanded to control as many AD660 devices as required.
DB0 TO DB7 +V
LL
CLR
LDAC
AD660
Z80
CS
Y2
A1 TO A15
A0 TO A15
D0 TO D7
Y1
E2
E1
IORQ
WR
Y0
A0
SER
HBE DGND
01813-020
ADDRESS
DECODE
LBE
Figure 20. Connections for 8-Bit Bus Interface
NOISE
In high resolution systems, noise is often the limiting factor. A
16-bit DAC with a 10 V span has an LSB size of 153 μV (−96 dB).
Therefore, the noise floor must remain below this level in the
frequency range of interest. The noise spectral density of the
AD660 is shown in Figure 21 and Figure 22. Figure 21 shows
the DAC output noise voltage spectral density for a 20 V span
excluding the reference. This figure shows the 1/f corner frequency
at 100 Hz and the wideband noise to be below 120 nV/√Hz.
Figure 22 shows the reference noise voltage spectral density and
shows the reference wideband noise to be below 125 nV/√Hz.
1k
100
10
1
1 10 100 1k 10k 100k 1M
10M
NOISE VOLTAGE (nV/ Hz)
FREQUENCY (Hz)
01813-021
Figure 21. DAC Output Noise Voltage Spectral Density
1k
100
10
1
1 10 100 1k 10k 100k 1M
10M
NOISE VOLTAGE (nV/ Hz)
FREQUENCY (Hz)
01813-022
Figure 22. Reference Noise Voltage Spectral Density
AD660
Rev. B | Page 17 of 20
BOARD LAYOUT
Designing with high resolution data converters requires careful
attention to board layout. Trace impedance is the first issue. A
306 μA current through a 0.5 Ω trace develops a voltage drop of
153 μV, which is 1 LSB at the 16-bit level for a 10 V full-scale
span. In addition to ground drops, inductive and capacitive
coupling need to be considered, especially when high accuracy
analog signals share the same board with digital signals. Finally,
power supplies need to be decoupled to filter out ac noise.
Analog and digital signals should not share a common path.
Each signal should have an appropriate analog or digital return
routed close to it. Using this approach, signal loops enclose a
small area, minimizing the inductive coupling of noise. Wide
PC tracks, large gauge wire, and ground planes are highly
recommended to provide low impedance signal paths. Separate
analog and digital ground planes should also be used, with a
single interconnection point to minimize ground loops. Analog
signals should be routed as far as possible from digital signals
and should cross them at right angles.
One feature that the AD660 incorporates to help the user layout
is that the analog pins (+V
CC
, −V
EE
, REF OUT, REF IN, SPAN/
BIPOLAR OFFSET, V
OUT
and AGND) are adjacent to help
isolate analog signals from digital signals.
SUPPLY DECOUPLING
The AD660 power supplies should be well filtered, well regulated,
and free from high frequency noise. Switching power supplies
are not recommended due to their tendency to generate spikes,
which can induce noise in the analog system.
Decoupling capacitors should be used in very close layout
proximity between all power supply pins and ground. A 10 μF
tantalum capacitor in parallel with a 0.1 μF ceramic capacitor
provides adequate decoupling. V
CC
and V
EE
should be bypassed
to analog ground, while V
LL
should be decoupled to digital ground.
An effort should be made to minimize the trace length between
the capacitor leads and the respective converter power supply
and common pins. The circuit layout should attempt to locate
the AD660, associated analog circuitry, and interconnections as
far as possible from logic circuitry. A solid analog ground plane
around the AD660 will isolate large switching ground currents.
For these reasons, the use of wire wrap circuit construction is
not recommended; careful printed circuit construction is
preferred.
GROUNDING
The AD660 has two ground pins, designated analog ground
(AGND) and digital ground (DGND.) The analog ground pin is
the high quality ground reference point for the device. Any
external loads on the output of the AD660 should be returned
to analog ground. If an external reference is used, this should
also be returned to the analog ground.
If a single AD660 is used with separate analog and digital ground
planes, connect the analog ground plane to AGND and the digital
ground plane to DGND keeping lead lengths as short as possible.
Then connect AGND and DGND together at the AD660. If
multiple AD660 devices are used or the AD660 shares analog
supplies with other components, connect the analog and digital
returns together once at the power supplies rather than at each
chip. This single interconnection of grounds prevents large
ground loops and consequently prevents digital currents from
flowing through the analog ground.

AD660AR

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Digital to Analog Converters - DAC IC MONO 16-BIT
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union