AD7846
POSITION MEASUREMENT APPLICATION
In a multiple DAC system, the double buffering of the AD7846
allows the user to simultaneously update all DACs. In Figure
24, a 16-bit word is loaded to the input latches of each of the
DACs in sequence. Then, with one instruction to the appropri-
ate address, CS4 (i.e., LDAC) is brought low, updating all the
DACs simultaneously.
Figure 22 shows the AD7846 in a position measurement appli-
cation using an LVDT (Linear Variable Displacement Trans-
ducer), an AD630 synchronous demodulator and a comparator
to make a 16-bit LVDT-to-Digital Converter. The LVDT is
excited with a fixed frequency and fixed amplitude sine wave
(usually 2.5 kHz, 2 V pk-pk). The outputs of the secondary coil
are in antiphase and their relative amplitudes depend on the
position of the core in the LVDT. The AD7846 output interpo-
lates between these two inputs in response to the DAC input
code. The AD630 is set up so that it rectifies the DAC output
signal. Thus, if the output of the DAC is in phase with the
VREF+ input, the inverting input to the comparator will be posi-
tive, and if it is in phase with VREF–, the output will be negative.
By turning on each bit of the DAC in succession starting with
the MSB, and deciding to leave it on or turn it off based on the
comparator output, a 16-bit measurement of the core position is
obtained.
ADDRESS BUS
ADDRESS
DECODE
CS
16-BIT
AD7846*
ALE
LATCH
8086
LDAC
DEN
RD
R/W
WR
+5V
CLR
DATA BUS
DB0–DB15
AD0–AD15
ASIN t
LVDT
x ASIN t
CS
V
V
OUT
REF+
AD7846*
R
IN
LDAC
AD7846*
R/W
+5V
V
CLR
REF–
–(1–x)ASIN t
DGND
DB0–DB15
DB15 DB0
SIGNAL
GROUND
CS
*ADDITIONAL PINS
OMITTED FOR CLARITY
PROCESSOR DATA BUS
AD7846*
LDAC
R/W
R1
AD630*
+5V
CLR
100k⍀
*LINEAR CIRCUITRY
OMITTED FOR CLARITY
DB0–DB15
C1
1F
Figure 24. AD7846-to-8086 Interface: Multiple DAC System
TO
PROCESSOR PORT
AD7846-to-MC68000 Interface
Figure 22. AD7846 in Position Measurement Application
Interfacing between the AD7846 and MC68000 is accom-
plished using the circuit of Figure 25. The following routine
writes data to the DAC latches and then outputs the data via the
DAC latch.
MICROPROCESSOR INTERFACING
AD7846-to-8086 Interface
Figure 23 shows the 8086 16-bit processor interfacing to the
AD7846. The double buffering feature of the DAC is not used
in this circuit since LDAC is permanently tied to 0 V. AD0–
AD15 (the 16-bit data bus) are connected to the DAC data bus
(DB0–DB15). The 16-bit word is written to the DAC in one
MOV instruction and the analog output responds immediately.
In this example, the DAC address is D000H.
1000
MOVE.W #W, D0
The desired DAC data, W,
is loaded into Data Regis-
ter 0. W may be any value
between 0 and 65535
(decimal) or 0 and FFFF
(hexadecimal).
MOVE.W D0, $E000 The data, W, is transferred
between D0 and the DAC
ADDRESS BUS
register.
ADDRESS
MOVE.W #228, D7
TRAP #14
Control is returned to the
System Monitor using
these two instructions.
CS
DECODE
16-BIT
LATCH
LDAC
ALE
8086
+5V
CLR
DEN
RD
AD7846*
R/W
WR
DATA BUS
AD0–AD15
DB0–DB15
*LINEAR CIRCUITRY
OMITTED FOR CLARITY
Figure 23. AD7846-to-8086 Interface Circuit
REV. E
–11–