ChipFind - документация

Электронный компонент: AD7845

Скачать:  PDF   ZIP
REV. B
Information furnished by Analog Devices is believed to be accurate and
reliable. However, no responsibility is assumed by Analog Devices for its
use, nor for any infringements of patents or other rights of third parties
which may result from its use. No license is granted by implication or
otherwise under any patent or patent rights of Analog Devices.
a
LC
2
MOS
Complete 12-Bit Multiplying DAC
AD7845
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781/329-4700
World Wide Web Site: http://www.analog.com
Fax: 781/326-8703
Analog Devices, Inc., 1999
FUNCTIONAL BLOCK DIAGRAM
PRODUCT HIGHLIGHTS
1. Voltage Output Multiplying DAC
The AD7845 is the first DAC which has a full 4-quadrant
multiplying capability and an output amplifier on chip. All
specifications include amplifier performance.
2. Matched Application Resistors
Three application resistors provide an easy facility for gain
ranging, voltage offsetting, etc.
3. Space Saving
The AD7845 saves space in two ways. The integration of the
output amplifier on chip means that chip count is reduced.
The part is housed in skinny 24-lead 0.3" DIP, 28-terminal
LCC and PLCC and 24-terminal SOIC packages.
GENERAL DESCRIPTION
The AD7845 is the industry's first 4-quadrant multiplying D/A
converter with an on-chip amplifier. It is fabricated on the
LC
2
MOS process, which allows precision linear components
and digital circuitry to be implemented on the same chip.
The 12 data inputs drive latches which are controlled by stan-
dard
CS and WR signals, making microprocessor interfacing
simple. For stand-alone operation, the
CS and WR inputs can
be tied to ground, making all latches transparent. All digital
inputs are TTL and 5 V CMOS compatible.
The output amplifier can supply
10 V into a 2 k
load. It is
internally compensated, and its input offset voltage is low due to
laser trimming at wafer level. For normal operation, R
FB
is tied
to V
OUT
, but the user may alternatively choose R
A
, R
B
or R
C
to
scale the output voltage range.
FEATURES
12-Bit CMOS MDAC with Output Amplifier
4-Quadrant Multiplication
Guaranteed Monotonic (T
MIN
to T
MAX
)
Space-Saving 0.3" DIPs and 24- or 28-Terminal Surface
Mount Packages
Application Resistors On Chip for Gain Ranging, etc.
Low Power LC
2
MOS
APPLICATIONS
Automatic Test Equipment
Digital Attenuators
Programmable Power Supplies
Programmable Gain Amplifiers
Digital-to-420 mA Converters
(V
DD
= +15 V, 5%, V
SS
= 15 V, 5%, V
REF
= +10 V, AGND = DGND = O V,
V
OUT
connected to R
FB
. V
OUT
load = 2 k , 100 pF. All specifications T
MIN
to T
MAX
unless otherwise noted.)
REV. B
2
AD7845SPECIFICATIONS
1
Parameter
J Version
K Version
A Version
B Version
S Version
T Version
Units
Test Conditions/Comments
ACCURACY
Resolution
12
12
12
12
12
12
Bits
1 LSB =
V
REF
2
12
= 2.4 mV
Relative Accuracy
at +25
C
1
1/2
1
1/2
1
1/2
LSB max
All Grades Are Guaranteed
T
MIN
to T
MAX
1
3/4
1
3/4
1
3/4
LSB max
Monotonic over Temperature
Differential Nonlinearity
1
1
1
1
1
1
LSB max
DAC Register Loaded with
Zero Code Offset Error
All 0s.
at +25
C
2
1
2
1
2
1
mV max
T
MIN
to T
MAX
3
2
3
2
4
3
mV max
Offset Temperature Coefficient;
(
Offset/
Temperature)
2
5
5
5
5
5
5
V/
C typ
Gain Error
3
2
3
2
3
2
LSB max
R
FB
, V
OUT
Connected
6
6
6
6
6
6
LSB max
R
C
, V
OUT
Connected, V
REF
= +5 V
6
6
6
6
6
6
LSB max
R
B
, V
OUT
Connected, V
REF
= +5 V
7
7
7
7
7
7
LSB max
R
A
, V
OUT
Connected, V
REF
= +2.5 V
Gain Temperature Coefficient;
(
Gain/
Temperature)
2
2
2
2
2
2
2
ppm of FSR/
C R
FB
, V
OUT
Connected
typ
REFERENCE INPUT
Input Resistance, Pin 17
8
8
8
8
8
8
k
min
Typical Input Resistance = 12 k
16
16
16
16
16
16
k
max
APPLICATION RESISTOR
RATIO MATCHING
0.5
0.5
0.5
0.5
0.5
0 5
% max
Matching Between R
A
, R
B
, R
C
DIGITAL INPUTS
V
IH
(Input High Voltage)
2.4
2.4
2.4
2.4
2.4
2.4
V min
V
IL
(Input Low Voltage)
0.8
0.8
0.8
0.8
0.8
0.8
V max
I
IN
(Input Current)
1
1
1
1
1
1
A max
Digital Inputs at 0 V and V
DD
C
IN
(Input Capacitance)
2
7
7
7
7
7
7
pF max
POWER SUPPLY
4
V
DD
Range
14.25/15.75
14.25/15.75
14.25/15.75
14.25/15.75
14.25/15.75
14.25/15.75
V min/V max
V
SS
Range
14.25/15.75 14.25/15.75 14.25/15.75 14.25/15.75
14.25/15.75 14.25/15.75
V min/V max
Power Supply Rejection
Gain/
V
DD
0.01
0.01
0.01
0.01
0.01
0.01
% per % max
V
DD
= +15 V
5%, V
REF
= 10 V
Gain/
V
SS
0.01
0.01
0.01
0.01
0.01
0.01
% per % max
V
SS
= 15 V
5%.
I
DD
6
6
6
6
6
6
mA max
V
OUT
Unloaded
I
SS
4
4
4
4
4
4
mA max
V
OUT
Unloaded
AC PERFORMANCE CHARACTERISTICS
These characteristics are included for Design Guidance and are not subject to test.
DYNAMIC PERFORMANCE
Output Voltage Settling Time
5
5
5
5
5
5
s max
To 0.01% of Full-Scale Range
V
OUT
Load = 2 k
, 100 pF.
DAC Register Alternately Loaded
with All 0s and All 1s. Typically
2.5
s at 25
C.
Slew Rate
11
11
11
11
11
11
V/
s typ
V
OUT
Load = 2 k
, 100 pF.
Digital-to-Analog
55
55
55
55
55
55
nVs typ
Measured with V
REF
= 0 V.
Glitch Impulse
DAC Register Alternately Loaded
with All 0s and All 1s.
Multiplying Feedthrough
5
5
5
5
5
5
mV p-p typ
V
REF
=
10 V, 10 kHz Sine Wave
Error
3
DAC Register Loaded with All 0s.
Unity Gain Small Signal
Bandwidth
600
600
600
600
600
600
kHz typ
V
OUT
, R
FB
Connected. DAC Loaded
with All 1s V
REF
= 100 mV p-p
Sine Wave.
Full Power Bandwidth
175
175
175
175
175
175
kHz typ
V
OUT
, R
FB
Connected. DAC Loaded
with All 1s. V
REF
= 20 V p-p
Sine Wave. R
L
= 2 k
.
Total Harmonic Distortion
90
90
90
90
90
90
dB typ
V
REF
= 6 V rms, 1 kHz Sine Wave.
OUTPUT CHARACTERISTICS
5
Open Loop Gain
85
85
85
85
85
85
dB min
V
OUT
, R
FB
Not Connected
V
OUT
=
10 V, R
L
= 2 k
Output Voltage Swing
10
10
10
10
10
10
V min
R
L
= 2 k
, C
L
= 100 pF
Output Resistance
0.2
0.2
0.2
0.2
0.2
0.2
typ
R
FB
, V
OUT
Connected,
Short Circuit Current @ +25
C
11
11
11
11
11
11
mA typ
V
OUT
Shorted to AGND
Output Noise Voltage
Includes Noise Due to Output
(0.1 Hz to 10 Hz) @ +25
C
2
2
2
2
2
2
V rms typ
Amplifier and Johnson Noise
f = 10 Hz
250
250
250
250
250
250
nV/
Hz typ
of R
FB
f = 100 Hz
100
100
100
100
100
100
nV/
Hz typ
f = 1 kHz
50
50
50
50
50
50
nV/
Hz typ
f = 10 kHz
50
50
50
50
50
50
nV/
Hz typ
f = 100 kHz
50
50
50
50
50
50
nV/
Hz typ
NOTES
1
Temperature ranges are as follows: J, K Versions: 0
C to +70
C; A, B Versions: 40
C to +85
C; S, T Versions: 55
C to +125
C.
2
Guaranteed by design and characterization, not production tested.
3
The metal lid on the ceramic D-24A package is connected to Pin 12 (DGND).
4
The device is functional with a power supply of
12 V.
5
Minimum specified load resistance is 2 k
.
Specifications subject to change without notice.
AD7845
REV. B
3
Limit at T
MIN
to T
MAX
Parameter
(All Versions)
Units
Test Conditions/Comments
t
CS
30
ns min
Chip Select to Write Setup Time
t
CH
0
ns min
Chip Select to Write Hold Time
t
WR
30
ns min
Write Pulsewidth
t
DS
80
ns min
Data Setup Time
t
DH
0
ns min
Data Hold Time
NOTES
1
Guaranteed by design and characterization, not production tested.
Specifications subject to change without notice.
TIMING CHARACTERISTICS
1
(V
DD
= +15 V, 5%. V
SS
= 15 V, 5%. V
REF
= +10 V. AGND = DGND = O V.)
ORDERING GUIDE
1
Relative
Temperature
Accuracy
Package
Model
2
Range
@ +25 C
Option
3
AD7845JN
0
C to +70
C
1 LSB
N-24
AD7845KN
0
C to +70
C
1/2 LSB
N-24
AD7845JP
0
C to +70
C
1 LSB
P-28A
AD7845KP
0
C to +70
C
1/2 LSB
P-28A
AD7845JR
0
C to +70
C
1 LSB
R-24
AD7845KR
0
C to +70
C
1/2 LSB
R-24
AD7845AQ
40
C to +85
C
1 LSB
Q-24
AD7845BQ
40
C to +85
C
1/2 LSB
Q-24
AD7845AR
40
C to +85
C
1 LSB
R-24
AD7845BR
40
C to +85
C
1/2 LSB
R-24
AD7845SQ/883B
55
C to +125
C
1 LSB
Q-24
AD7845TQ/883B
55
C to +125
C
1/2 LSB
Q-24
AD7845SE/883B
55
C to +125
C
1 LSB
E-28A
NOTES
1
Analog Devices reserves the right to ship either ceramic (D-24A) or cerdip
(Q-24) hermetic packages.
2
To order MIL-STD-883, Class B processed parts, add /883B to part number.
3
E = Leadless Ceramic Chip Carrier; N = Plastic DIP; P = Plastic Leaded Chip
Carrier; Q = Cerdip; R = SOIC.
CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily
accumulate on the human body and test equipment and can discharge without detection.
Although the AD7845 features proprietary ESD protection circuitry, permanent damage may
occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD
precautions are recommended to avoid performance degradation or loss of functionality.
Operating Temperature Range
Commercial (J, K Versions) . . . . . . . . . . . . . 0
C to +70
C
Industrial (A, B Versions) . . . . . . . . . . . . 40
C to +85
C
Extended (S, T Versions) . . . . . . . . . . . . 55
C to +125
C
Storage Temperature Range . . . . . . . . . . . 65
C to +150
C
Lead Temperature (Soldering, 10 sec) . . . . . . . . . . . +300
C
NOTES
1
Stresses above those listed under Absolute Maximum Ratings may cause
permanent damage to the device. This is a stress rating only; functional
operation of the device at these or any other conditions above those indicated in
the operational sections of this specification is not implied. Exposure to absolute
maximum rating conditions for extended periods of time may affect device
reliability. Only one Absolute Maximum Rating may be applied at any one time.
2
V
OUT
may be shorted to AGND provided that the power dissipation of the
package is not exceeded.
CS
WR
DATA
5V
0V
5V
0V
5V
0V
NOTES
1. ALL INPUT SIGNAL RISE AND FALL TIMES MEASURED FROM
10% TO 90% OF +5V. t
R
= t
F
= 20ns.
2. TIMING MEASUREMENT REFERENCE LEVEL IS
V
IH
+ V
IL
2
t
CS
t
CH
t
WR
t
DS
t
DH
Figure 1. AD7845 Timing Diagram
ABSOLUTE MAXIMUM RATINGS
1
(T
A
= +25
C unless otherwise stated)
V
DD
to DGND . . . . . . . . . . . . . . . . . . . . . . . . 0.3 V to +17 V
V
SS
to DGND . . . . . . . . . . . . . . . . . . . . . . . . +0.3 V to 17 V
V
REF
to AGND . . . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
V
RFB
to AGND . . . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
V
RA
to AGND . . . . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
V
RB
to AGND . . . . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
V
RC
to AGND . . . . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
V
OUT
to AGND
2
. . . . . . . . . . . . . . . V
DD
+ 0.3 V, V
SS
0.3 V
AGND to DGND . . . . . . . . . . . . . . . . . . . . . . . . 0.3 V, V
DD
Digital Input Voltage to DGND . . . . . 0.3 V to V
DD
+ 0.3 V
Power Dissipation (Any Package)
To +75
C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650 mW
Derates above +75
C . . . . . . . . . . . . . . . . . . . . . 10 mW/
C
WARNING!
ESD SENSITIVE DEVICE
AD7845
REV. B
4
PIN CONFIGURATIONS
LCC
PLCC
DIP, SOIC
DIGITAL-TO-ANALOG GLITCH IMPULSE
This is the amount of charge injected from the digital inputs to
the analog output when the inputs change state. This is nor-
mally specified as the area of the glitch in either pA-secs or
nV-secs depending upon whether the glitch is measured as a
current or voltage. The measurement takes place with V
REF
=
AGND.
DIGITAL FEEDTHROUGH
When the DAC is not selected (i.e.,
CS is high) high frequency
logic activity on the device digital inputs is capacitively coupled
through the device to show up as noise on the V
OUT
pin. This
noise is digital feedthrough.
MULTIPLYING FEEDTHROUGH ERROR
This is ac error due to capacitive feedthrough from the V
REF
terminal to V
OUT
when the DAC is loaded with all 0s.
OPEN-LOOP GAIN
Open-loop gain is defined as the ratio of a change of output
voltage to the voltage applied at the V
REF
pin with all 1s loaded
in the DAC. It is specified at dc.
UNITY GAIN SMALL SIGNAL BANDWIDTH
This is the frequency at which the magnitude of the small signal
voltage gain of the output amplifier is 3 dB below unity. The
device is operated as a closed-loop unity gain inverter (i.e.,
DAC is loaded with all 1s).
OUTPUT RESISTANCE
This is the effective output source resistance.
FULL POWER BANDWIDTH
Full power bandwidth is specified as the maximum frequency, at
unity closed-loop gain, for which a sinusoidal input signal will
produce full output at rated load without exceeding a distortion
level of 3%.
TERMINOLOGY
LEAST SIGNIFICANT BIT
This is the analog weighting of 1 bit of the digital word in a
DAC. For the AD7845, 1 LSB =
V
REF
2
12
.
RELATIVE ACCURACY
Relative accuracy or endpoint nonlinearity is a measure of the
maximum deviation from a straight line passing through the
endpoints of the DAC transfer function. It is measured after
adjusting for both endpoints (i.e., offset and gain error are ad-
justed out) and is normally expressed in least significant bits or
as a percentage of full-scale range.
DIFFERENTIAL NONLINEARITY
Differential nonlinearity is the difference between the measured
change and the ideal 1 LSB change between any two adjacent
codes. A specified differential nonlinearity of +1 LSB max over
the operating temperature range ensures monotonicity.
GAIN ERROR
Gain error is a measure of the output error between an ideal
DAC and the actual device output with all 1s loaded after offset
error has been adjusted out. Gain error is adjustable to zero
with an external potentiometer. See Figure 13.
ZERO CODE OFFSET ERROR
This is the error present at the device output with all 0s loaded
in the DAC. It is due to the op amp input offset voltage and
bias current and the DAC leakage current.
TOTAL HARMONIC DISTORTION
This is the ratio of the root-mean-square (rms) sum of the har-
monics to the fundamental, expressed in dBs.
OUTPUT NOISE
This is the noise due to the white noise of the DAC and the
input noise of the amplifier.
Typical Performance CharacteristicsAD7845
5
REV. B
Figure 3. Output Voltage Swing vs.
Resistive Load
Figure 6. Typical AD7845 Linearity
vs. Power Supply
Figure 9. Unity Gain Inverter Pulse
Response (Small Signal)
Figure 4. Noise Spectral Density
Figure 7. Multiplying Feedthrough
Error vs. Frequency
TIME s
OUTPUT mV
80
10
20
0
2
20
4
6
8
10
12 14
16
18
70
20
0
10
40
30
60
50
Figure 10. Digital-to-Analog Glitch
Impulse (All 1s to All 0s Transition)
Figure 2. Frequency Response, G = 1
Figure 5. THD vs. Frequency
Figure 8. Unity Gain Inverter Pulse
Response (Large Signal)
AD7845
REV. B
6
PIN FUNCTION DESCRIPTION (DIP)
Pin
Mnemonic
Description
1
V
OUT
Voltage Output Terminal
2-11
DB11DB2
Data Bit 11 (MSB) to Data Bit 2
12
DGND
Digital Ground. The metal lid on the ceramic package is connected to this pin
13-14
DB1DB0
Data Bit 1 to Data Bit 0 (LSB)
15
WR
Write Input. Active low
16
CS
Chip Select Input. Active low
17
V
REF
Reference Input Voltage which can be an ac or dc signal
18
AGND
Analog Ground. This is the reference point for external analog circuitry
19
V
SS
Negative power supply for the output amplifier (nominal 12 V to +15 V)
20
V
DD
Positive power supply (nominal +12 V to +15 V)
21
R
A
Application resistor. R
A
= 4 R
FB
22
R
B
Application resistor. R
B
= 2 R
FB
23
R
C
Application resistor. R
C
= 2 R
FB
24
R
FB
Feedback resistor in the DAC. For normal operation this is connected to V
OUT
CIRCUIT INFORMATION
Digital Section
Figure 11 is a simplified circuit diagram of the AD7845 input
control logic. When
CS and WR are both low, the DAC latch is
loaded with the data on the data inputs. All the digital inputs
are TTL, HCMOS and +5 V CMOS compatible, facilitating
easy microprocessor interfacing. All digital inputs incorporate
standard protection circuitry.
Figure 11. AD7845 Input Control Logic
D/A Section
Figure 12 shows a simplified circuit diagram for the AD7845
D/A section and output amplifier.
A segmented scheme is used whereby the 2 MSBs of the 12-bit
data word are decoded to drive the three switches A-C. The
remaining 10 bits drive the switches (S0S9) in a standard R-2R
ladder configuration.
R
R
R
2R
2R
2R
2R
2R
B
A
S9
2R
C
V
REF
S8
S0
SHOWN FOR ALL 1s ON DAC
2R
I
OUT
AGND
Figure 12. Simplified Circuit Diagram for the AD7845 D/A
Section
Each of the switches AC steers 1/4 of the total reference cur-
rent with the remaining 1/4 passing through the R-2R section.
An output amplifier and feedback resistor perform the current-
to-voltage conversion giving
V
OUT
= D
V
REF
where D is the fractional representation of the digital word. (D
can be set from 0 to 4095/4096.)
The amplifier can maintain
10 V across a 2 k
load. It is inter-
nally compensated and settles to 0.01% FSR (1/2 LSB) in less
than 5
s. The input offset voltage is laser trimmed at wafer
level. The amplifier slew rate is typically 11 V/
s, and the unity
gain small signal bandwidth is 600 kHz. There are three extra
on-chip resistors (R
A
, R
B
, R
C
) connected to the amplifier invert-
ing terminal. These are useful in a number of applications in-
cluding offset adjustment and gain ranging.
AD7845
REV. B
7
UNIPOLAR BINARY OPERATION
Figure 13 shows the AD7845 connected for unipolar binary
operation. When V
IN
is an ac signal, the circuit performs
2-quadrant multiplication. The code table for Figure 13 is given
in Table I.
Figure 13. Unipolar Binary Operation
Table I. Unipolar Binary Code Table for AD7845
Binary Number In
DAC Register
Analog Output, V
OUT
MSB
LSB
1111
1111
1111
V
IN
4095
4096




