Data Sheet

Table Of Contents
© 2005 Microchip Technology Inc. DS21953A-page 23
MCP4821/MCP4822
6.7 Selectable Gain and Offset Bipolar
Voltage Output Using A Dual DAC
In some applications, precision digital control of the
output range is desirable. Example 6-4 illustrates how
to use the MCP482X family to achieve this in a bipolar
or single-supply application.
This circuit is typically used for linearizing a sensor
whose slope and offset varies.
The equation to design a bipolar “window” DAC would
be utilized if R
3
, R
4
and R
5
are populated.
EXAMPLE 6-4: Bipolar Voltage Source with Selectable Gain and Offset.
MCP482X
V
DD
R
3
R
4
R
2
V
O
MCP482X
V
DD
R
1
DAC
A
(Gain Adjust)
DAC
B
(Offset Adjust)
SPI™
3
R
5
V
CC
+
Thevenin
Bipolar “Window” DAC using R
4
and R
5
G = Gain select (1x or 2x)
D = Digital value of DAC (0 – 4096)
0.1 µF
V
CC
AV
SS
= GND
V
CC
+
V
CC
V
OUTB
2.048V G
B
()
D
B
2
12
-------
=
V
OUTA
V
OUTB
V
OUTA
2.048V G
A
()
D
A
2
12
-------
=
V
IN+
V
OUTB
R
4
V
CC-
R
3
+
R
3
R
4
+
------------------------------------------------
=
V
O
V
IN+
1
R
2
R
1
----- -
+
⎝⎠
⎛⎞
V
OUTA
R
2
R
1
------
⎝⎠
⎛⎞
=
Equivalent
V
45
V
CC+
R
4
V
CC-
R
5
+
R
4
R
5
+
--------------------------------------------
= R
45
R
4
R
5
R
4
R
5
+
------------------
=
V
IN+
V
OUTB
R
45
V
45
R
3
+
R
3
R
45
+
-----------------------------------------------
= V
O
V
IN+
1
R
2
R
1
------
+
⎝⎠
⎛⎞
V
OUTA
R
2
R
1
----- -
⎝⎠
⎛⎞
=
Offset Adjust Gain Adjust
Offset Adjust Gain Adjust