Datasheet
PIC18F2220/2320/4220/4320
DS39599G-page 216 © 2007 Microchip Technology Inc.
19.1 A/D Acquisition Requirements
For the A/D converter to meet its specified accuracy, the
Charge Holding Capacitor (C
HOLD) must be allowed to
fully charge to the input channel voltage level. The ana-
log input model is shown in Figure 19-2. The source
impedance (R
S) and the internal sampling switch (RSS)
impedance directly affect the time required to charge the
capacitor CHOLD. The sampling switch (RSS) impedance
varies over the device voltage (V
DD). The source imped-
ance affects the offset voltage at the analog input (due to
pin leakage current). The maximum recommended
impedance for analog sources is 2.5 kΩ. After the
analog input channel is selected (changed), the channel
must be sampled for at least the minimum acquisition
time before starting a conversion.
To calculate the minimum acquisition time,
Equation 19-1 may be used. This equation assumes
that 1/2 LSb error is used (1024 steps for the A/D). The
1/2 LSb error is the maximum error allowed for the A/D
to meet its specified resolution.
Example 19-1 shows the calculation of the minimum
required acquisition time T
ACQ. This calculation is based
on the following application system assumptions:
CHOLD = 120 pF
R
S = 2.5 kΩ
Conversion Error ≤ 1/2 LSb
VDD =5V → Rss = 7 kΩ
Temperature = 50°C (system max.)
V
HOLD = 0V @ time = 0
19.2 A/D VREF+ and VREF- References
If external voltage references are used instead of the
internal AV
DD and AVSS sources, the source imped-
ance of the V
REF+ and VREF- voltage sources must be
considered. During acquisition, currents supplied by
these sources are insignificant. However, during con-
version, the A/D module sinks and sources current
through the reference sources.
In order to maintain the A/D accuracy, the voltage ref-
erence source impedances should be kept low to
reduce voltage changes. These voltage changes occur
as reference currents flow through the reference
source impedance. The maximum recommended
impedance of the V
REF+ and VREF- external
reference voltage sources is 75Ω.
EQUATION 19-1: ACQUISITION TIME
EQUATION 19-2: MINIMUM A/D HOLDING CAPACITOR
EXAMPLE 19-1: CALCULATING THE MINIMUM REQUIRED ACQUISITION TIME
Note: When the conversion is started, the holding
capacitor is disconnected from the input pin.
Note: When using external references, the
source impedance of the external voltage
references must be less than 75Ω in order
to achieve the specified ADC resolution. A
higher reference source impedance will
increase the ADC offset and gain errors.
Resistive voltage dividers will not provide a
low enough source impedance. To ensure
the best possible ADC performance, exter-
nal V
REF inputs should be buffered with an
op amp or other low-impedance circuit.
TACQ = Amplifier Settling Time + Holding Capacitor Charging Time + Temperature Coefficient
=TAMP + TC + TCOFF
V
HOLD = (VREF – (VREF/2048)) • (1 – e
(-Tc/CHOLD(RIC + RSS + RS))
)
or
T
C = -(CHOLD)(RIC + RSS + RS) ln(1/2048)
T
ACQ =TAMP + TC + TCOFF
TAMP =5 μs
T
COFF =(Temp – 25°C)(0.05 μs/°C)
(50°C – 25°C)(0.05 μs/°C)
1.25 μs
Temperature coefficient is only required for temperatures > 25°C. Below 25°C, T
COFF = 0 μs.
T
C – -(CHOLD)(RIC + RSS + RS) ln(1/2047) μs
-(120 pF) (1 kΩ + 7 kΩ + 2.5 kΩ) ln(0.0004883) μs
9.61 μs
T
ACQ =5 μs + 1.25 μs + 9.61 μs
12.86 μs