1000
0000
0000
V
IN
2048
4096




= 1/2 V
IN
0000
0000
0001
V
IN
1
4096




0000
0000
0000
0 V
OFFSET AND GAIN ADJUSTMENT FOR FIGURE 13
Zero Offset Adjustment
1. Load DAC with all 0s.
2. Trim R3 until V
OUT
= 0 V.
Gain Adjustment
1. Load DAC with all 1s.
2. Trim R1 so that V
OUT
= V
IN
4095
4096
.
In fixed reference applications, full scale can also be adjusted by
omitting R1 and R2 and trimming the reference voltage magni-
tude. For high temperature applications, resistors and potenti-
ometers should have a low temperature coefficient.
BIPOLAR OPERATION
(4-QUADRANT MULTIPLICATION)
The recommended circuit for bipolar operation is shown in
Figure 14. Offset binary coding is used.
The offset specification of this circuit is determined by the
matching of internal resistors R
B
and R
C
and by the zero code
offset error of the device. Gain error may be adjusted by varying
the ratio of R1 and R2.
To use this circuit without trimming and keep within the gain
error specifications, resistors R1 and R2 should be ratio
matched to 0.01%.
The code table for Figure 14 is given in Table II.
Figure 14. Bipolar Offset Binary Operation
Table II. Bipolar Code Table for Offset Binary Circuit of
Figure 14
Binary Number In
DAC Register
Analog Output, V
OUT
MSB
LSB
1111
1111
1111
+V
IN
2047
2048




