AD7846
POSITION MEASUREMENT APPLICATION
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
V
REF+
input, the inverting input to the comparator will be posi-
tive, and if it is in phase with V
REF鈥?
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.
ASIN
t
LVDT
x ASIN
t
V
REF+
V
OUT
R
IN
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.
ADDRESS BUS
ADDRESS
DECODE
ALE
16-BIT
LATCH
CS
AD7846*
LDAC
8086
DEN
RD
WR
AD0鈥揂D15
DATA BUS
R/W
CLR
DB0鈥揇B15
+5V
CS
AD7846*
LDAC
R/W
CLR
DB0鈥揇B15
SIGNAL
GROUND
AD7846*
鈥?1鈥搙)ASIN
t
V
REF鈥?/div>
DGND
DB15 DB0
+5V
*ADDITIONAL PINS
OMITTED FOR CLARITY
CS
PROCESSOR DATA BUS
AD7846*
LDAC
R/W
R1
100k
C1
1 F
AD630*
*LINEAR CIRCUITRY
OMITTED FOR CLARITY
CLR
DB0鈥揇B15
+5V
TO
PROCESSOR PORT
Figure 24. AD7846-to-8086 Interface: Multiple DAC System
AD7846-to-MC68000 Interface
Figure 22. AD7846 in Position Measurement Application
MICROPROCESSOR INTERFACING
AD7846-to-8086 Interface
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.
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).
The data, W, is transferred
between D0 and the DAC
register.
Control is returned to the
System Monitor using
these two instructions.
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鈥?/div>
AD15 (the 16-bit data bus) are connected to the DAC data bus
(DB0鈥揇B15). 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.
ADDRESS BUS
MOVE.W D0, $E000
ADDRESS
DECODE
ALE
16-BIT
LATCH
+5V
CS
LDAC
CLR
MOVE.W #228, D7
TRAP
#14
8086
DEN
RD
WR
AD0鈥揂D15
DATA BUS
*LINEAR CIRCUITRY
OMITTED FOR CLARITY
AD7846*
R/W
DB0鈥揇B15
Figure 23. AD7846-to-8086 Interface Circuit
REV. E
鈥?1鈥?/div>
prev
next