1.6 Channel to Channel Crosstalk and Error
Another possible source of crosstalk is from another analog channel. This can be created by fast edges, like digital logic (see Crosstalk and PCB Routing), or an error can be transferred through the sample-and-hold capacitor (CSAMPLE) inside the ADC. The remaining charge on the sample-and-hold capacitor is transferred into the second channel if the ADC first samples a channel that charges the capacitor and then attempts to measure another channel. For a low-Z signal source on the second channel, the charge dissipates quickly. A high-Z signal source on the second channel will dissipate this charge at a much slower rate.
- Buffer the high-Z channel to reduce the source impedance (see Buffering with an Operational Amplifier).
- Discharge the sample-and-hold
capacitor before switching to the high-Z channel.
- Do this by selecting the VSS/GND channel in the device or grounding an analog input pin and measuring that channel.
- Add an external capacitor to the high-Z channel.
The purpose of the external capacitor on the high-Z channel in suggestion c. is to provide a relatively large amount of reserve charge to minimize the change in voltage. The amount of charge on the capacitor is equal to:
Where: Q is the stored charge (in Coulombs), C is capacitance, and V is voltage.
If a capacitor of size CEXT is connected to the high-Z channel, the change in voltage can be estimated based on the change in total capacitance. The worst-case change occurs when the CEXT is fully discharged, and CSAMPLE is fully charged.
However, adding external capacitance to a channel causes two other changes of note. Firstly, the time constant significantly increases, which reduces the bandwidth of the channel. But, if CEXT is already charged and has a much larger capacitance than CSAMPLE, the acquisition time significantly reduces(1) if the capacitor voltage (after connecting CEXT and CSAMPLE) is within 0.5 LSbs of the input signal.
The worst-case for balancing charge occurs when CSAMPLE is fully discharged, and CEXT is fully charged. In this scenario, estimate the optimal external capacitance(2)(3) with the following formula:
Where: n = the number of bits in the result.
- Assuming the resistance of CEXT is negligible.
- For stability, select a capacitor dielectric with a low voltage coefficient, such as NP0 or C0G.
- Caution must be used when a large capacitor is on an I/O line. The ESD diodes will discharge the capacitor into the power rail, which may cause unusual issues with a device reset and potentially damage the device if the microcontroller powers off with this capacitor fully charged.