English
Language : 

AD7845_15 Datasheet, PDF (8/12 Pages) Analog Devices – LC MOS Complete 12-Bit Multiplying DAC
AD7845
APPLICATIONS 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. RFB is the amplifier input resis-
tor. As the code decreases, the R-2R ladder resistance increases
and so the gain increases.
VOUT = –VIN ×
RDAC
D
×
1
RFB ,


D
=
0
to
4095
4096


= –VIN ×
RDAC
D
×
1
RDAC
=
–VIN
D
, since RFB = RDAC
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 RFB as the input resistor, it is also
possible to use combinations of the other application resistors,
RA, RB and RC. For instance, if RB is used instead of RFB, 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
1111
1000
0100
0010
0001
0000
0000
0000
0000
1111
0000
0000
0000
0000
1000
0100
0010
0001
1111
0000
0000
0000
0000
0000
0000
0000
0000
Gain
4096/4095 ≈ 1
2
4
8
16
32
64
128
256
Error (%)
0.04
0.07
0.13
0.26
0.51
1.02
2.0
4.0
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 IL into a load referenced to a negative supply.
Figure 17 shows the circuit for sinking a programmable current,
IL. The same set of circuit equations apply for both diagrams.
IL = I3 = I2 + I1
I1 =
D
× |VIN
RDAC
|
,

 D
=
0
to
4095
4096


1
I2 = R1
 D ×|V IN |
 RDAC 
RFB =
D
× |VIN
R1
|
,
since
RFB
=
RDAC
IL =
D ×|VIN | +
R1
D ×|VIN |
RDAC
=
D ×|VIN |×
R1

1 +
R1 
RDAC 
Note that by making R1 much smaller than RDAC, the circuit
becomes insensitive to both the absolute value of RDAC and its
temperature variations. Now, the only resistor determining load
current IL 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
–8–
REV. B