Professional Documents
Culture Documents
Introduction
When you scan a picture with a scanner what the scanner is doing??
ADC)
Introduction
Analog signals have infinite states available
mercury thermometer
needle speedometer
Digital signals have two states - on (1) or off (0)
lights (on or off)
door (open or closed)
ADC digitize an analog signal by converting data with infinite states to
a series of pulses.
The amplitudes of these pulse can only achieve a finite number of states.
The digital data produced by an analog to digital converter is only
approximately proportional to the analog input.
That's because a perfect conversion is impossible due to the fact that
digital information changes in steps, whereas analog is virtually
continuous.
Types of data
Analog data (All values on the time and amplitude are allowed).
An analog-to-digital converter
Step 2: Quantizing
Output
States
Example:
You have 0-10V
0
signals. Separate them 1
into a set of discrete
2
states with 1.25V
increments. (How did 3
we get 1.25V? See
4
next slide)
5
Discrete Voltage
Ranges (V)
0.00-1.25
1.25-2.50
2.50-3.75
3.75-5.00
5.00-6.25
6.25-7.50
7.50-8.75
8.75-10.0
Coding
Encoding
Here we assign the
digital value (binary
number) to each
state for the
computer to read.
Output
States
000
001
010
011
100
101
110
111
Before we sample, we have to filter the signal to limit the maximum frequency of the
signal as it affects the sampling rate.
Filtering should ensure that we do not distort the signal, ie remove high frequency
components that affect the signal Sampling.
What the ADC circuit does is to take samples from the analog signal from time to time.
Each sample will be converted into a number, based on its voltage level (as in the figure).
An analog-to-digital converter
An analog-to-digital converter
Aliasing
Occurs when the input signal is changing much faster than the sample rate.
For example, a 2 kHz sine wave being sampled at 1.5 kHz would be reconstructed as
a 500 Hz (the aliased signal) sine wave.
Nyquist Rule:
Use a sampling frequency at least twice as high as the maximum frequency in the
signal to avoid aliasing.
Accuracy
Terminologies
Converter Resolution
The smallest change required in the analog input of an ADC to
change its output code by one level
Converter Accuracy
The difference between the actual input voltage and the full-scale
weighted equivalent of the binary output code
Maximum sum of all converter errors including quantization error
Conversion Time
Required time (tc) before the converter can provide valid output
data
Converter Throughput Rate
The number of times the input signal can be sampled maintaining
full accuracy
Inverse of the total time required for one successful conversion
ADCs come in several basic architectures, although many variations exist for each
type.
Different types of test equipment need different types of ADCs.
For example, a digital oscilloscope needs high digitizing speeds but can sacrifice
resolution. (flash adc)
PC-plug-in digitizers and RF test equipment use ADCs, which provide better
resolution than flash converters, but at the expense of speed.(Subranging
ADCs/pipelined)
General-purpose data-acquisition equipment usually falls between scopes and
DMMs for sample speed and resolution.
This type of equipment uses successive-approximation register (SAR) or sigma-delta
converters.
A digital multimeter (DMM) needs fine resolution and can sacrifice high measurement
speeds.(Integrating ADCs)
10
15
Resolution (Bits)
20
25
Type
Speed (relative)
Cost (relative)
Dual Slope
Slow
Med
Flash
Very Fast
High
Successive Appox
Medium Fast
Low
Sigma-Delta
Slow
Low
1.
DAC
Weighting
23
22
21
20
Binary Digit
State
+5V
0V
+5V
0V
DACs are electronic circuits that convert digital, (usually binary) signals (for
example, 1000100) to analog electrical quantities (usually voltage) directly
related to the digitally encoded input number.
Input Binary
Number
R eg ister
Analog Voltage
Output
Voltage
Switch
Resistive
Summing
Network
Amplifier
Register: Use to store the digital input (let it remain a constant value) during the
conversion period.
Voltage: Similar to an ON/OFF switch. It is closed when the input is 1. It is
opened when the input is 0.
Resistive Summing Network: Summation of the voltages according to different
weighting.
Amplifier: Amplification of the analog according to a pre-determined output
voltage range. For example, an operation amplifier
A typical digital-to-analog converter outputs an analog signal, which is usually
voltage or current, that is proportional to the value of the digital code provided to its
inputs.
Most DAC's have several digital input pins to receive all the bits of its input digital
code in parallel (at the same time).
Some DAC's, however, are designed to receive the input digital data in serial form
(one bit at a time), so these only have a single digital input pin.
where VR is the voltage to which the bit is connected when the digital input is
'1'. A digital input is '0' if the bit is connected to 0V (ground).
A 4-bit summer circuit is shown in Figure
One problem with this circuit is the wide range of resistor values needed to build a
DAC with a high number of digital inputs.
Putting thin-film resistors that come in a wide range of values (e.g., from a few ks to
several Ms) on a single semiconductor chip can be very difficult, especially if high
accuracy and stability are required.
A better-designed and more commonly-used circuit for digital-to-analog conversion
is known as the R-2R ladder DAC, a 4-bit version of which is shown in Fig.
It consists of a network of resistors with only two values, R and 2R.
The input SN to bit N is '1' if it is connected to a voltage VR and '0' if it is grounded.
Thevenin's Theorem may be applied to prove that the output Vo of an R-2R ladder
DAC with N bits is:
Vo = VR/2N (SN-12N-1 + SN-22N-2+...+S020).
In effect, contribution of each bit to the analog output is proportional to its binary
weight
Integrator-based design.
Sigma-Delta design.
Pipeline design.
Dual Slope Converters
Voltage-to-Frequency Converters
flash ADC
Most high-speed oscilloscopes and some RF test instruments use flash ADCs
because of their fast digitizing rate,
which now reaches 5 Gsamples/s for off-the-shelf devices and 20 Gsamples/s for
proprietary designs.
The typical flash converter resolves analog voltages to 8 bits, although some flash
converters can resolve 10 bits
Parallel flash converters use a bank of comparators that compare the input voltage
to a set of reference voltages across a resistor network.
The voltages start at a value equal to that for one-half the least-significant bit (LSB)
and increase in equal voltage increments equivalent to one LSB for each
comparator.
As a result, a 3-bit flash ADC requires 231, or seven, comparators.
Each comparator's output represents one LSB.
An 8-bit flash converter uses 255 (281) comparators.
Although there are many variations for implementing a SAR ADC, the basic architecture is quite
simple (see Figure 1).
The analog input voltage (VIN) is held on a track/hold.
To implement the binary search algorithm, the N-bit register is first set to midscale (that is, 100... .
00, where the MSB is set to 1).
This forces the DAC output (VDAC) to be VREF/2, where VREF is the reference voltage provided to the
ADC.
A comparison is then performed to determine if VIN is less than, or greater than, VDAC.
If VIN is greater than VDAC, the comparator output is a logic high, or 1, and the MSB of the N-bit
register remains at 1.
Conversely, if VIN is less than VDAC, the comparator output is a logic low and the MSB of the
register is cleared to logic 0.
The SAR control logic then moves to the next bit down, forces that bit high, and does another
comparison.
The sequence continues all the way down to the LSB.
Once this is done, the conversion is complete and the N-bit digital word is available in the register.
There are few ways to design an analog-to-digital Converters using a DAC as part of
its circuit.
the ramp counter.
Vin is the analog input and Dn thru D0 are the digital outputs. The control line found
on the counter turns on the counter when it is low and stops the counter when it is
high.
The basic idea is to increase the counter until the value found on the counter matches
the value of the analog signal. When this condition is met, the value on the counter is
the digital equivalent of the analog signal.
As the counter counts up with each clock pulse, the DAC outputs a
slightly higher (more positive) voltage.
This voltage is compared against the input voltage by the
comparator.
If the input voltage is greater than the DAC output, the comparator's
output will be high and the counter will continue counting normally.
Eventually, though, the DAC output will exceed the input voltage,
causing the comparator's output to go low.
This will cause two things to happen: first, the high-to-low transition
of the comparator's output will cause the shift register to "load"
whatever binary count is being output by the counter, thus updating
the ADC circuit's output;
secondly, the counter will receive a low signal on the active-low LOAD input, causing it
to reset to 00000000 on the next clock pulse.
The effect of this circuit is to produce a DAC output that ramps up to whatever level the
analog input signal is at, output the binary number corresponding to that level, and start
over again
One method of addressing the digital ramp ADC's shortcomings is the so-called
successive-approximation ADC.
The only change in this design is a very special counter circuit known as a successiveapproximation register.
Instead of counting up in binary sequence, this register counts by trying all values of bits
starting with the most-significant bit and finishing at the least-significant bit.
Throughout the count process, the register monitors the comparator's output to see if the
binary count is less than or greater than the analog signal input, adjusting the bit values
accordingly.
The way the register counts is identical to the "trial-and-fit" method of decimal-to-binary
conversion, whereby different values of bits are tried from MSB to LSB to get a binary
number that equals the original decimal number.
The advantage to this counting strategy is much faster results: the DAC output converges
on the analog signal input in much larger steps than with the 0-to-full count sequence of a
regular counter.
The way successive approximation works is through constantly comparing the input
voltage to a known reference voltage until the best approximation is achieved.
At each step in this process, a binary value of the approximation is stored in a successive
approximation register (SAR). the SAR uses a refernce voltage for conversion.
Successive Approximation
MSB (bit 9)
Divided Vref by 2
Compare Vref /2 with Vin
If Vin is greater than Vref /2 , turn MSB on (1)
If Vin is less than Vref /2 , turn MSB off (0)
Vin =0.6V and V=0.5
Since Vin>V, MSB = 1 (on)
Integrator-based design
A delta-encoded ADC
A delta-encoded ADC has an up-down counter that feeds a (DAC). The
input signal and the DAC both go to a comparator.
The comparator controls the counter.
The circuit uses negative feedback from the comparator to adjust the
counter until the DAC's output is close enough to the input signal.
The number is read from the counter.
-
Delta converters have very wide ranges, and high resolution , but
the conversion time is dependent on the input signal level.
A Sigma-Delta ADC
ADC0808/ADC0809
8-Bit P Compatible A/D Converters with 8-Channel
Multiplexer
Features
Functional Description
Multiplexer.
The device contains an 8-channel single-ended analog signal multiplexer.
A particular input channel is selected by using the address decoder.
Table 1 shows the input states for the address lines to select any channel.
The address is latched into the decoder on the low-to-high transition of the
address latch enable signal.
CONVERTER CHARACTERISTICS
The Converter
The heart of this single chip data acquisition system is its 8-bit analog-to-digital
converter.
The converter is designed to give fast, accurate, and repeatable conversions over a
wide range of temperatures.
The converter is partitioned into 3 major sections:
the 256R ladder network, the successive approximation register, and the comparator.
The converters digital outputs are positive true.
The 256R ladder network approach was chosen over the conventional R/2R ladder
because of its inherent monotonicity, which guarantees no missing digital codes.
Monotonicity is particularly important in closed loop feedback control systems.
A non-monotonic relationship can cause oscillations that will be catastrophic for the
system.
Additionally, the 256R network does not cause load variations on the reference
voltage.
The first output transition occurs when the analog signal has reached +12 LSB and
succeeding output transitions occur every 1 LSB later up to full-scale.
The successive approximation register (SAR) performs 8 iterations to approximate the
input voltage.
For any SAR type converter, n-iterations are required for an n-bit converter.
Figure 2 shows a typical example of a 3-bit converter.
In the ADC0808, ADC0809, the approximation technique is extended
to 8 bits using the 256R network.
The A/D converters successive approximation register (SAR) is reset on the positive edge
of the start conversion (SC) pulse.
The conversion is begun on the falling edge of the start conversion pulse.
A conversion in process will be interrupted by receipt of a new start conversion pulse.
Continuous conversion may be accomplished by tying the end-of-conversion (EOC) output
to the SC input.
If used in this mode, an external start conversion pulse should be applied after power up.
End-of-conversion will go low between 0 and 8 clock pulses after the rising edge of start
conversion.
At the beginning of the conversion interval, the signal goes high (or low) and
remains in that state until the conversion is completed, at which time it goes
low (or high).
The trailing edge is generally an indication of valid output data, but the data
sheet should be carefully studiedin some ADCs additional delay is
required before the output data is valid.
An N bit conversion takes N steps. In an 8 bit converter, the DAC must settle to 8 bit
accuracy before the bit decision is made, whereas in a 16 bit converter, it must settle
to 16 bit accuracy, which takes a lot longer.
In practice, 8 bit successive approximation ADCs can convert in a few hundred
nanoseconds, while 16 bit ones will generally take several microseconds.
overall accuracy and linearity of the SAR ADC is determined primarily by the internal
DAC.
Until recently, most precision SAR ADCs used laser-trimmed thin-film DACs to
achieve the desired accuracy and linearity.
The thin-film resistor trimming process adds cost, and the thin-film resistor values
may be affected when subjected to the mechanical stresses of packaging.
For these reasons, switched capacitor (or charge-redistribution) DACs have become
popular in newer SAR ADCs.
The advantage of the switched capacitor DAC is that the accuracy and linearity is
primarily determined by high-accuracy photolithography, which in turn controls the
capacitor plate area and the capacitance as well as matching.
In addition, small capacitors can be placed in parallel with the main capacitors which
can be switched in and out under control of autocalibration routines to achieve high
accuracy and linearity without the need for thin-film laser trimming.
Timing Diagram