Analog To Digital Converters (ADC) 1: ©paul Godin Created April 2008
Analog To Digital Converters (ADC) 1: ©paul Godin Created April 2008
Analog To Digital Converters (ADC) 1: ©paul Godin Created April 2008
(ADC)
1
ADC 1.1
Paul Godin
Created April 2008
Introduction
Analog to digital conversion is an important aspect
of digital electronics.
ADCs allow the use of real-world values with the
advantages of digital electronics.
There are many examples of ADC converters used
in everyday applications.
ADC 1.3
ADC 1.4
ADC FUNDAMENTALS
ADC 1.5
Sampling
Voltage signals are comprised of amplitude over
time.
The analog signal must be converted to its digital
value at specific periods of time.
Sampling is the process of taking a digital value at
regular time intervals.
ADC 1.6
Sampling
AC Value
Sampling
Pulses
Time
Digital Values at timed intervals
ADC 1.7
Sampling
Increasing the number of binary values
representing a voltage value improves its voltage
resolution. This is called quantization. The
greater the number of bits available, the greater
the quantization level.
ADC 1.8
Nyquist
The sampling frequency must be greater than the
highest frequency component of the analog signal.
The Nyquist frequency has a value of twice the
highest analog frequency.
fsample 2fA(MAX)
Where:
fsample is the sampling frequency
fA(MAX) is the maximum analog frequency
ADC 1.9
Sampling Issues
AC Value
Digital Value
Properly Sampled
Under-sampled
ADC 1.10
Sampling Rates
Sampling rates are selected based on:
application
requirements
standards
ADC 1.11
ADC 1.12
Notes on mp3
ADC 1.13
Digitizing Voice
Human voice for applications such as telephone
conversations need not be sampled at a similar
rate and bit depth as music.
Typically, 8 bits at 8 kHz sampling rate is used
(64kbps).
ADC 1.14
ASYNCHRONOUS ADC
ADC 1.15
Asynchronous ADC
ADCs can be constructed from comparators.
ADC 1.16
Comparator-Based ADC
VDD
Analog In
Digital Out
Flash ADC
VDD
Analog In
Priority
Encoder
Digital Out
Enable
SYNCHRONOUS ADC
ADC 1.19
Hold/Store
ADC 1.20
Basic ADC
A basic ADC contains:
differential analog inputs (VREF) for
scaling
Analog signal input (VIN)
Output Enable for tristate-able outputs
(OE)
Start of Conversion input (SOC) to
trigger the analog signal read cycle.
End of Conversion output (EOC) to
indicate that the conversion is
complete, the data is on the data bus
and a new input may be applied.
Digital output (D0~D7).
ADC 1.21
Analog In
Priority
Encoder
Latch
Circuit
Clock
Digital Out
Digital Out
Enable
Flash ADC
Flash ADCs are very fast and can convert data at
high frequencies.
The major disadvantage to flash ADCs is the
complexity of the circuits.
One op amp is required for each output value (minus one
for all zero). This means that:
an 8-bit Flash ADC requires 255 op amps
a 12-bit Flash ADC requires 4095 op amps
a 16-bit flash ADC requires 65,535 op amps
ADC 1.23
ADC 1.24
Switch
Control Logic
Counter
VReference
Registers
Digital Output
ADC 1.25
ADC 1.26
Dual Slope
VReference
Capacitor Cycle
Counter Cycle
Charge
Counts from 0
to max
Count Reset
Discharge
Count
Display
Count
Display
Max Count /
Restart Count
ADC 1.27
Dual Slope
The Dual Slope method takes time for the
conversion to occur. Each additional bit improves
resolution but also adds a significant bit to the
counter, costing considerable time. This type of
ADC is therefore unsuitable for rapidly changing
analog input.
Each clocking pulse increments the counter by
one. It takes (2N-1) clock cycles times the clock
period for an output to be produced.
ADC 1.28
Dual Slope
If using an 8-bit digital ramp with an input
frequency of 500kHz, the conversion would take:
1
(28 1) (
) 255 2s 510s
500kHz
ADC 1.29
Dual Slope
The Dual Slope method is accurate and requires
less circuitry than other methods. Since it uses
the same clock input for both phases of
conversion, a drift in the clocking frequency will
not affect the accuracy of the output.
ADC 1.30
Successive-Approximation ADC
The Successive-Approximation ADC is one of the
most popular types in use today. It has a
relatively simple configuration and an excellent
conversion rate.
ADC 1.31
Successive-Approximation ADC
SOC
Input
Oscillator
Voltage
Comparator
EOC
Control Logic
Digital to
Analog
Converter
Approximation
Register
Output
Register
Digital Output
ADC 1.32
Successive-Approximation ADC
Solution:
ADC 1.34
In actual practice it may take more than one clock edge per
step, but this is still faster than some other methods.
ADC 1.35
The ADC08
The ADC08 family is a relatively popular SAC ADC.
VDD
+VIN
D0 to D7
-VIN
Digital Output
Vref/2
CS
RD
ClkOUT
WR
ClkIN
INTR
GNDAnalog
A
GNDDigital
D
ADC 1.36
ADC08
ADC 1.37
ADC08
ADC 1.38
ADC08
Questions:
What is the purpose of two grounds?
ADC 1.39
SAC ADC
The SAC ADC is a fast, accurate device.
ADC 1.40
END ADC1
Paul R. Godin
prgodin@ gmail.com
ADC 1.41