Datasheet

MCP3021
DS21805B-page 18 2003-2013 Microchip Technology Inc.
6.0 APPLICATIONS INFORMATION
6.1 Driving the Analog Input
The MCP3021 has a single-ended analog input (AIN).
For proper conversion results, the voltage at the AIN
pin must be kept between V
SS
and V
DD
. If the converter
has no offset error, gain error, INL or DNL errors and
the voltage level of AIN is equal to or less than
V
SS
+ 1/2 LSB, the resultant code will be 000h. Addi-
tionally, if the voltage at AIN is equal to or greater than
V
DD
- 1.5 LSB, the output code will be 1FFh.
The analog input model is shown in Figure 6-1. In this
diagram, the source impedance (R
SS
) adds to the inter-
nal sampling switch (R
S
) impedance, directly affecting
the time required to charge the capacitor (C
SAMPLE
).
Consequently, a larger source impedance increases
the offset error, gain error and integral linearity errors of
the conversion. Ideally, the impedance of the signal
source should be near zero. This is achievable with an
operational amplifier such as the MCP6022, which has
a closed-loop output impedance of tens of ohms.
FIGURE 6-1: Analog Input Model, AIN.
6.2 Connecting to the I
2
C Bus
The I
2
C bus is an open collector bus, requiring pull-up
resistors connected to the SDA and SCL lines. This
configuration is shown in Figure 6-2.
FIGURE 6-2: Pull-up Resistors on I
2
C
Bus.
The number of devices connected to the bus is limited
only by the maximum bus capacitance of 400 pF. A
possible configuration using multiple devices is shown
in Figure 6-3.
FIGURE 6-3: Multiple Devices on I
2
C Bus.
C
PIN
V
A
R
SS
AIN
7pF
V
T
= 0.6V
V
T
= 0.6V
I
LEAKAGE
Sampling
Switch
SS
R
S
= 1 k
C
SAMPLE
= DAC capacitance
V
SS
V
DD
= 20 pF
±1 nA
Legend
V
A
= signal source
R
SS
= source impedance
AIN = analog input pad
C
PIN
= analog input pin capacitance
V
T
= threshold voltage
I
LEAKAGE
= leakage current at the pin
due to various junctions
SS = sampling switch
R
S
= sampling switch resistor
C
SAMPLE
= sample/hold capacitance
PIC
®
SDA
SCL
V
DD
R
PU
R
PU
R
PU
is typically: 10 k for f
SCL
= 100 kHz
2k for f
SCL
= 400 kHz
MCP3021
Analog
Input
Signal
Microcontroller
AIN
SDA
SCL
PIC16F876
Microcontroller
MCP3021
10-bit ADC
TC74
Temperature
Sensor
24LC01
EEPROM