Professional Documents
Culture Documents
8/10/12-Bit Dual Voltage Output Digital-to-Analog Converter With Internal V and SPI Interface
8/10/12-Bit Dual Voltage Output Digital-to-Analog Converter With Internal V and SPI Interface
Features Description
• MCP4802: Dual 8-Bit Voltage Output DAC The MCP4802/4812/4822 devices are dual 8-bit, 10-bit
• MCP4812: Dual 10-Bit Voltage Output DAC and 12-bit buffered voltage output Digital-to-Analog
• MCP4822: Dual 12-Bit Voltage Output DAC Converters (DACs), respectively. The devices operate
from a single 2.7V to 5.5V supply with SPI compatible
• Rail-to-Rail Output
Serial Peripheral Interface.
• SPI Interface with 20 MHz Clock Support
The devices have a high precision internal voltage
• Simultaneous Latching of the Dual DACs reference (VREF = 2.048V). The user can configure the
with LDAC pin full-scale range of the device to be 2.048V or 4.096V by
• Fast Settling Time of 4.5 µs setting the Gain Selection Option bit (gain of 1 of 2).
• Selectable Unity or 2x Gain Output Each DAC channel can be operated in Active or
• 2.048V Internal Voltage Reference Shutdown mode individually by setting the Configuration
• 50 ppm/°C VREF Temperature Coefficient register bits. In Shutdown mode, most of the internal
circuits in the shutdown channel are turned off for power
• 2.7V to 5.5V Single-Supply Operation
savings and the output amplifier is configured to present
• Extended Temperature Range: -40°C to +125°C a known high resistance output load (500 k typical.
The devices include double-buffered registers,
Applications allowing synchronous updates of two DAC outputs
• Set Point or Offset Trimming using the LDAC pin. These devices also incorporate a
Power-on Reset (POR) circuit to ensure reliable power-
• Sensor Calibration
up.
• Precision Selectable Voltage Reference
The devices utilize a resistive string architecture, with
• Portable Instrumentation (Battery-Powered) its inherent advantages of low DNL error, low ratio
• Calibration of Optical Communication Devices metric temperature coefficient and fast settling time.
These devices are specified over the extended
Related Products(1) temperature range (+125°C).
The devices provide high accuracy and low noise
Voltage performance for consumer and industrial applications
DAC No. of
P/N Reference where calibration or compensation of signals (such as
Resolution Channels
(VREF) temperature, pressure and humidity) are required.
MCP4801 8 1 The MCP4802/4812/4822 devices are available in the
MCP4811 10 1 PDIP, SOIC and MSOP packages.
MCP4821 12 1 Internal
(2.048V)
Package Types
MCP4802 8 2
8-Pin PDIP, SOIC, MSOP
MCP4812 10 2
MCP4822 12 2 VDD 1 8 VOUTA
MCP48X2
MCP4901 8 1 CS 2 7 VSS
MCP4911 10 1 SCK 3 6 VOUTB
MCP4921 12 1 SDI 4 5 LDAC
External
MCP4902 8 2
MCP4802: 8-bit dual DAC
MCP4912 10 2 MCP4812: 10-bit dual DAC
MCP4922 12 2 MCP4822: 12-bit dual DAC
Note 1: The products listed here have similar
AC/DC performances.
VDD
Interface Logic Power-on
Reset
VSS
Input Input
Register A Register B
2.048V
VREF
DACA DACB
Register Register
String String
DACA DACB
Gain Gain
Logic Output Logic
Op Amps
Output
Logic
VOUTA VOUTB
ELECTRICAL CHARACTERISTICS
Electrical Specifications: Unless otherwise indicated, VDD = 5V, VSS = 0V, VREF = 2.048V,
Output Buffer Gain (G) = 2x, RL = 5 k to GND, CL = 100 pF, TA = -40 to +85°C. Typical values are at +25°C.
Parameters Sym Min Typ Max Units Conditions
Power Requirements
Input Voltage VDD 2.7 — 5.5 V
Input Current IDD — 415 750 µA All digital inputs are grounded,
all analog outputs (VOUT) are
unloaded. Code = 0x000h
Software Shutdown Current ISHDN_SW — 3.3 6 µA
Power-on Reset Threshold VPOR — 2.0 — V
DC Accuracy
MCP4802
Resolution n 8 — — Bits
INL Error INL -1 ±0.125 1 LSb
DNL DNL -0.5 ±0.1 +0.5 LSb Note 1
MCP4812
Resolution n 10 — — Bits
INL Error INL -3.5 ±0.5 3.5 LSb
DNL DNL -0.5 ±0.1 +0.5 LSb Note 1
MCP4822
Resolution n 12 — — Bits
INL Error INL -12 ±2 12 LSb
DNL DNL -0.75 ±0.2 +0.75 LSb Note 1
Offset Error VOS -1 ±0.02 1 % of FSR Code = 0x000h
Offset Error Temperature VOS/°C — 0.16 — ppm/°C -45°C to +25°C
Coefficient — -0.44 — ppm/°C +25°C to +85°C
Gain Error gE -2 -0.10 2 % of FSR Code = 0xFFFh,
not including offset error
Gain Error Temperature G/°C — -3 — ppm/°C
Coefficient
Note 1: Guaranteed monotonic by design over all codes.
2: This parameter is ensured by design, and not 100% tested.
tCSH
CS
tIDLE
tCSSR tHI tLO tCHS
Mode 1,1
SCK Mode 0,0
tSU tHD
SDI
MSb in LSb in
LDAC
tLS tLD
TEMPERATURE CHARACTERISTICS
Electrical Specifications: Unless otherwise indicated, VDD = +2.7V to +5.5V, VSS = GND.
Parameters Sym Min Typ Max Units Conditions
Temperature Ranges
Specified Temperature Range TA -40 — +125 °C
Operating Temperature Range TA -40 — +125 °C Note 1
Storage Temperature Range TA -65 — +150 °C
Thermal Package Resistances
Thermal Resistance, 8L-MSOP JA — 211 — °C/W
Thermal Resistance, 8L-PDIP JA — 90 — °C/W
Thermal Resistance, 8L-SOIC JA — 150 — °C/W
Note 1: The MCP4802/4812/4822 devices operate over this extended temperature range, but with reduced
performance. Operation in this range must not cause TJ to exceed the maximum junction temperature
of +150°C.
0.3 5
Ambient Temperature
4
0.2 125C 85 25
3
0.1 2
DNL (LSB)
INL (LSB)
1
0 0
-1
-0.1
-2
-0.2 -3
-4
-0.3 -5
0 1024 2048 3072 4096 0 1024 2048 3072 4096
Code (Decimal) Code (Decimal)
FIGURE 2-1: DNL vs. Code (MCP4822). FIGURE 2-4: INL vs. Code and
Temperature (MCP4822).
0.2 2.5
2
Absolute INL (LSB)
0.1
DNL (LSB)
1.5
0
1
-0.1 0.5
-0.2 0
0 1024 2048 3072 4096 -40 -20 0 20 40 60 80 100 120
FIGURE 2-2: DNL vs. Code and FIGURE 2-5: Absolute INL vs.
Temperature (MCP4822). Temperature (MCP4822).
0.0766 2
0.0764
Absolute DNL (LSB)
0.0762 0
INL (LSB)
0.076
0.0758 -2
0.0756
0.0754 -4
0.0752
0.075 -6
-40 -20 0 20 40 60 80 100 120 0 1024 2048 3072 4096
FIGURE 2-3: Absolute DNL vs. FIGURE 2-6: INL vs. Code (MCP4822).
Temperature (MCP4822).
Note: Single device graph for illustration of 64
code effect.
0.3 0.6
o
- 40 C - 40oC
0.5
0.2
0.4 o
85 C
0.1 0.3
INL (LSB)
DNL (LSB)
0.2
0 0.1
0
-0.1
-0.1 125oC
25oC
-0.2 -0.2
+25oC to +125oC
-0.3
-0.3 0 32 64 96 128 160 192 224 256
0 128 256 384 512 640 768 896 1024
Code Code
FIGURE 2-7: DNL vs. Code and FIGURE 2-10: INL vs. Code and
Temperature (MCP4812). Temperature (MCP4802).
2.050
1.5 2.049
2.048
VDD: 3V
-0.5 2.044 VDD: 2.7V
-1 2.043
-1.5 2.042
-2 25oC 2.041
o
- 40 C 2.040
-2.5 o
125 C -40 -20 0 20 40 60 80 100 120
-3
Ambient Temperature (°C)
0 128 256 384 512 640 768 896 1024
Code
FIGURE 2-11: Full-Scale VOUTA vs.
FIGURE 2-8: INL vs. Code and Ambient Temperature and VDD. Gain = 1x.
Temperature (MCP4812).
0.15 4.100
o o
Temperature: - 40 C to +125 C
0.1 4.096
Full Scale VOUT (V)
0.05 4.092
DNL (LSB)
0 VDD: 5.5V
4.088
34
VDD: 5V
-0.05 4.084
-0.1 4.080
-0.15 4.076
0 32 64 96 128 160 192 224 256 -40 -20 0 20 40 60 80 100 120
Code Ambient Temperature (°C)
FIGURE 2-9: DNL vs. Code and FIGURE 2-12: Full-Scale VOUTA vs.
Temperature (MCP4802). Ambient Temperature and VDD. Gain = 2x.
100
1.E-04 25
Output Noise Voltage Density
20
Occurrence
1.E-05
10
15
(µV/Hz)
10
1
1.E-06
5
0
0.1
1.E-07
380
385
390
395
400
405
410
415
420
425
430
435
440
0.1
1E-1 1
1E+0 10
1E+1 100
1E+2 1k
1E+3 10k
1E+4 100k
1E+5
Frequency (Hz) IDD (µA)
FIGURE 2-13: Output Noise Voltage FIGURE 2-16: IDD Histogram (VDD = 2.7V).
Density (VREF Noise Density) vs. Frequency.
Gain = 1x.
1.E-02
10.0 22
20
Output Noise Voltage (mV)
18
16
Occurrence
1.E-03
1.00 Eni (in VP-P) 14
12
10
8
0.10
1.E-04 6
Eni (in VRMS) 4
2
Maximum Measurement Time = 10s 0
0.01
385
390
395
400
405
410
415
420
425
430
435
1.E-05
100
1E+2 1k
1E+3 10k
1E+4 100k
1E+5 1M
1E+6 IDD (µA)
Bandwidth (Hz)
FIGURE 2-14: Output Noise Voltage FIGURE 2-17: IDD Histogram (VDD = 5.0V).
(VREF Noise Voltage) vs. Bandwidth. Gain = 1x.
340
5.5V
320 5.0V
4.0V
300 3.0V
2.7V
280 VDD
IDD (µA)
260
240
220
200
180
-40 -20 0 20 40 60 80 100 120
Ambient Temperature (°C)
4 4 VDD
5.5V
4.0V
1 1
-40 -20 0 20 40 60 80 100 120 -40 -20 0 20 40 60 80 100 120
Ambient Temperature (ºC) Ambient Temperature (ºC)
FIGURE 2-18: Software Shutdown Current FIGURE 2-21: VIN High Threshold vs.
vs. Temperature and VDD. Temperature and VDD.
1.6
0.11 VDD
1.4
0.07 5.0V
1.3
0.05
5.5V 1.2
0.03 4.0V
VDD 1.1
0.01 1
5.0V 3.0V
-0.01 0.9
4.0V 2.7V
3.0V
-0.03 2.7V 0.8
-40 -20 0 20 40 60 80 100 120 -40 -20 0 20 40 60 80 100 120
Ambient Temperature (ºC) Ambient Temperature (ºC)
FIGURE 2-19: Offset Error vs. Temperature FIGURE 2-22: VIN Low Threshold vs.
and VDD. Temperature and VDD.
-0.05
-0.1
VDD
-0.15
5.5V
Gain Error (%)
5.0V
-0.2 4.0V
3.0V
-0.25 2.7V
-0.3
-0.35
-0.4
-0.45
-0.5
-40 -20 0 20 40 60 80 100 120
Ambient Temperature (ºC)
2.5 16
VDD 5.5V
2.25 5.0V
5.5V 15 4.0V
VIN_SPI Hysteresis (V)
IOUT_HI_SHORTED (mA)
3.0V
5.0V 2.7V
1.75 14
1.5 VDD
4.0V 13
1.25
1
3.0V 12
0.75 2.7V
0.5 11
0.25
0 10
-40 -20 0 20 40 60 80 100 120 -40 -20 0 20 40 60 80 100 120
Ambient Temperature (ºC) Ambient Temperature (ºC)
FIGURE 2-23: Input Hysteresis vs. FIGURE 2-26: IOUT High Short vs.
Temperature and VDD. Temperature and VDD.
0.035 6.0
4.0V
0.033
5.0
VOUT_HI Limit (VDD-Y)(V)
0.031
VREF = 4.096V
0.029
4.0
VOUT (V)
0.027 Output Shorted to VDD
FIGURE 2-24: VOUT High Limit FIGURE 2-27: IOUT vs. VOUT. Gain = 2x.
vs.Temperature and VDD.
0.0028 VDD
0.0026
VOUT_LOW Limit (Y-AVSS)(V)
0.0024 5.5V
0.0022 5.0V
0.0020
0.0018 4.0V
3.0V
0.0016 2.7V
0.0014
0.0012
0.0010
-40 -20 0 20 40 60 80 100 120
Ambient Temperature (ºC)
VOUT
VOUT
SCK
LDAC LDAC
VOUT
VOUT
SCK
SCK
LDAC LDAC
VOUT
SCK
LDAC
3.1 Supply Voltage Pins (VDD, VSS) 3.4 Serial Data Input (SDI)
VDD is the positive supply voltage input pin. The input SDI is the SPI compatible serial data input pin.
supply voltage is relative to VSS and can range from
2.7V to 5.5V. The power supply at the VDD pin should 3.5 Latch DAC Input (LDAC)
be as clean as possible for a good DAC performance.
It is recommended to use an appropriate bypass LDAC (latch DAC synchronization input) pin is used to
capacitor of about 0.1 µF (ceramic) to ground. An transfer the input latch registers to their corresponding
additional 10 µF capacitor (tantalum) in parallel is also DAC registers (output latches, VOUT). When this pin is
recommended to further attenuate high-frequency low, both VOUTA and VOUTB are updated at the same
noise present in application boards. time with their input register contents. This pin can be
tied to low (VSS) if the VOUT update is desired at the
VSS is the analog ground pin and the current return path
rising edge of the CS pin. This pin can be driven by an
of the device. The user must connect the VSS pin to a
external control device such as an MCU I/O pin.
ground plane through a low-impedance connection. If
an analog ground path is available in the application
Printed Circuit Board (PCB), it is highly recommended 3.6 Analog Outputs (VOUTA, VOUTB)
that the VSS pin be tied to the analog ground path or VOUTA is the DAC A output pin, and VOUTB is the DAC
isolated within an analog ground plane of the circuit B output pin. Each output has its own output amplifier.
board. The full-scale range of the DAC output is from
VSS to G* VREF, where G is the gain selection option
3.2 Chip Select (CS) (1x or 2x). The DAC analog output cannot go higher
than the supply voltage (VDD).
CS is the Chip Select input pin, which requires an
active-low to enable serial clock and data functions.
VPOR Power-Down
VDD - VPOR Control Circuit
TA = +25°C
8
Mode.
4
Transients above the curve
will cause a reset
2
Transients below the curve
will NOT cause a reset
0
1 2 3 4 5
VDD - VPOR (V)
Where:
Legend
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR 1 = bit is set 0 = bit is cleared x = bit is unknown
CS
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (Mode 1,1)
SCK (Mode 0,0)
LDAC
VOUT
CS
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (Mode 1,1)
SCK (Mode 0,0)
LDAC
VOUT
CS
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (Mode 1,1)
SCK (Mode 0,0)
LDAC
VOUT
MCP48x2
1 µF SDI
and SDI), the LDAC signal synchronizes the two DAC C1
outputs. By bringing down the LDAC pin to “low”, all C2
DAC input codes and settings in the two DAC input reg-
PIC® Microcontroller
isters are latched into their DAC output registers at the VOUTB
same time. Therefore, both DACA and DACB outputs
are updated at the same time. Figure 6-1 shows an
example of the pin connections. Note that the LDAC pin AVSS
MCP48x2
0.1 µF VCC–
R2
SPI
3-wire
Dn
VOUT = 2.048 G ------
N
G = Gain selection (1x or 2x)
2 Dn = Digital value of DAC (0-255) for MCP4801/MCP4802
= Digital value of DAC (0-1023) for MCP4811/MCP4812
R2 = Digital value of DAC (0-4095) for MCP4821/MCP4822
V trip = VOUT --------------------
R 1 + R 2 N = DAC bit resolution
VCC-
R2 0.1 µF
SPI
3-wire
VCC-
Dn
VOUT = 2.048 G ------
N
2
G = Gain selection (1x or 2x)
Dn = Digital value of DAC (0-255) for MCP4801/MCP4802
= Digital value of DAC (0-1023) for MCP4811/MCP4812
= Digital value of DAC (0-4095) for MCP4821/MCP4822
N = DAC bit resolution
R2 R3
R 23 = ------------------- R1
R2 + R3 VOUT VO
Thevenin
Equivalent V CC+ R 2 + V CC- R 3
V 23 = ------------------------------------------------------ R23
R2 + R3
V OUT R23 + V 23 R1
V trip = --------------------------------------------- V23
R 1 + R23
Dn
VOUT = 2.048 G ------
N
2 G = Gain selection (1x or 2x)
Dn = Digital value of DAC (0-255) for MCP4801/MCP4802
VOUT R 4
VIN+ = -------------------- = Digital value of DAC (0-1023) for MCP4811/MCP4812
R 3 + R4
= Digital value of DAC (0-4095) for MCP4821/MCP4822
R2 R2 N = DAC bit resolution
V O = V IN+ 1 + ------ – V DD ------
R1 R 1
EXAMPLE 6-4: BIPOLAR VOLTAGE SOURCE WITH SELECTABLE GAIN AND OFFSET
R2
VDD
VCC+
VOUTA R1
DACA
Dual Output DAC:
(DACA for Gain Adjust) VCC+
MCP4802 VDD VO
MCP4812 R5
MCP4822 VOUTB R3 VIN+
DACB
(DACB for Offset Adjust)
SPI R4
0.1 µF VCC–
3
Dn VCC–
V OUTA = 2.048 G A ------
N
2
Dn G = Gain selection (1x or 2x)
VOUTB = 2.048 G B ------
N N = DAC bit resolution
2
DA , DB = Digital value of DAC (0-255) for MCP4802
VOUTB R 4 + V CC- R 3 = Digital value of DAC (0-1023) for MCP4812
VIN+ = -------------------------------------------------
R 3 + R4 = Digital value of DAC (0-4095) for MCP4822
R2 R2
V O = V IN+ 1 + ------ – V OUTA ------
R1 R1
V OUTB R 45 + V45 R 3 R2 R2
V IN+ = ------------------------------------------------ V O = V IN+ 1 + ------ – V OUTA ------
R 3 + R 45 R 1 R 1
VDD
VCC+
VOUTA
MCP4822
(DACA for Fine Adjustment)
R1 VO
R1 >> R2
VDD
VCC–
VOUTB R2 0.1 µF
MCP4822
(DACB for Course Adjustment)
SPI
3-wire
DA
VOUTA = 2.048 G A -------
12 Gx = Gain selection (1x or 2x)
2
DB Dn = Digital value of DAC (0-4096)
V OUTB = 2.048 GB -------
12
2
V OUTA R 2 + VOUTB R 1
VO = ------------------------------------------------------
R 1 + R2
VDD or VREF
IL
I b = ---- G = Gain selection (1x or 2x)
Dn = Digital value of DAC (0-255) for MCP4801/MCP4802
V OUT = Digital value of DAC (0-1023) for MCP4811/MCP4812
I L = --------------- -------------
R sense + 1 = Digital value of DAC (0-4095) for MCP4821/MCP4822
4822E
009256
XXXXXXXX MCP4802
XXXXXNNN E/P e3 256
YYWW 1009
MCP4812E
SN e3 1009
NNN 256
Note: In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D A
N B
E1
NOTE 1
1 2
TOP VIEW
C A A2
PLANE
L c
A1
e eB
8X b1
8X b
.010 C
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DATUM A DATUM A
b b
e e
2 2
e e
Units INCHES
Dimension Limits MIN NOM MAX
Number of Pins N 8
Pitch e .100 BSC
Top to Seating Plane A - - .210
Molded Package Thickness A2 .115 .130 .195
Base to Seating Plane A1 .015 - -
Shoulder to Shoulder Width E .290 .310 .325
Molded Package Width E1 .240 .250 .280
Overall Length D .348 .365 .400
Tip to Seating Plane L .115 .130 .150
Lead Thickness c .008 .010 .015
Upper Lead Width b1 .040 .060 .070
Lower Lead Width b .014 .018 .022
Overall Row Spacing § eB - - .430
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. § Significant Characteristic
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or
protrusions shall not exceed .010" per side.
4. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
!"#$%
&
!
"# $% &"'""
($)
%
*++&&&!
!+$
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
== ISO/TS 16949 ==
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.