1000
0000
0001
+V
IN
1
2048




1000
0000
0000
0 V
0111
1111
1111
V
IN
1
2048




0000
0000
0000
V
IN
2048
2048




= V
IN
AD7845
REV. B
8
APPLI
CATION
S CIRCUITS
PROGRAMMABLE GAIN AMPLIFIER (PGA)
The AD7845 performs a PGA function when connected as in
Figure 15. In this configuration, the R-2R ladder is connected
in the amplifier feedback loop. R
FB
is the amplifier input resis-
tor. As the code decreases, the R-2R ladder resistance increases
and so the gain increases.
V
OUT
= V
IN
R
DAC
D
1
R
FB
,
D
=
0 to
4095
4096




= V
IN
R
DAC
D
1
R
DAC
=
V
IN
D
, since R
FB
= R
DAC
Figure 15. AD7845 Connected as PGA
As the programmed gain increases, the error and noise also
increase. For this reason, the maximum gain should be limited
to 256. Table III shows gain versus code.
Note that instead of using R
FB
as the input resistor, it is also
possible to use combinations of the other application resistors,
R
A
, R
B
and R
C
. For instance, if R
B
is used instead of R
FB
, the
gain range for the same codes of Table II now goes from l/2
to 128.
Table III. Gain and Error vs. Input Code for Figure 15
Digital Inputs
Gain
Error (%)
1111
1111
1111
4096/4095
1
0.04
1000
0000
0000
2
0.07
0100
0000
0000
4
0.13
0010
0000
0000
8
0.26
0001
0000
0000
16
0.51
0000
1000
0000
32
1.02
0000
0100
0000
64
2.0
0000
0010
0000
128
4.0
0000
0001
0000
256
8.0
PROGRAMMABLE CURRENT SOURCES
The AD7845 is ideal for designing programmable current
sources using a minimum of external components. Figures 16
and 17 are examples. The circuit of Figure 16 drives a program-
mable current I
L
into a load referenced to a negative supply.
Figure 17 shows the circuit for sinking a programmable current,
I
L
. The same set of circuit equations apply for both diagrams.
I
L
= I
3
= I
2
+ I
1
I
1
=
D
|V
IN
|
R
DAC
,
D
=
0 to
4095
4096




