Analog To Digital Converters: Presentation Outline
Analog To Digital Converters: Presentation Outline
Analog To Digital Converters: Presentation Outline
Damien Gaudry
Russell Marzette
Cindy Perreira
February 5, 2003
Presentation Outline
z Introduction
– What is an analog to digital converter?
– What are the different types and their advantages?
z Successive Approximation ADC example
z ADC and the HC11
z Applications
1
What is an Analog to Digital
Converter?
2
What is an Analog to Digital
Converter?
Quantizing
8
7
Takes 0-10v
Output States
6
5
4 signals and
3 separates it
2
1 into set of
0 discrete out
ranges.
25
0
5
00
.7
.5
.5
.0
.2
.7
1.
0.
-2
-3
-5
-7
-6
-8
-
-1
00
25
50
75
00
25
50
75
0.
1.
2.
3.
5.
6.
7.
8.
3
Quantizing
Coding
7 1 11
6 1 10
5 1 01
4 1 00
3 0 11
2 0 10
1 0 01
0 0 00
O utp ut Ou tput
-1.25
-2.50
-3.75
-5.00
-6.25
-7.50
-8.75
S tate C od e
-10.0
0 .0 0
1 .2 5
2 .5 0
3 .7 5
5 .0 0
6 .2 5
7 .5 0
8 .7 5
4
Accuracy
Accuracy - Resolution
Low High
9 9
8 Resolution = 2.50 v 8
Resolution = 1.25 v
Signal Value
7
7
Signal Value
6
6
5
5
4
4
3
3
2
2
1
1
0
0
Time Time
5
Accuracy - Sampling Rate
Low High
9 9
8 8
7
1 Hz 7
2 Hz
Signal Value
6 6
Signal Value
5 5
4 4
3 3
2 2
1 1
0 0
Time Time
Rule of thumb -
Use a sampling
frequency at least
twice as high as
the signal to avoid
aliasing.
6
Accuracy
9 9
8
Resolution = 2.50 V 8
Resolution = 1.25 V
7 Sampling rate = 1 Hz 7 Sampling rate = 2 Hz
Signal Value
6 6
Signal Value
5 5
4 4
3 3
2 2
1 1
0 0
Time Time
7
Flash (Parallel) Converter
1.25v
0.00v
Comparator
8
Flash (Parallel) Converter
z Advantages
– Very Fast
z Disadvantages
– Lower resolution (many comparators are required
for higher resolution: 8 bit = 255 comparators)
– Higher cost
Dual-Slope Converter
9
Dual-Slope Converter
z Advantages
– Higher resolution
– Higher accuracy
– Lower cost
– Good noise immunity
z Disadvantages
– Slow
Voltage-to-Frequency Converters
Converter takes in a
voltage (Vin) and
returns a series of
pulses. Frequency
of pulses is
proportional to Vin.
10
Voltage-to-Frequency Converters
z Advantages
– Excellent noise reduction
z Disadvantages
– Slow
– Generally limited to 10bits or less
Successive Approximation
Converter
z Guess the answer, use a D/A to z Similar to the ordering weighing
convert it to an analog voltage (on a scale) of an unknown
and compare it to the voltage quantity on a precision balance,
being measured – adjust your using a set of weights, such as
guess accordingly 1g, 0.5g, 0.25g, etc.
Comparator
+ VIN
Control Logic
-
Set Clear
Bit Bit
Result Digital to
Analog
Converter
11
Successive Approximation Converter
z Reliable
z Capable of high speed
z Conversion time is clock rate times number
of bits.
– Example with 8-bit, 2-MHz clock rate:
z Conversion time= (clock period) x (#bits being
converted)
z Conversion time= (0.5 micro-sec) x (8-bits) = 4µs
12
Successive Approximation Example
0.0009765625V of Vref 1 .5
2 .25
z Vin =0.6V
3 .125
z Vref =1V 4 .0625
z Find the digital value of 5 .03125
Vin 6 .015625
7 .0078125
8 .00390625
9 .001952125
10 .0009765625
z MSB (bit 1)
– Divide Vref by 2 = .5V
– Compare Vref /2 with Vin
– If Vin is greater, turn MSB* ON
– If Vin is less than Vref /2, turn MSB off
13
Successive Approximation Example
(cont.)
1 0 0
1 0 0 1
14
Successive Approximation Example
(cont.)
z Digital Results:
MSB MSB-1 MSB-2 MSB-3 … LSB
1 0 0 1 1 0 0 1 1 0
1 1 1 1 1
+ + + + = . 599609375 V
z Results = 2 16 32 256 512
1
0.8
0.6
Voltage
0.4
0.2
0
9 8 7 6 5 4 3 2 1 0
Bit
z 8-Channel, 8-Bit
z Successive Approximation Converter
z Four Main Hardware Components
– Multiplexer
– Analog Converter
– Digital Control
– Results Storage
z Single & Multiplexed Modes
15
Successive Approximation:
Low Level Hardware
Successive-Approximation:
Components
16
Successive-Approximation:
Components (cont)
Successive-Approximation:
Components (cont)
z DLY – Control delay after resume from STOP (if 0 MCU resumes
in 4 bus cycles, if 1 MCU waits 4000 E-clock cycles)
17
Stop and Wait Modes
Successive-Approximation:
Components (cont)
18
Successive-Approximation:
Components (cont)
MULT = 0 MULT=1
Successive-Approximation:
Components (cont)
19
Successive-Approximation:
Components (cont)
Successive-Approximation:
Components (cont)
20
Successive-Approximation:
Components (cont)
z Multiplexer
z Analog Converter
z Digital Control
z Result Registers
PORT E
21
Multiplexer
Notes of Voltages
z With respect to conversion VRL and VRH convert to $00 and $FF
(full scale).
z Charge pump allows a maximum VRH of 7-8V(Typical values
however a indicated in the table to follow).
z A/D input should not go below Vss = VRL = 0, otherwise
permanent damage can occur to the hardware.
z Other:
– External clamping diodes
– Maximum external source impedance (10kΩ) – Errors!!!
– Minimum-desirable source impedance (should limit current to
25mA) – Damaged Hardware!!!
– Rate of charge of analog signal if external low-pass filter is used
(Less that ideal RC selection may cut out meaning full transitions)
22
A/D Converter Applications
z Strain Gages
z Load Cells
z Thermocouples
z Pressure Transducers
z Data Acquisition Devices
z Process and Store
z Microphones (voice circuitry)
z Digital Music Recording
z Digital Speedometer
Questions ?
23