Professional Documents
Culture Documents
2.7V Dual Channel 10-Bit A/D Converter With SPI Serial Interface
2.7V Dual Channel 10-Bit A/D Converter With SPI Serial Interface
Input
CH0 Channel DAC
CH1 Mux
Comparator
Shift
Control Logic
Register
ELECTRICAL CHARACTERISTICS
All parameters apply at VDD = 5V, TA = -40°C to +85°C, fSAMPLE = 200 ksps and fCLK = 16*fSAMPLE, unless otherwise noted.
Typical values apply for VDD = 5V, TA = +25°C, unless otherwise noted.
PARAMETER SYM MIN TYP MAX UNITS CONDITIONS
Conversion Rate:
Conversion Time TCONV — — 10 clock
cycles
Analog Input Sample Time TSAMPLE 1.5 clock
cycles
tCSH
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
CL = 30 pF 30 pF tDIS Waveform 1
VSS
VOH
DOUT VOL
CS
tR tF 1 2 3 4
CLK
DOUT B9
tEN
CS VIH
CLK
DOUT 90%
tDO Waveform 1*
tDIS
DOUT
DOUT 10%
Waveform 2†
* Waveform 1 is for an output with internal
conditions such that the output is high, unless dis-
abled by the output control.
† Waveform 2 is for an output with internal
conditions such that the output is low, unless dis-
abled by the output control.
0.6
0.6
0.4 VDD = 2.7V
0.4
0.2 Positive INL Positive INL
INL (LSB)
0.2
INL (LSB)
0.0 0.0
-0.2 Negative INL -0.2
Negative INL
-0.4 -0.4
-0.6 -0.6
0 25 50 75 100 125 150 175 200 225 250 0 25 50 75 100
Sample Rate (ksps) Sample Rate (ksps)
FIGURE 2-1: Integral Nonlinearity (INL) FIGURE 2-4: Integral Nonlinearity (INL)
vs. Sample Rate. vs. Sample Rate (VDD = 2.7V).
1.0 1.0
VDD = 5V VDD = 2.7V
0.8 0.8
f SAMPLE = 200 ksps fSAMPLE = 75 ksps
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 128 256 384 512 640 768 896 1024 0 128 256 384 512 640 768 896 1024
Digital Code Digital Code
FIGURE 2-2: Integral Nonlinearity (INL) FIGURE 2-5: Integral Nonlinearity (INL)
vs. Code. vs. Code (VDD = 2.7V).
0.5 0.5
VDD = 2.7V
0.4 0.4
fSAMPLE = 75 ksps
0.3 0.3
0.2 Positive INL 0.2 Positive INL
INL (LSB)
INL (LSB)
0.1 0.1
0.0 0.0
-0.1 -0.1
-0.2 Negative INL -0.2
-0.3 -0.3 Negative INL
-0.4 -0.4
-0.5 -0.5
-50 -25 0 25 50 75 100 -50 -25 0 25 50 75 100
Temperature (°C) Temperature (°C)
FIGURE 2-3: Integral Nonlinearity (INL) FIGURE 2-6: Integral Nonlinearity (INL)
vs. Temperature. vs. Temperature (VDD = 2.7V).
1.0 0.8
0.8 0.6
0.6 Positive INL 0.4 Positive DNL
0.4
DNL (LSB)
INL(LSB)
0.2 0.2
0.0 0.0
-0.2 -0.2
-0.4 Negative INL Negative DNL
-0.4
-0.6 All points taken at fSAMPLE = 200 ksps except All points taken at fSAMPLE = 200 ksps except
-0.8 -0.6
VDD = 2.7V, fSAMPLE = 75 ksps VDD = 2.7V, fSAMPLE = 75 ksps
-1.0 -0.8
2.5 3.0 3.5 4.0 4.5 5.0 5.5 2.5 3.0 3.5 4.0 4.5 5.0 5.5
VDD (V) VDD (V)
0.6
0.6
VDD = 2.7V
0.4 0.4
Positive DNL
DNL (LSB)
-0.2 -0.2
Negative DNL Negative DNL
-0.4 -0.4
-0.6
-0.6
0 25 50 75 100
0 25 50 75 100 125 150 175 200 225 250
1.0 1.0
VDD = 5V VDD = 2.7V
0.8 0.8 fSAMPLE = 75 ksps
f SAMPLE = 200 ksps
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 128 256 384 512 640 768 896 1024 0 128 256 384 512 640 768 896 1024
Digital Code Digital Code
0.4 0.4
VDD = 2.7V
0.3 0.3 fSAMPLE = 75 ksps
0.2 Positive DNL 0.2
Positive DNL
DNL (LSB)
DNL (LSB)
0.1 0.1
0.0 0.0
-0.1 -0.1
Negative DNL
-0.2 Negative DNL -0.2
-0.3 -0.3
-0.4 -0.4
-50 -25 0 25 50 75 100 -50 -25 0 25 50 75 100
Temperature (°C) Temperature (°C)
1.0 1.0
0.8 All points taken at fSAMPLE = 200 ksps except All points taken at fSAMPLE = 200 ksps except
VDD = 2.7V, fSAMPLE = 75 ksps VDD = 2.7V, fSAMPLE = 75 ksps
0.6 0.8
Gain Error (LSB)
FIGURE 2-14: Gain Error vs. VDD. FIGURE 2-17: Offset Error vs. VDD.
0.0 0.8
fSAMPLE = 75 ksps
Gain Error (LSB)
0.6
FIGURE 2-15: Gain Error vs. Temperature. FIGURE 2-18: Offset Error vs.
Temperature.
80 80
VDD = 5V
70 70 fSAMPLE = 200 ksps
60 60
SINAD (dB)
SNR (dB)
50 50
VDD = 2.7V VDD = 2.7V
40 40 fSAMPLE = 75 ksps
fSAMPLE = 75 ksps VDD = 5V
30 fSAMPLE = 200 ksps 30
20 20
10 10
0 0
1 10 100 1 10 100
Input Frequency (kHz) Input Frequency (kHz)
0
80
-10
-20 70
VDD = 5V
-30 VDD = 2.7V 60 fSAMPLE = 200 ksps
SINAD (dB)
THD (dB)
10.0 10.0
9.9
9.5
ENOB (rms)
9.8
ENOB
FIGURE 2-21: Effective Number of Bits FIGURE 2-24: Effective Number of Bits
(ENOB) vs. VDD. (ENOB) vs. Input Frequency.
100
600
90 VDD = 5V
80 fSAMPLE = 200 ksps 500
70
400
SFDR (dB)
60
IDD (µA)
50 VDD = 2.7V
300
40 fSAMPLE = 75 ksps
30 200
20
100 All points at fCLK = 3.2 MHz
10
except at VDD = 2.5V, fCLK = 1.2 MHz
0 0
1 10 100
2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Input Frequency (kHz) VDD (V)
FIGURE 2-25: Spurious Free Dynamic FIGURE 2-28: IDD vs. VDD.
Range (SFDR) vs. Input Frequency.
0
-10 VDD = 5V 600
-20 fSAMPLE = 200 ksps 550
-30 fINPUT = 10.976 kHz 500
Amplitude (dB)
IDD (µA)
-60 350
-70 300
-80 250
200 VDD = 2.7V
-90
-100 150
-110 100
-120 50
-130 0
0 20000 40000 60000 80000 100000 10 100 1000 10000
Frequency (Hz) Clock Frequency (kHz)
FIGURE 2-26: Frequency Spectrum of FIGURE 2-29: IDD vs. Clock Frequency.
10 kHz input (Representative Part).
0
-10 VDD = 2.7V 600
-20 fSAMPLE = 75 ksps
-30 fINPUT = 1.00708 kHz 500
Amplitude (dB)
-70 300
-80
-90
200 VDD = 2.7V
-100
-110 fCLK = 1.2 MHz
-120 100
-130
15000
10000
20000
25000
30000
35000
5000
0
0
-50 -25 0 25 50 75 100
Frequency (Hz) Temperature (°C)
70 2.0
40 1.2
1.0
30
0.8
20 0.6
0.4
10
0.2
0 0.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-31: IDDS vs. VDD. FIGURE 2-33: Analog Input leakage
current vs. Temperature.
100.00
VDD = CS = 5V
10.00
IDDS (nA)
1.00
0.10
0.01
-50 -25 0 25 50 75 100
Temperature (°C)
The CS/SHDN pin is used to initiate communication 3.5 Serial Data Output (DOUT)
with the device when pulled low and will end a
conversion and put the device in low power standby The SPI serial data output pin is used to shift out the
when pulled high. The CS/SHDN pin must be pulled results of the A/D conversion. Data will always change
high between conversions. on the falling edge of each clock as the conversion
takes place.
VDD
Sampling
Switch
VT = 0.6V
RSS CHx SS RS = 1 kW
CSAMPLE
VA CPIN ILEAKAGE = DAC capacitance
VT = 0.6V
7 pF ±1 nA = 20 pF
VSS
Legend
VA = signal source
RSS = source impedance
CHx = input channel pad
CPIN = input pin capacitance
VT = threshold voltage
ILEAKAGE = leakage current at the pin
due to various junctions
SS = sampling switch
RS = sampling switch resistor
CSAMPLE = sample/hold capacitance
4.0
VDD = 5V
Clock Frequency (MHz)
3.5
fSAMPLE = 200 ksps
3.0
2.5
VDD = 2.7V
2.0
fSAMPLE = 75 ksps
1.5
1.0
0.5
0.0
100 1000 10000
tCYC tCYC
tCSH
CS
tSUCS
CLK
ODD/
ODD/
SIGN
MSBF
DIFF
SGL/
Start
tSAMPLE
tCONV
tDATA**
* After completing the data transfer, if further clocks are applied with CS low, the A/D Converter will output
zeros indefinitely. See Figure 5-2 for details on obtaining LSB first data.
** tDATA: during this time, the bias current and the comparator powers down while the reference input
becomes a high-impedance node.
FIGURE 5-1: Communication with the MCP3002 using MSB first format only.
tCYC
tCSH
CS
tSUCS
Power Down
CLK
MSBF
ODD/
SIGN
SGL/
DIFF
Start
* 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 powers down while the reference input becomes a
high-impedance node, leaving the CLK running to clock out LSB first data or zeroes.
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
NULL B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
DOUT BIT
Start
MCU Transmitted Data Bit
(Aligned with falling X SGL/ ODD/ MS X
1 X X X X X X X X X X
edge of clock) DIFF SIGN BF
Data stored into MCU receive register Data stored into MCU receive register
X = Don’t Care Bits after transmission of first 8 bits after transmission of second 8 bits
FIGURE 6-1: SPI Communication with the MCP3002 using 8-bit segments (Mode 0,0: SCLK idles
low).
SCLK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
ODD/
SIGN
MSBF
SGL/
DIFF
Start
DIN Don’t Care
Start
Bit
MCU Transmitted Data
(Aligned with falling X 1 SGL/ ODD/ MSBF X X X X X X X X X X X
edge of clock) DIFF SIGN
Data stored into MCU receive register Data stored into MCU receive register
after transmission of first 8 bits after transmission of second 8 bits
X = Don’t Care Bits
FIGURE 6-2: SPI Communication with the MCP3002 using 8-bit segments (Mode 1,1: SCLK idles
high).
6.2 Maintaining Minimum Clock Speed Low-pass (anti-aliasing) filters can be designed using
Microchip’s interactive FilterLab® software. FilterLab
When the MCP3002 initiates the sample period, charge will calculate capacitor and resistors values, as well as,
is stored on the sample capacitor. When the sample determine the number of poles that are required for the
period is complete, the device converts one bit for each application. For more information on filtering signals,
clock that is received. It is important for the user to note see the application note AN699 “Anti-Aliasing Analog
that a slow clock rate will allow charge to bleed off the Filters for Data Acquisition Systems.”
sample cap while the conversion is taking place. At
85°C (worst case condition), the part will maintain
proper charge on the sample cap for 700 µs at VDD
VDD = 2.7V and 1.5 ms at VDD = 5V. This means that at
VDD = 2.7V, the time it takes to transmit the 1.5 clocks
10 µF
for the sample period and the 10 clocks for the actual
C1 1 µF
conversion must not exceed 700 µs. Failure to meet R1
MCP601
this criteria may induce linearity errors into the VIN + IN+
R2
conversion outside the rated specifications. - MCP3002
C2
IN-
6.3 Buffering/Filtering the Analog R4
R3
Inputs
If the signal source for the A/D Converter is not a low
impedance source, it will have to be buffered or
FIGURE 6-3: Typical Anti-Aliasing Filter
inaccurate conversion results may occur. It is also
recommended that a filter be used to eliminate any Circuit (2 pole Active Filter).
signals that may be aliased back in to the conversion
results. This is illustrated in Figure 6-3 below where an
op amp is used to drive, filter, and gain the analog input
of the MCP3002. This amplifier provides a low
impedance output for the converter input and a low-
pass filter, which eliminates unwanted high-frequency
noise.
VDD
Connection
Device 4
Device 1
Device 3
Device 2
XXXXXX 3002I
YWWNNN 819256
XXXXXXXX MCP3002
XXXXXNNN I/P e^^256
3
YYWW 0819
XXXXXXXX MCP3002I
XXXXYYWW ISN e^^0819
3
NNN 256
XXXX 3002
YYWW I819
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.
1
%&
%! %2" ) ' %
2$%
%"%
%%033)))&
&32
E
E1
NOTE 1
1 2
e
c φ
A A2
A1 L1 L
% % 5 +*1
1
!"##
$%
1
%&
%! %2" ) ' %
2$%
%"%
%%033)))&
&32
NOTE 1
E1
1 2 3
D
E
A A2
A1 L
c
e
b1 eB
b
4% 6/;*
&
5&% 6 67 8
6!&(
$ 6 9
% ./
%
% < <
""2
2 + , +
. %
% + < <
!" %
!" ="% * , ,+
""2="% * + 9
7 5% ,9 ,:+
%
% 5 + , +
5"
2 9 +
4 5"="% ( :
5
) 5"="% ( 9
7
)? . < < ,
!"#$%! & '(!%&! %(
%")%%%"
?$%/ % %
, &
"*"
%!"&
"$
% !
"$
% !
%#"@ "
&
"%
*-+
./0. &
%#%!
))%
!%%
) /9.
!&'"()#$% *
1
%&
%! %2" ) ' %
2$%
%"%
%%033)))&
&32
e
N
E1
NOTE 1
1 2 3
h α
b
h
c
A A2 φ
A1 L
L1 β
% % 5 *1
1
) /+.
!&'"()#$% *
1
%&
%! %2" ) ' %
2$%
%"%
%%033)))&
&32
+,
,
+!-(-$%+
1
%&
%! %2" ) ' %
2$%
%"%
%%033)))&
&32
E1
NOTE 1
1 2
b
e
c
A A2 φ
A1 L1 L
% % 5 *1
1
) /9:.
• 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.
01/02/08