I
2
=
1
R1
D
|V
IN
|
R
DAC




R
FB
=
D
|V
IN
|
R1
, since R
FB
= R
DAC
I
L
=
D
|V
IN
|
R1
+
D
|V
IN
|
R
DAC
=
D
|V
IN
|
R1
1
+
R1
R
DAC




Note that by making R1 much smaller than R
DAC
, the circuit
becomes insensitive to both the absolute value of R
DAC
and its
temperature variations. Now, the only resistor determining load
current I
L
is the sense resistor R1.
If R1 = 100
, then the programming range is 0 mA to 100 mA,
and the resolution is 0.024 mA.
Figure 16. Programmable Current Source
AD7845
REV. B
9
Figure 17. Programmable Current Sink
420 mA CURRENT LOOP
The AD7845 provides an excellent way of making a 4-20 mA
current loop circuit. This is basically a variation of the circuits
in Figures 16 and 17 and is shown in Figure 18. The application
resistor R
A
(Value 4R) produces the effective 4 mA offset.
I
L
= I
3
= I
2
+ I
1
Since I
2
> I
1
,
I
L
=
V
X
156
=
2.5
4R
R
FB
+
2.5
R
DAC
D
R
FB




1
156
and since R
DAC
=R
FB
=R
I
L
=
2.5
4
+
D
2.5




