Freescale Semiconductor: Application Note
Freescale Semiconductor: Application Note
Application Note
AN2438/D
2/2003
ADC Definitions
and Specifications
Freescale Semiconductor, Inc...
The following terms are used in the electronics industry to define ADC
operation.
Measurement Units There are several terms commonly used to measure ADC performance.
Improper or inconsistent use of terms may result in confusion and or
misinterpretation of performance. Common measurement units in use in the
industry are described here (The following examples assume a 10-bit, 5.12-V
ADC with an ideal 2.56-V conversion at $200):
• Volts (V) — The error voltage is the difference between the input voltage
that converts to a given code and the ideal input voltage for the same
code. When the error is measured in volts, it is related to the actual
voltages and is not normalized to or dependent on the input range or
voltage supply. This measure is useful for fixed error sources such as
offset but does not relate well to the observed error.
• Least Significant Bits (LSB) — A least significant bit (LSB) is a unit of
voltage equal to the smallest resolution of the ADC. This unit of measure
© Freescale Semiconductor, Inc., 2004. All rights reserved. © Motorola, Inc., 2003
ADC Transfer The ADC converts an input voltage to a corresponding digital code. The curve
Curves describing this behavior is the Actual Transfer Function. The Ideal Transfer
Function represents this behavior assuming the ADC is perfectly linear, or that
a given change in input voltage will create the same change in conversion code
regardless of the input’s initial level. The Adjusted Transfer Function assumes
this behavior after the errors at the endpoint are accounted for.
Ideal Transfer The Ideal Straight-Line Transfer Function of an ADC is a straight line from the
Function minimum input voltage (voltage reference low; VREFL) to the maximum input
voltage (voltage reference high; VREFH). The Ideal Transfer Function is then
quantized (divided into steps) by the number of codes the ADC is capable of
resolving. The input voltage range is divided into steps, each step having the
same width.
Where:
N is the “width” of the ADC, in our examples, 10 bits.
The way the Ideal transfer function is divided into steps depends on the method
of quantization the ADC uses. The two possible methods are:
1. Uncompensated Quantization — The first step is taken at 1LSB, with
each successive step taken at 1LSB intervals and the last step taken at
VREFH – 1LSB. The Quantization Error (EQ) in this case is from 0LSB to
1LSB.
2. ½LSB Compensated Quantization – The first step is taken at 1⁄2LSB,
with each successive step taken at 1LSB intervals and the last step
taken at VREFH – 11⁄2LSB. The Quantization Error (EQ) in this case is
Freescale Semiconductor, Inc...
±1⁄2LSB.
$3 $3
$2 $2 Ideal Transfer $2 Ideal Transfer
$1 $1 Function $1 Function
$0 $0 $0
VREFL 1 2 3 4 5 6 7V 7V 7V
REFH VREFL 1 2 3 4 5 6
REFH VREFL 1 2 3 4 5 6
REFH
$1
Line Transfer Scale Error (VREFL + EZS) to the
Function (Solid)
maximum input voltage plus the Full-
4 5 6 7V Scale Error (VREFH + EFS).
Zero-Scale Error REFH
The Adjusted Transfer Function is then quantized in the same method as the
Ideal Transfer Function. The Adjusted Code Width is therefore:
ACW = [(VREFH + EFS) – (VREFL + EZS)] / 2N
The Adjusted Transfer Function is then:
Code = (VIN – VREFL – EZS) / ACW VIN = (Code*ACW) + VREFL + EZS
½LSB Comp. Best-Fit TF Some ADC’s exhibit low Zero- and Full-Scale
(+) Best-Fit EFS Errors but still have significant non-linearities.
Conversion In cases where these linearities tend to be in
$7 Actual Transfer
Function (Double)
one direction (for example, a significantly
$6 “bowed” function) the best application results
Best-Fit Best-Fit
Transfer may be obtained if the errors are compared to
$5
Code Width
$4 Function a Best-Fit Transfer Function. The Best-Fit
(Dashed)
$3 Straight-Line Transfer Function is the line from
$2 Best-Fit Straight which the average deviation of all conversions
$1
Line Transfer is minimum. Computing this function requires
Function (Solid)
that the entire Actual Transfer Function be
4 5 6 7V recorded, which is impractical in most
Best-Fit EZS REFH
applications. Therefore, any performance
Input Voltage in LSB
parameters calculated against the Best-Fit
Transfer Function are not useful to the user. Unfortunately, many automatic
evaluation packages (software and hardware) assume this type of curve.
The non-linearities at the endpoints are considered special cases due to the
ease with which they are measured and corrected. The non-linearity at the
beginning of the Actual Transfer Function is called the Zero-Scale Error (EZS)
and the non-linearity at the top end of the function is called Full-Scale Error
(EFS). The Zero- and Full-Scale Errors have the following definitions:
• Zero-Scale Error (EZS) is the difference between actual first transition
voltage and the ideal first transition voltage (if the first transition is not
from $000 to $001, then use the difference between the actual and ideal
$001–$002 transition voltages, and so on).
Freescale Semiconductor, Inc...
NOTE: The Ideal Code Width for the zero code is ½LSB for ADC’s with ½LSB
compensated quantization.
Representing this error is by code widths:
EZS = CCW(0) – ICW(0)
Or, in the case where the first “x” codes are missing,
EZS = CCW(x) – sum(i=0→x)[ICW(i)]
• Full-Scale Error (EFS) is the difference between the actual last
transition voltage and the ideal last transition voltage (if the last transition
is not from $3FE to $3FF, then use the difference between the actual
and ideal $3FD–$3FE transition voltages, and so on).
NOTE: The Ideal Code Width for the last code is 1½LSB for ADC’s with ½LSB
compensated quantization.
Representing this error by code widths:
EFS = CCW(last) – ICW(last)
Or, in the case where the last “x” codes are missing,
EFS = CCW(last-x) – sum(i=x→last)[ICW(i)]
4 5 6 7V 4 5 6 7V
(+) Zero-Scale Error REFH (+) Offset Error REFH
Some literature defines DNL using the Adjusted Code Width (ACW), which
Freescale Semiconductor, Inc...
means Zero- and Full-Scale Error have been adjusted for. For relatively
accurate ADC’s, the difference with respect to DNL is negligible, but using the
ACW complicates defining and testing DNL. Additionally, this definition is only
valid if the application has trim capability.
Related to DNL are two critical figures of merit used in defining ADC operation.
These are:
• Missing Codes — An ADC has missing codes if an infinitesimally small
change in voltage causes a change in result of two codes, with the
intermediate code never being set. A DNL of –1.0 LSB indicates the
ADC has missing codes (DNL measured by this definition cannot be less
than –1.0 LSB).
• Monotonicity — An ADC is monotonic if it continually increases
conversion result with an increasing voltage (and vice versa). A non-
monotonic ADC may give a lower conversion result for a higher input
voltage, which may also mean that the same conversion may result from
two separate voltage ranges. Often, the transfer function will completely
Freescale Semiconductor, Inc...
miss the lower code until after the higher code is converted (on an
increasing input voltage).
Some literature suggests that a DNL of greater than 1.0 LSB may indicate non-
monotonicity. Non-monotonicity is usually accompanied by large, positive DNL
(>1.0 LSB), although a non-monotonic situation can be coincident with a DNL
of less than 1.0 LSB.
curve so the results look very optimistic, but since it is difficult to obtain
the Best-Fit Transfer Function in application, it is not a very useful
measure. Unfortunately, this is what many evaluation packages
(hardware and software) measure.
$2 $2
Ideal Straight Line
$1 Transfer Function $1 Code Error = $2
4 5 6 7V VREFL 1 2 3 4 5 6 7V
REFH REFH
ETUE = 1.75
Input Voltage in LSB Input Voltage in LSB
Figure 4. Total Unadjusted and Code Error Graphs
There are some related definitions to Total Unadjusted Error that vary slightly
in definition. These are:
• Total Error is the same as Total Unadjusted Error, but the term is
misused in several ADC references and is therefore misleading. The
less ambiguous term Total Unadjusted Error is preferred.
• Total Adjusted Error is the difference between the Actual and Adjusted
Straight-Line Transfer Function, accounting for INL plus Quantization
Error. This term is redundant and potentially confusing with respect to
Total Unadjusted Error and will not be used.
• Code Error is the error between the ideal code and the current code.
This is the only figure of merit that measures by the quantized output
instead of voltage. The code error is the Total Unadjusted in LSB,
rounded to the nearest integer.
Input to Reference Differential Noise Error, or Input Noise Error (ENIN), is the
error due to noise, or short-term deviation from the DC-average, on the input
(VIN) or either reference (VREFH or VREFL) relative to the other. Input Noise
Error is caused by:
• Reference Coupling Ratio — This defines the amount of noise that is
Freescale Semiconductor, Inc...
injected onto one reference (i.e., VREFH) that will be coupled onto the
other reference (i.e., VREFL). The higher the coupling ratio, the closer the
references are to each other. If the coupling ratio is low, then between
half and all of this noise will be differential to the input signal, depending
on which reference the input is more closely coupled to and which
reference the input voltage is closer to. The external (board-level)
network of capacitors and parasitic impedances connected between the
references and noise sources usually defines this ratio.
• Differential Coupling Ratio — This defines the amount of noise that is
injected onto either the input or either reference that will be coupled onto
the other. The higher the coupling ratio, the less differential noise will be
seen between the input and the reference. This ratio primarily depends
on the decoupling or filtering method that is used on the input.
• Input Coupling Ratio — This defines the amount of noise that is
generated from a given noise source that is injected onto the input or
reference. This depends on the layout and parasitics on the external
board as well as the internal circuit.
• EMC — Conducted or Radiated noise can be picked up by the input or
reference signals even in otherwise good printed circuit board layouts.
This pick-up is usually dependent on the impedance of the input or
reference source. It commonly affects the input more than the reference
since the reference is usually much lower impedance.
Input Noise
Noise Error Long-term DC-average
Running DC-average
Sample/Compare Window
Figure 5. Noise Error Graph
In the case of synchronous noise, the same noise error, see Figure 5, occurs
with each conversion. This can appear to be an offset error, instead of the
variable errors typically associated with noise. In some cases, this could
Freescale Semiconductor, Inc...
Changing the ADC conversion time relative to the synchronous noise can
reduce Synchronous Noise Offset (after all other noise reduction techniques
have been used). This is most practical if the noise source is low frequency. If
the noise source is the microcontroller bus clock (or based thereupon) and the
ADC is synchronous to the bus, the only option is to operate in Wait mode.
Random noise has the same signature as shown above, but has a random
timing relationship with respect to the ADC conversion process. Noise of this
type includes single events (very slow switching signals), EMC events, line
noise, and white noise. A similar form of noise includes asynchronous noise,
such as communication devices running asynchronous to the ADC clock such
as SPI’s. The magnitude of the noise error (as described in Figure 5) of this
type must have a uniform distribution across ADC samples (either truly random
or white) or it is at least partially synchronous.
Random noise can be divided into the following types relative to the ADC
conversion cycle (the entire cycle must be considered, not just the individual
sample/compare windows):
• Single Event, Returns to Zero in Less than 1 Conversion Cycle —
Since the noise error on subsequent conversions is 0LSB, the effective
noise error can be reduced to less than 1⁄4LSB by sampling four times for
every 1LSB of noise error. This is the type of noise expected from
occasional I/O switching or other low-frequency switching events.
• Single Event, Returns to Zero in X Conversion Cycles — For an
unknown return-to-zero waveform to be reduced to 1⁄4LSB, the input
must be sampled 4*X times for every 1LSB of noise error. If the
waveform is predictable, the maximum noise error (therefore, the
number of cycles required to average it out) can be reduced. This type
of noise includes line noise and DC-bias shifts due to regulator load
changes, display drivers, etc.
• High Frequency Events (Random Frequency) — Random Frequency
noise that is at more than 1⁄4 the ADC conversion cycle frequency can be
averaged out in the same manner as low frequency nose (four samples
for every 1LSB of noise for 1⁄4LSB error). White noise and other
background noise are of this type.
• High Frequency Event (Single Frequency) — Any single-frequency
noise at higher than 1⁄4 the ADC conversion cycle frequency will beat with
the ADC frequency, causing aliasing to occur at the beat frequency.
Removing this aliasing error requires that four samples (for every 1LSB
of noise) be taken at uniform intervals of at least twice the beat
Freescale Semiconductor, Inc...
There is an additional source of input error that is often overlooked but can be
extremely significant. Leakage on the Analog input pin or on the PC board can
cause a voltage drop across the resistive portion of the Analog Input Source.
This error can be on the order of 10’s of LSB if the Analog DC Source
Resistance is high (example, 1 µA*100k/2.5 mV = 40 LSB). There is no way of
perfectly trimming this error especially since it is temperature dependent. The
user can set up a parallel input with the same Analog Source Impedance and
similar, but fixed, VIN to get a rough idea of the error, but since the input leakage
is variable from pad to pad this method will not be perfect.
The best way to eliminate this error is to reduce the Analog DC Source
Resistance and any form of leakage within the customer’s control (PC Board
leakage). An active circuit (op-amp) that buffers the Input Voltage (VIN) can
reduce Analog DC Source Resistance, but the problem may just shift to the
input of the active circuit.
Acquisition Error is the error due to the inability of the acquisition circuits to fully
charge the input of the ADC in the time allotted. The Acquisition Error will
depend on the type of acquisition circuit the ADC uses:
Freescale Semiconductor, Inc...
ATD SAR
Freescale Semiconductor, Inc...
VAIN CHANNEL
+ SELECT 0
CAS INPUT PIN RAIN2
—
CHANNEL
SELECT 1
INPUT PIN RAIN3
. CHANNEL
.. SELECT 2
CHANNEL
SELECT n
CAIN
In the case of a 0.1 µF CAS, a worst case sampling error of 0.5 LSB is achieved
regardless of RAS. However, in the case of repeated conversions at a rate of
fSAMP, RAS must re-charge CAS. This recharge is continuous and controlled
only by RAS (not RAIN), and reduces the overall sampling error to:
ES = 2N * {(∆VAIN / (VREFH – VREFL)) * e−(1 / (fSAMP * RAS * CAS )
+ (∆VSAMP / (VREFH – VREFL)) * Min[(CAIN / (CAIN + CAS)),
e−(1 / (fATDCLK * (RAS + RAIN) * CAIN )]}
This is a worst case sampling error which does not account for RAS recharging
the combination of CAS and CAIN during the sample window. It does illustrate
that high values of RAS (>10 kΩ) are possible if a large CAS is used and
sufficient time to recharge CAS is provided between samples. In order to
achieve accuracy specified under the worst case conditions of maximum
∆VSAMP and minimum CAS, RAS must be less than the maximum value of
10 kΩ. The maximum value of 10 kΩ for RAS is to ensure low sampling error in
the worst case condition of maximum ∆VSAMP and minimum CAS.
• Ideal Code Width (ICW) — The amount of the input range (in Volts) that
an ideal ADC would convert to each code.
• Ideal Straight-Line Transfer Function — The straight line from the
minimum to the maximum voltage.
• Ideal Transfer Function — The ideal conversion code vs. input voltage
curve assuming perfect linearity across the input voltage range.
• Input Leakage (IIN) — The leakage into the pad (not ADC), usually due
to ESD circuits.
• Integral Non-Linearity (INL) — The sum of the individual Code DNL,
except for the Zero-Scale Error, up to the current code, or the difference
between the current transition and the corresponding transition on the
Adjusted Transfer Function.
• Least Significant Bit (LSB) — A unit of voltage equal to the valid input
range divided by the number of possible output codes. The bit has the
smallest value.
• Most Significant Bit (MSB) — The bit having the largest value. Its value
will be 1⁄2 of full scale.
• Offset Error (EO) — The difference between the actual and ideal first
transition voltages.
• Quantization Error (EQ) — The error between the Straight-Line
Transfer Function and corresponding Transfer Function as a result of
Quantization; only included in Total Unadjusted Error.
• Resolution — The number of bits in the output code of the ADC, this
term has no real bearing on the performance of the ADC except that all
performance parameters are measured against the theoretical best ADC
of equal resolution.
• Straight-Line Transfer Function — The code vs. input voltage that
would define an ADC with an infinite number of codes.
• Total Error — Total Unadjusted Error.
• Total Adjusted Error — The difference between the Actual Transfer
Function and the Adjusted Straight-Line Transfer Function; includes INL
and EQ.
Conclusion
Once a user has a good working knowledge of the various terminology used to
describe the specifications and characteristics of analog-to-digital converters,
he can select a converter to best suite the requirements of the system. A good
understanding of the terms used to specify the converter can help the user sort
out the most important design parameters for his system and enable him to get
the best cost and performance trade-offs for the design.
E-mail:
[email protected]
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F Information in this document is provided solely to enable system and software
1-8-1, Shimo-Meguro, Meguro-ku, implementers to use Freescale Semiconductor products. There are no express or
Tokyo 153-0064 implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
Japan Freescale Semiconductor reserves the right to make changes without further notice to
0120 191014 or +81 3 5437 9125 any products herein. Freescale Semiconductor makes no warranty, representation or
[email protected] guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of
Asia/Pacific: any product or circuit, and specifically disclaims any and all liability, including without
Freescale Semiconductor Hong Kong Ltd. limitation consequential or incidental damages. “Typical” parameters which may be
Technical Information Center provided in Freescale Semiconductor data sheets and/or specifications can and do
vary in different applications and actual performance may vary over time. All operating
2 Dai King Street parameters, including “Typicals” must be validated for each customer application by
Tai Po Industrial Estate customer’s technical experts. Freescale Semiconductor does not convey any license
Tai Po, N.T., Hong Kong under its patent rights nor the rights of others. Freescale Semiconductor products are
+800 2666 8080 not designed, intended, or authorized for use as components in systems intended for
[email protected] surgical implant into the body, or other applications intended to support or sustain life,
or for any other application in which the failure of the Freescale Semiconductor product
For Literature Requests Only: could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
Freescale Semiconductor Literature Distribution Center unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor
P.O. Box 5405 and its officers, employees, subsidiaries, affiliates, and distributors harmless against all
Denver, Colorado 80217 claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
1-800-441-2447 or 303-675-2140 directly or indirectly, any claim of personal injury or death associated with such
Fax: 303-675-2150 unintended or unauthorized use, even if such claim alleges that Freescale
[email protected] Semiconductor was negligent regarding the design or manufacture of the part.
AN2438/D
Rev. 0
2/2003