MCP41XXX/42XXX
In order for these circuits to work properly, care must be
taken in a few areas. For linear operation, the analog
input and output signals must be in the range of VSS to
VDD for the potentiometer and input and output rails of
the op-amp. The circuit in Figure 4-4 requires a virtual
ground or reference input to the non-inverting input of
the amplifier. Refer to Application Note 682, “Using
Single-Supply Operational Amplifiers in Embedded
Systems” (DS00682), for more details. At power-up or
reset (RS), the resistance is set to mid-scale, with RA
and RB matching. Based on the transfer function for the
circuit, the gain is -1 V/V. As the code is increased and
the wiper moves towards the A terminal, the gain
increases. Conversely, when the wiper is moved
towards the B terminal, the gain decreases. Figure 4-6
shows this relationship. Notice the pseudo-logarithmic
gain around decimal code 128. As the wiper
approaches either terminal, the step size in the gain
calculation increases dramatically. Due to the
mismatched ratio of RA and RB at the extreme high and
low codes, small increments in wiper position can
dramatically affect the gain. As shown in Figure 4-3,
recommended gains lie between 0.1 and 10 V/V.
4.2
Typical Applications
4.2.1
PROGRAMMABLE SINGLE-ENDED
AMPLIFIERS
Potentiometers are often used to adjust system refer-
ence levels or gain. Programmable gain circuits using
digital potentiometers can be realized in a number of
different ways. An example of a single-supply, inverting
gain amplifier is shown in Figure 4-4. Due to the high
input impedance of the amplifier, the wiper resistance
is not included in the transfer function. For a single-sup-
ply, non-inverting gain configuration, the circuit in
Figure 4-5 can be used.
.
MCP41010
B
A
W
VIN
VDD
-
-IN
VOUT
MCP606
+IN
+
VREF
VSS
10
RB
RA
RB
-------
RA
VOUT = –VIN
+ VREF 1 + -------
Where:
1
R
AB(256 – Dn)
RABDn
256
RA = -------------------------------------- RB = ------------------
256
RAB = Total Resistance of pot
Dn = Wiper setting forDn = 0 to 255
0.1
0
64
128
192
256
Decimal code (0-255)
FIGURE 4-4:
Single-supply,
programmable, inverting gain amplifier using a
digital potentiometer.
FIGURE 4-6:
Gain vs. Code for inverting
and differential amplifier circuits.
VDD
4.2.2
PROGRAMMABLE DIFFERENTIAL
AMPLIFIER
+
VIN
+IN
-IN
W
VOUT
MCP606
An example of a differential input amplifier using digital
potentiometers is shown in Figure 4-7. For the transfer
function to hold, both pots must be programmed to the
same code. The resistor-matching from channel-to-
channel within a dual device can be used as an advan-
tage in this circuit. This circuit will also show stable
operation over temperature due to the low potentiome-
ter temperature coefficient. Figure 4-6 also shows the
relationship between gain and code for this circuit. As
the wiper approaches either terminal, the step size in
the gain calculation increases dramatically. This circuit
is recommended for gains between 0.1 and 10 V/V.
-
VSS
RA
RB
MCP41010
RB
VOUT = VIN 1 + -------
RA
Where:
R
AB(256 – Dn)
RABDn
RA = -------------------------------------- RB = ------------------
256
256
RAB = Total Resistance of pot
Dn = Wiper setting forDn = 0 to 255
FIGURE 4-5:
Single-supply,
programmable, non-inverting gain amplifier.
2003 Microchip Technology Inc.
DS11195C-page 15