1000
156
mA
= [4 + (16
D)]mA, where D goes from 0 to 1 with
Digital Code
When D = 0 (Code of all 0s):
I
L
= 4 mA
When D = 1 (Code of all 1s):
I
L
= 20 mA
The above circuit succeeds in significantly reducing the circuit
component count. Both the on-chip output amplifier and the
application resistor R
A
contribute to this.
Figure 18. 420 mA Current Loop
APPLICATION HINTS
General Ground Management: AC or transient voltages
between AGND and DGND can cause noise injection into the
analog output. The simplest method of ensuring that voltages at
AGND and DGND are equal is to tie AGND and DGND
together at the AD7845. In more complex systems where the
AGND and DGND intertie is on the backplane, it is recom-
mended that two diodes be connected in inverse parallel be-
tween the AD7845 AGND and DGND pins (IN914 or
equivalent).
Digital Glitches: When a new digital word is written into the
DAC, it results in a change of voltage applied to some of the
DAC switch gates. This voltage change is coupled across the
switch stray capacitance and appears as an impulse on the cur-
rent output bus of the DAC. In the AD7845, impulses on this
bus are converted to a voltage by R
FB
and the output amplifier.
The output voltage glitch energy is specified as the area of the
resulting spike in nV-seconds. It is measured with V
REF
con-
nected to analog ground and for a zero to full-scale input code
transition. Since microprocessor based systems generally have
noisy grounds which couple into the power supplies, the
AD7845 V
DD
and V
SS
terminals should be decoupled to signal
ground.
Temperature Coefficients: The gain temperature coefficient
of the AD7845 has a maximum value of 5 ppm/
C. This corre-
sponds to worst case gain shift of 2 LSBs over a 100
C tem-
perature range. When trim resistors R1 and R2 in Figure 13
are used to adjust full-scale range, the temperature coefficient
of R1 and R2 must be taken into account. The offset tempera-
ture coefficient is 5 ppm of FSR/
C maximum. This corre-
sponds to a worst case offset shift of 2 LSBs over a 100
C
temperature range.
The reader is referred to Analog Devices Application Note
"Gain Error and Gain Temperature Coefficient of CMOS Mul-
tiplying DACs," Publication Number E630C-5-3/86.
AD7845
REV. B
10
8-BIT MICROPROCESSOR SYSTEMS
Figure 22 shows an interface circuit for the AD7845 to the
8085A 8-bit microprocessor. The software routine to load data
to the device is given in Table IV. Note that the transfer of the
12 bits of data requires two write operations. The first of these
loads the 4 MSBs into the 7475 latch. The second write opera-
tion loads the 8 LSBs plus the 4 MSBs (which are held by the
latch) into the DAC.
Figure 22. 8085A Interface
Table IV. Subroutine Listing for Figure 22
2000 LOAD DAC: LXI
H,#3000
The H,L register pair
are loaded with latch
address 3000.
MVI
A,#"MS"
Load the 4 MSBs of
data into accumulator.
MOV
M,A
Transfer data from
accumulator to latch.
INR
L
Increment H,L pair to
AD7845 address.
MVI
A,#"LS"
Load the 8 LSBs of
data into accumulator.
MOV
M,A
Transfer data from
accumulator to DAC.
RET
End of routine.
MICROPROCESSOR INTERFACING
16-BIT MICROPROCESSOR SYSTEMS
Figures 19, 20 and 21 show how the AD7845 interfaces to
three popular 16-bit microprocessor systems. These are the
MC68000, 8086 and the TM32010. The AD7845 is treated as
a memory-mapped peripheral to the processors. In each case, a
write instruction loads the AD7845 with the appropriate data.
The particular instructions used are as follows:
MC68000:
MOVE
8086:
MOV
TMS32010: OUT
Figure 19. AD7845 to MC68000 Interface
Figure 20. AD7845 to 8086 Interface
Figure 21. TMS32010
AD7845
REV. B
11
Figure 23 and 24 are the interface circuits for the Z80 and
MC6809 microprocessors. Again, these use the same basic
format as the 8085A interface.
Figure 23. AD7845 to Z80 Interface
Figure 24. MC6809 Interface
DIGITAL FEEDTHROUGH
In the preceding interface configurations, most digital inputs to
the AD7845 are directly connected to the microprocessor bus.
Even when the device is not selected, these inputs will be con-
stantly changing. The high frequency logic activity on the bus
can feed through the DAC package capacitance to show up as
noise on the analog output. To minimize this digital feedthrough
isolate the DAC from the noise source. Figure 25 shows an
interface circuit which uses this technique. All data inputs are
latched from the busy by the
CS signal. One may also use other
means, such as peripheral interface devices, to reduce the digital
feedthrough.
Figure 25. AD7845 Interface Circuit Using Latches to
Minimize Digital Feedthrough
AD7845
REV. B
12
OUTLINE DIMENSIONS
Dimensions shown in inches and (mm).
C1189b19/99
PRINTED IN U.S.A.
24-Lead Plastic DIP
(N-24)
24-Lead Cerdip
(Q-24)
24-Lead Ceramic DIP
(D-24A)
28-Terminal Leadless Ceramic Chip Carrier
(E-28A)
28-Terminal Plastic Leaded Chip Carrier
(P-28A)
24-Lead SOIC
(R-24)
0.0125 (0.32)
0.0091 (0.23)
8
0
0.0291 (0.74)
0.0098 (0.25)
45
0.0500 (1.27)
0.0157 (0.40)
SEATING
PLANE
0.0118 (0.30)
0.0040 (0.10)
0.0192 (0.49)
0.0138 (0.35)
0.1043 (2.65)
0.0926 (2.35)
0.0500
(1.27)
BSC
24
13
12
1
0.4193 (10.65)
0.3937 (10.00)
0.2992 (7.60)
0.2914 (7.40)
PIN 1
0.6141 (15.60)
0.5985 (15.20)