|
MCP4801 Datasheet, PDF (29/48 Pages) Microchip Technology – 8/10/12-Bit Voltage Output Digital-to-Analog Converter with Internal VREF and SPI Interface | |||
|
◁ |
MCP4801/4811/4821
6.7 Selectable Gain and Offset Bipolar
Voltage Output
In some applications, precision digital control of the
output range is desirable. Example 6-4 illustrates how
to use the MCP4801/4811/4821 family of devices 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 R3, R4 and R5 are populated.
EXAMPLE 6-4:
BIPOLAR VOLTAGE SOURCE WITH SELECTABLE GAIN AND OFFSET
R2
VDD
VCC+
VOUTA
R1
DACA
(DACA for Gain Adjust)
VCC+
VDD
VO
DACB
VOUTB
R5
R3
VIN+
SPI
3
(DACB for Offset Adjust)
R4 0.1 µF
VCCâ
VOUTA
=
2.048
ï
GA
ï
D-----n-
2N
VCCâ
VOUTB = 2.048 ï GB ï D-2---N-n-
VIN+
=
-V---O----U----T---B---R----4----+-----V----C---C------R----3-
R3 + R4
G = Gain selection (1x or 2x)
N = DAC bit resolution
Dn = Digital value of DAC (0-255) for MCP4801
= Digital value of DAC (0-1023) for MCP4811
= Digital value of DAC (0-4095) for MCP4821
VO
=
VIN+ï¨ï¦1 + RR----21-ï¸ï¶
â
VO
UT
A
ï¦
ï¨
RR----21-ï¸ï¶
Offset Adjust Gain Adjust
Thevenin
Equivalent
Bipolar âWindowâ DAC using R4 and R5
V45
=
-V---C----C---+---R----4----+-----V----C---C-------R---5-
R4 + R5
R45
=
----R----4---R---5----
R4 + R5
VIN+
=
V----O----U----T---B---R----4--5----+------V----4--5---R----3
R3 + R45
VO
=
VIN+ï¨ï¦1 + RR----21-ï¸ï¶
â
V
OU
ï¦
TAï¨
RR----21-ï¸ï¶
Offset Adjust Gain Adjust
ï£ 2010 Microchip Technology Inc.
DS22244B-page 29
|
▷ |