Datasheet

2002-2017 Microchip Technology Inc. DS20001732E-page 19
MCP3221
6.0 APPLICATIONS INFORMATION
6.1 Driving the Analog Input
The MCP3221 has a single-ended analog input (A
IN
).
For proper conversion results, the voltage at the A
IN
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 A
IN
is equal to or less than
V
SS
+ 1/2 LSB, the resultant code is 000h. Addition-
ally, if the voltage at A
IN
is equal to or greater than
V
DD
- 1.5 LSB, the output code is FFFh.
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, A
IN
.
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 only
limited 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
A
IN
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
VA = signal source
R
SS
= source impedance
A
IN
= 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
MCP3221
Analog
Input
Signal
Microcontroller
A
IN
SDA
SCL
PIC16F876
Microcontroller
MCP3221
12-bit ADC
TC74
Temperature
Sensor
24LC01
EEPROM