Documente Academic
Documente Profesional
Documente Cultură
MCP3204
• ± 2 LSB max INL (MCP3204/3208-C) CH2 3 12 AGND
• 4 (MCP3204) or 8 (MCP3208) input channels CH3 4 11 CLK
• Analog inputs programmable as single-ended or NC 5 10 DOUT
pseudo differential pairs NC 6 9 DIN
DGND 7 8 CS/SHDN
• On-chip sample and hold
• SPI® serial interface (modes 0,0 and 1,1)
• Single supply operation: 2.7V - 5.5V
• 100ksps max. sampling rate at VDD = 5V PDIP, SOIC
• 50ksps max. sampling rate at VDD = 2.7V
• Low power CMOS technology CH0 1 16 VDD
- 500 nA typical standby current, 2µA max. CH1 2 15 VREF
MCP3208
CH2 3 14 AGND
- 400 µA max. active current at 5V
CH3 4 13 CLK
• Industrial temp range: -40°C to +85°C CH4 5 12 DOUT
• Available in PDIP, SOIC and TSSOP packages CH5 6 11 DIN
CH6 7 10 CS/SHDN
APPLICATIONS CH7 8 9 DGND
• Sensor Interface
• Process Control
• Data Acquisition FUNCTIONAL BLOCK DIAGRAM
• Battery Operated Systems
VDD VSS
DESCRIPTION VREF
ELECTRICAL CHARACTERISTICS
All parameters apply at VDD = 5V, VSS = 0V, VREF = 5V, TAMB = -40°C to +85°C, fSAMPLE = 100ksps and
fCLK = 20*fSAMPLE, unless otherwise noted.
PARAMETER SYMBOL MIN. TYP. MAX. UNITS CONDITIONS
Conversion Rate
Conversion Time tCONV 12 clock
cycles
Analog Input Sample Time tSAMPLE 1.5 clock
cycles
Throughput Rate fSAMPLE 100 ksps VDD = VREF = 5V
50 ksps VDD = VREF = 2.7V
DC Accuracy
Resolution 12 bits
Integral Nonlinearity INL ±0.75 ±1 LSB MCP3204/3208-B
±1 ±2 MCP3204/3208-C
Differential Nonlinearity DNL ±0.5 ±1 LSB No missing codes over
temperature
Offset Error ±1.25 ±3 LSB
Gain Error ±1.25 ±5 LSB
Dynamic Performance
Total Harmonic Distortion -82 dB VIN = 0.1V to 4.9V@1kHz
Signal to Noise and Distortion 72 dB VIN = 0.1V to 4.9V@1kHz
(SINAD)
Spurious Free Dynamic 86 dB VIN = 0.1V to 4.9V@1kHz
Range
Reference Input
Voltage Range 0.25 VDD V Note 2
Current Drain 100 150 µA
0.001 3 µA CS = VDD = 5V
Analog Inputs
Input Voltage Range for VSS VREF V
CH0-CH7 in Single-Ended
Mode
Input Voltage Range for IN+ In IN- VREF+IN-
pseudo-differential Mode
Input Voltage Range for IN- In VSS-100 VSS+100 mV
pseudo-differential Mode
Leakage Current 0.001 ±1 µA
CS
tSUCS
tHI tLO
CLK
tSU tHD
DIN MSB IN
tDO tR tF tDIS
tEN
DOUT NULL BIT MSB OUT LSB
Load circuit for tR, tF, tDO Load circuit for tDIS and tEN
VOH CS
DOUT VOL
1 2 3 4
CLK
tR tF
DOUT B11
tEN
VIH
CS
CLK
DOUT
90%
tDO Waveform 1*
TDIS
DOUT
DOUT 10%
Waveform 2†
1.0 2.0
VDD = VREF = 2.7V
0.8 Positive INL 1.5
0.6
1.0
0.4 Positive INL
INL (LSB)
INL (LSB)
0.5
0.2
0.0 0.0
-0.2 -0.5
Negative INL
-0.4 Negative INL -1.0
-0.6 -1.5
-0.8
-2.0
-1.0 0 10 20 30 40 50 60 70 80
0 25 50 75 100 125 150
Sample Rate (ksps) Sample Rate (ksps)
FIGURE 2-1: Integral Nonlinearity (INL) vs. Sample FIGURE 2-4: Integral Nonlinearity (INL) vs. Sample
Rate. Rate (VDD = 2.7V).
3.0 2.0
2.5
1.5
2.0
1.5 1.0 Positive INL
Positive INL
1.0
INL(LSB)
INL(LSB)
0.5
0.5
0.0 0.0
-0.5
Negative INL
-0.5
-1.0
-1.5 -1.0 Negative INL
-2.0
-1.5
-2.5
-3.0 -2.0
0 1 2 3 4 5 6 0.0 0.5 1.0 1.5 2.0 2.5 3.0
FIGURE 2-2: Integral Nonlinearity (INL) vs. VREF. FIGURE 2-5: Integral Nonlinearity (INL) vs. VREF
(VDD = 2.7V).
1.0 1.0
0.8 0.8 VDD = VREF = 2.7V
FSAMPLE = 50ksps
0.6 0.6
0.4 0.4
INL (LSB)
INL (LSB)
0.2 0.2
0.0 0.0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1.0 -1.0
0 512 1024 1536 2048 2560 3072 3584 4096 0 512 1024 1536 2048 2560 3072 3584 4096
FIGURE 2-3: Integral Nonlinearity (INL) vs. Code FIGURE 2-6: Integral Nonlinearity (INL) vs. Code
(Representative Part). (Representative Part, VDD = 2.7V).
1.0 1.0
VDD = VREF = 2.7V
0.8 Positive INL 0.8
F SAMPLE = 50ksps
0.6 0.6
Positive INL
0.4 0.4
INL (LSB)
INL (LSB)
0.2 0.2
0.0 0.0
-0.2 Negative INL -0.2
-0.4 -0.4
-0.6 -0.6 Negative INL
-0.8 -0.8
-1.0 -1.0
-50 -25 0 25 50 75 100 -50 -25 0 25 50 75 100
Temperature (°C) Temperature (°C)
FIGURE 2-7: Integral Nonlinearity (INL) vs. FIGURE 2-10: Integral Nonlinearity (INL) vs.
Temperature. Temperature (VDD = 2.7V).
1.0 2.0
VDD = VREF = 2.7V
0.8 1.5
0.6 1.0
0.4 Positive DNL
DNL (LSB)
DNL (LSB)
Positive DNL
0.5
0.2
0.0 0.0
-0.2 -0.5 Negative DNL
-0.4
Negative DNL -1.0
-0.6
-0.8 -1.5
-1.0 -2.0
0 25 50 75 100 125 150 0 10 20 30 40 50 60 70
Sample Rate (ksps) Sample Rate (ksps)
FIGURE 2-8: Differential Nonlinearity (DNL) vs. FIGURE 2-11: Differential Nonlinearity (DNL) vs.
Sample Rate. Sample Rate (VDD = 2.7V).
3.0 3.0
VDD = VREF= 2.7V
2.0 2.0 FSAMPLE = 50ksps
Positive DNL
DNL (LSB)
1.0
DNL (LSB)
0.0 0.0
-2.0 -2.0
-3.0 -3.0
0 1 2 3 4 5 0.0 0.5 1.0 1.5 2.0 2.5 3.0
FIGURE 2-9: Differential Nonlinearity (DNL) vs. FIGURE 2-12: Differential Nonlinearity (DNL) vs. VREF
VREF. (VDD = 2.7V).
1.0 1.0
0.8 0.8 VDD = VREF = 2.7V
FSAMPLE = 50ksps
0.6 0.6
0.4 0.4
DNL (LSB)
DNL (LSB)
0.2 0.2
0.0 0.0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1.0 -1.0
0 512 1024 1536 2048 2560 3072 3584 4096 0 512 1024 1536 2048 2560 3072 3584 4096
FIGURE 2-13: Differential Nonlinearity (DNL) vs. FIGURE 2-16: Differential Nonlinearity (DNL) vs.
Code (Representative Part). Code (Representative Part, VDD = 2.7V).
1.0 1.0
VDD = VREF = 2.7V
0.8 0.8
FSAMPLE = 50ksps
0.6 0.6
0.4 DNL (LSB) 0.4 Positive DNL
Positive DNL
DNL (LSB)
0.2 0.2
0.0 0.0
-0.2 -0.2
-0.4 -0.4 Negative DNL
Negative DNL
-0.6 -0.6
-0.8 -0.8
-1.0 -1.0
-50 -25 0 25 50 75 100 -50 -25 0 25 50 75 100
FIGURE 2-14: Differential Nonlinearity (DNL) vs. FIGURE 2-17: Differential Nonlinearity (DNL) vs.
Temperature. Temperature (VDD = 2.7V).
4 20
18
3
VDD = 2.7V 16 VDD = 5V
Offset Error (LSB)
Gain Error (LSB)
2 F SAMPLE = 50ksps
14 F SAMPLE = 100ksps
1 12
10
0
8
-1 VDD = 2.7V
VDD = 5V 6
F SAMPLE = 50ksps
-2 FSAMPLE = 100ksps 4
-3 2
0
-4
0 1 2 3 4 5
0 1 2 3 4 5
VREF (V)
VREF(V)
FIGURE 2-15: Gain Error vs. VREF. FIGURE 2-18: Offset Error vs. VREF.
0.2 2.0
0.0 VDD = VREF = 2.7V 1.8
FSAMPLE = 50ksps VDD = VREF = 5V
1.6
FSAMPLE = 100ksps
-0.4 1.4
-0.6 1.2
-0.8 1.0
VDD = VREF = 2.7V
-1.0 0.8
FSAMPLE = 50ksps
VDD = VREF = 5V
-1.2 0.6
FSAMPLE = 100ksps
-1.4 0.4
-1.6 0.2
-1.8 0.0
-50 -25 0 25 50 75 100 -50 -25 0 25 50 75 100
FIGURE 2-19: Gain Error vs. Temperature. FIGURE 2-22: Offset Error vs. Temperature.
100 100.0
90 VDD = VREF = 5V VDD = VREF = 5V
90.0
FSAMPLE = 100ksps FSAMPLE = 100ksps
80 80.0
70
SINAD (dB)
70.0
SNR (dB)
60 60.0
50 50.0 VDD = VREF = 2.7V
40 VDD = VREF = 2.7V 40.0 F SAMPLE = 50ksps
30 FSAMPLE = 50ksps 30.0
20 20.0
10 10.0
0 0.0
1 10 100 1 10 100
Input Frequency (kHz) Input Frequency (kHz)
FIGURE 2-20: Signal to Noise (SNR) vs. Input FIGURE 2-23: Signal to Noise and Distortion
Frequency. (SINAD) vs. Input Frequency.
0 80
-10 VDD = VREF = 5V
70 FSAMPLE = 100ksps
-20
-30 60
VDD = VREF = 2.7V
THD (dB)
SINAD (dB)
FIGURE 2-21: Total Harmonic Distortion (THD) vs. FIGURE 2-24: Signal to Noise and Distortion
Input Frequency. (SINAD) vs. Input Signal Level.
12.0
12.00
11.75 11.5
11.50
11.0
ENOB (rms)
11.25
ENOB (rms)
FIGURE 2-25: Effective Number of Bits (ENOB) vs. FIGURE 2-28: Effective Number of Bits (ENOB) vs.
VREF. Input Frequency.
100 0
VDD = VREF = 5V
-30
60
50 VDD = VREF = 2.7V -40
40 FSAMPLE = 50ksps
-50
30
-60
20
-70
10
0 -80
1 10 100 1 10 100 1000 10000
Ripple Frequency (kHz)
Input Frequency (kHz)
FIGURE 2-26: Spurious Free Dynamic Range FIGURE 2-29: Power Supply Rejection (PSR) vs.
(SFDR) vs. Input Frequency. Ripple Frequency.
0
0
-10 VDD = VREF = 2.7V
-10 VDD = VREF = 5V
-20 FSAMPLE = 50ksps
-20 FSAMPLE = 100ksps -30 FINPUT = 998.76Hz
-30
Amplitude (dB)
FINPUT = 9.985kHz
Amplitude (dB)
500 100
VREF = VDD VREF = VDD
450 90
All points at FCLK = 2MHz except All points at FCLK = 2MHz except
400 at VREF = VDD = 2.5V, F CLK = 1MHz 80
at VREF = VDD = 2.5V, F CLK = 1MHz
350 70
IREF (µA)
60
IDD (µA)
300
250 50
200 40
150 30
100 20
50 10
0 0
2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
FIGURE 2-31: IDD vs. VDD. FIGURE 2-34: IREF vs. VDD.
400 100
350 90 VDD = VREF = 5V
80
300
VDD = VREF = 5V 70
IREF (µA)
250 60
IDD (µA)
200 50
VDD = VREF = 2.7V
40
150
30 VDD = VREF = 2.7V
100 20
50 10
0 0
10 100 1000 10000 10 100 1000 10000
FIGURE 2-32: IDD vs. Clock Frequency. FIGURE 2-35: IREF vs. Clock Frequency.
100
400 VDD = VREF = 5V
VDD = VREF = 5V 90 FCLK = 2MHz
350 FCLK = 2MHz
80
300
70
250
IDD (µA)
60
IREF (µA)
200 50
FIGURE 2-33: IDD vs. Temperature. FIGURE 2-36: IREF vs. Temperature.
80 2.0
30 0.8
20
0.6
0.4
10
0.2
0 0.0
2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
-50 -25 0 25 50 75 100
VDD (V)
Temperature (°C)
FIGURE 2-37: IDDS vs. VDD. FIGURE 2-39: Analog Input Leakage Current vs.
Temperature.
100.00
VDD = VREF = CS = 5V
10.00
IDDS (nA)
1.00
0.10
0.01
-50 -25 0 25 50 75 100
Temperature (°C)
3.1 CH0 - CH7 The MCP3204/3208 devices offer the choice of using
the analog input channels configured as single-ended
Analog inputs for channels 0 - 7 respectively for the inputs or pseudo-differential pairs. The MCP3204 can
multiplexed inputs. Each pair of channels can be pro- be configured to provide two pseudo-differential input
grammed to be used as two independent channels in pairs or four single-ended inputs. the MCP3208 can be
single ended-mode or as a single pseudo-differential configured to provide four pseudo-differential input
input where one channel is IN+ and one channel is IN-. pairs or eight single-ended inputs. Configuration is
See Section 4.1 and Section 5.0 for information on pro- done as part of the serial command before each con-
gramming the channel configuration. version begins. When used in the pseudo-differential
mode, each channel pair (i.e., CH0 and CH1, CH2 and
3.2 CS/SHDN(Chip Select/Shutdown) CH3 etc.) are programmed as the IN+ and IN- inputs as
part of the command string transmitted to the device.
The CS/SHDN pin is used to initiate communication
The IN+ input can range from IN- to (VREF + IN-). The
with the device when pulled low and will end a conver-
IN- input is limited to ±100mV from the VSS rail. The IN-
sion and put the device in low power standby when
input can be used to cancel small signal com-
pulled high. The CS/SHDN pin must be pulled high
mon-mode noise which is present on both the IN+ and
between conversions.
IN- inputs.
3.3 CLK (Serial Clock) When operating in the pseudo-differential mode, if the
voltage level of IN+ is equal to or less than IN-, the
The SPI clock pin is used to initiate a conversion and to resultant code will be 000h. If the voltage at IN+ is equal
clock out each bit of the conversion as it takes place. to or greater than {[VREF + (IN-)] - 1 LSB}, then the out-
See Section 6.2 for constraints on clock speed. put code will be FFFh. If the voltage level at IN- is more
than 1 LSB below VSS, then the voltage level at the IN+
3.4 DIN (Serial Data Input) input will have to go below VSS to see the 000h output
code. Conversely, if IN- is more than 1 LSB above VSS,
The SPI port serial data input pin is used to load chan-
then the FFFh code will not be seen unless the IN+
nel configuration data into the device.
input level goes above VREF level.
3.5 DOUT (Serial Data output) For the A/D Converter to meet specification, the charge
holding capacitor, (CSAMPLE) must be given enough time
The SPI serial data output pin is used to shift out the to acquire a 12-bit accurate voltage level during the 1.5
results of the A/D conversion. Data will always change clock cycle sampling period. The analog input model is
on the falling edge of each clock as the conversion shown in Figure 4-1.
takes place. In this diagram it is shown that the source impedance
(RS) adds to the internal sampling switch (RSS) imped-
3.6 AGND
ance, directly affecting the time that is required to
Analog ground connection to internal analog circuitry. charge the capacitor, CSAMPLE. Consequently, larger
source impedances increase the offset, gain, and inte-
3.7 DGND gral linearity errors of the conversion. See Figure 4-2.
VDD
Sampling
Switch
VT = 0.6V
RS CHx SS RSS = 1kΩ
CSAMPLE
CPIN
VA ILEAKAGE = DAC capacitance
7pF VT = 0.6V ± 1 nA = 20 pF
VSS
Legend
VA = Signal Source
RS = Source Impedance
CHx = Input Channel Pad
CPIN = Input Capacitance
VT = Threshold Voltage
ILEAKAGE = Leakage Current at the pin
due to various junctions
SS = Sampling Switch
RSS = Sampling Switch Resistor
CSAMPLE = Sample/Hold Capacitance
2.5
VDD = 5V
Clock Frequency (MHz)
2.0
1.5
1.0
VDD = 2.7V
0.5
0.0
100 1000 10000
bringing the CS line low. See Figure 5-1. If the device 1 0 0 0 single ended CH0
was powered up with the CS pin low, it must be brought 1 0 0 1 single ended CH1
high and back low to initiate communication. The first
clock received with CS low and DIN high will constitute 1 0 1 0 single ended CH2
a start bit. The SGL/DIFF bit follows the start bit and will 1 0 1 1 single ended CH3
determine if the conversion will be done using single 1 1 0 0 single ended CH4
ended or differential input mode. The next three bits
1 1 0 1 single ended CH5
(D0, D1 and D2) are used to select the input channel
configuration. Table 5-1 and Table 5-2 show the config- 1 1 1 0 single ended CH6
uration bits for the MCP3204 and MCP3208, respec- 1 1 1 1 single ended CH7
tively. The device will begin to sample the analog input 0 0 0 0 differential CH0 = IN+
on the fourth rising edge of the clock after the start bit CH1 = IN-
has been received. The sample period will end on the 0 0 0 1 differential CH0 = IN-
falling edge of the fifth clock following the start bit. CH1 = IN+
After the D0 bit is input, one more clock is required to 0 0 1 0 differential CH2 = IN+
complete the sample and hold period (DIN is a don’t CH3 = IN-
care for this clock). On the falling edge of the next clock, 0 0 1 1 differential CH2 = IN-
the device will output a low null bit. The next 12 clocks CH3 = IN+
will output the result of the conversion with MSB first as 0 1 0 0 differential CH4 = IN+
shown in Figure 5-1. Data is always output from the CH5 = IN-
device on the falling edge of the clock. If all 12 data bits 0 1 0 1 differential CH4 = IN-
have been transmitted and the device continues to CH5 = IN+
receive clocks while the CS is held low, the device will
0 1 1 0 differential CH6 = IN+
output the conversion result LSB first as shown in CH7 = IN-
Figure 5-2. If more clocks are provided to the device
0 1 1 1 differential CH6 = IN-
while CS is still low (after the LSB first data has been CH7 = IN+
transmitted), the device will clock out zeros indefinitely.
TABLE 5-2: Configuration Bits for the MCP3208.
If necessary, it is possible to bring CS low and clock in
leading zeros on the DIN line before the start bit. This is
often done when dealing with microcontroller-based
SPI ports that must send 8 bits at a time. Refer to
Section 6.1 for more details on using the
MCP3204/3208 devices with hardware SPI ports.
CONTROL BIT
SELECTIONS
INPUT CHANNEL
CONFIGURATION SELECTION
SINGLE/ D2* D1 D0
DIFF
tCYC tCYC
tCSH
CS
tSUCS
CLK
tCONV
tSAMPLE tDATA **
* After completing the data transfer, if further clocks are applied with CS low, the A/D Converter will output LSB
first data, then followed with zeros indefinitely. See Figure 5-2 below.
** tDATA: during this time, the bias current and the comparator power down while the reference input becomes
a high impedance node, leaving the CLK running to clock out the LSB-first data or zeros.
tCYC
tCSH
CS
tSUCS
Power Down
CLK
Start
DIN D2 D1 D0 Don’t Care
SGL/
DIFF
* After completing the data transfer, if further clocks are applied with CS low, the A/D Converter will output zeros
indefinitely.
** tDATA: During this time, the bias circuit and the comparator power down while the reference input becomes a
high impedance node, leaving the CLK running to clock out LSB first data or zeroes.
CS
MCU latches data from A/D Converter
on rising edges of SCLK
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
SGL/ D2 D1 DO
DIN Start Don’t Care
DIFF
HI-Z NULL
DOUT BIT B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Start
Bit
MCU Transmitted Data SGL/
(Aligned with falling 0 0 0 0 0 1 D2 D1 DO X X X X X X X X X X X X X X
DIFF
edge of clock)
Data stored into MCU receive register Data stored into MCU receive register Data stored into MCU receive register
after transmission of first 8 bits after transmission of second 8 bits after transmission of last 8 bits
X = Don’t Care Bits
FIGURE 6-1: SPI Communication using 8-bit segments (Mode 0,0: SCLK idles low).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
SCLK
Data is clocked out of
A/D Converter on falling edges
HI-Z NULL
DOUT BIT B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Start
Bit
MCU Transmitted Data
(Aligned with falling 0 0 0 0 0 SGL/ D2
1 DIFF D1 DO X X X X X X X X X X X X X X
edge of clock)
Data stored into MCU receive register Data stored into MCU receive register Data stored into MCU receive register
after transmission of first 8 bits after transmission of second 8 bits after transmission of last 8 bits
X = Don’t Care Bits
FIGURE 6-2: SPI Communication using 8-bit segments (Mode 1,1: SCLK idles high).
1µF
VREF
IN+
MCP3204
C1 MCP601 IN-
R1
+
R2
VIN -
C2
R4
R3
VDD
Substrate
5 - 10 Ω
Digital Analog
Ground Pin Ground Pin
MCP3204 - G T /P
MCP3208 - G T /P
Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using.
All rights reserved. © 1999 Microchip Technology Incorporated. Printed in the USA. 11/99 Printed on recycled paper.
Information contained in this publication regarding device applications and the like is intended for suggestion only and may be superseded by updates. No representation or warranty is given and no liability is assumed
by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip’s products
as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The Microchip
logo and name are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries. All rights reserved. All other trademarks mentioned herein are the property of their respective companies.