Chap-4 DLD
Chap-4 DLD
Definition
Chapter 4
• Most signals we want to process are analog
• i.e.: they are continuous and can take an
Converters inifinity of values
x(t)
1
6/26/2021
Ts t t
Ts
Q
ΔVr
2
1
0
t
Ts
2
6/26/2021
t t
Ts
Analog Analog
Filter
Analog ADC Digital
In practice: fs ≈ (3…5)*ffilter
3
Types of ADCs
• Flash
• Integrating (Single & Dual slope converter)
• Successive approximation converter
• Sigma-delta ADC
Flash ADC
• “parallel A/D”
• Uses a series of
comparators
• Each comparator
compares Vin to a
different reference
voltage, starting w/
Vref = 1/2 lsb
Comparator & Priority Encoder
VIN
+ VOUT
VREF -
If Output
VIN > VREF High
VIN < VREF Low
Advantages Disadvantages
• Very fast • Needs many parts
(255 comparators
for 8-bit ADC)
• Lower resolution
• Expensive
• Large power
consumption
Op-Amp Introduction
• There are two inputs
– inverting and non-inverting
• And one output
• Also power connections
2 7
inverting input 6
output
non-inverting input +
3 4
V
6
Inverting amplifier example
R2
Vout
V2 +
R
Vin
Vout
+
Vout Vout
VH VH
Vin Vin
0 Vref 0 Vref
VL VL
10
Basic Ccomparator Circuits
Comparator with ZERO reference
Comparator with NON ZERO reference
Vout
+V
Vin +Vsat
Vout
Vin
0
-V
-Vsat
a) Comparator with zero
reference b) Input/output response
11
Comparator with NON ZERO reference
+V Vout
R1 +V
Vref +Vsat
Vout
R2 Vin
Vref
-Vsat
The main drawback of the integrating ADC is the slow conversion speed.
As will be discussed, the output can take as long as 2N clock cycles to
convert a single value!
Single slope….
• The integrator produces a sawtooth waveform on its output,
from zero to the maximum possible analog voltage to be
sampled, set by -Vref.
• The minute the waveform is started, the counter starts
counting from 0 to (2^n-1).
• When the voltage found at Vin is equal to the voltage
achieved by the triangle waveform generated by the
integrator, the control circuit captures the last value
produced by the counter, which will be the digital
correspondent of the analog sample being converted.
Problems with Single Slope ADC
• The accuracy of Single-slope ADC depends on
• Linearity of the ramp generator
• Stability of clock frequency
• Response of the comparator
Dual-slope ADC
Dual Slope ADC
• The Dual Slope Integrating ADC is divided into three
phases:
• Phase I is the Auto zero phase: switches are set to
zero out the integrator capacitor and prepare device
to integrate signal
• Phase II is the signal integrate phase: Signal is
integrated for a predetermined # of clock pulses
• Phase III is the reference integrate phase: A
reference signal is applied to the integrator and
integrated down while clock pulses are counted
Dual Slope operation
Phase I Phase II Phase III
VA/RC×t1=
In dual slope type ADC, the integrator generates two different ramps,
one with the known analog input voltage VA and another with a
known reference voltage –Vref. Hence it is called a s dual slope A to
D converter.
The Dual Slope Integrating ADC charges a capacitor for a fixed amount
of time, then discharge while counting output bits.
Dual slope operation
Vref/RC×t2=-VA/RC×t1
∴t2=-t1×VA/Vref
∴VA=-Vref×t1/t2
Dual Slope converter
Advantages Disadvantages
The method is fast and has a fixed conversion time for all inputs.
DAC vs. ADC Vmax
DAC: x0
n digital inputs for digital encoding d x1
DAC
analog input for Vmax …
a
analog output a Xn-1
ADC:
Given a Vmax analog input and an analog input a, how does the
converter know what binary value to assign to d in order to
satisfy the ratio?
• may use DAC to generate analog values for comparison with a
• ADC “guesses” an encoding d, then checks its guess by inputting d
into the DAC and comparing the generated analog output a’ with
original analog input a
• How does the ADC guess the correct encoding?
25
Purpose
• To convert digital values to analog voltages
• Performs inverse operation of the Analog-to-Digital Converter (ADC)
•
VOUT Digital Value
Reference Voltage
26
DACs
• Types
• Binary Weighted Resistor
• R-2R Ladder
• Characteristics
• Comprised of switches, op-amps, and resistors
• Provides resistance inversely proportion to significance of
bit
Binary Representation
SET CLEARED
Most
Significant Bit
Least
-VREF Significant Bit
( 1 1 1 1 )2 = ( 15 )10
Binary Weighted Resistor
• “Weighted Rf = R
Resistors” based
on bit I
i
• Reduces current
by a factor of 2 R 2R 4R 8R Vo
for each bit
MSB
LSB
-VREF
29
Binary Weighted Resistor
• Result:
B3 B2 B1 B0
I VREF R 2 R 4 R 8R
B2 B1 B0
VOUT I R f VREF B3
2 4 8
• Bi = Value of Bit i
30
Binary Weighted Resistor
• More Generally:
Bi
VOUT VREF
2 n i 1
VREF Digital Value Resolution
• Bi = Value of Bit i
• n = Number of Bits
31
R-2R Ladder
VREF
MSB
LSB
32
R-2R Ladder
• The less significant the bit, the more resistors the signal must
pass through before reaching the op-amp
• The current is divided by a factor of 2 at each node
LSB MSB
33
R-2R Ladder
• The current is divided by a factor of 2 at each node
• Analysis for current from (001)2 shown below
I0 I0 I0
2 4 8
R R R 2R
R 2R 2R 2R
I0
B2 Op-Amp input
VREF B1 “Ground”
B0 VREF VREF
I0
2 R 2 R 2 R 3R 34
R-2R Ladder
• Result:
VREF B2 B1 B0
I
3R 2 4 8
Rf B2 B1 B0
VOUT VREF
R 2 4 8
• Bi = Value of Bit i
Rf
35
R-2R Ladder
• Same input switch setup as Binary Weighted Resistor DAC
• All bits pass through resistance of 2R
VREF
MSB
LSB
36
R-2R Ladder
• If Rf = 6R, VOUT is same as Binary Weighted:
VREF Bi
I
3R
2 n i
Bi
VOUT VREF
2 n i 1
• Bi = Value of Bit i
37
Pros & Cons
Limited to ~ 8 bits
Large # of resistors
Cons Susceptible to noise More confusing analysis
Expensive
Greater Error
38
Digital to Analog Converters
• Performance Specifications
• Common Applications
• Resolution
• Reference Voltages
• Settling Time
• Linearity
• Speed
• Errors
40
Digital to Analog Converters
-Performance Specifications
-Resolution
VRef
Resolution VLSB N N = Number of bits
41 2
Digital to Analog Converters
-Performance Specifications
-Resolution
Vout Vout
Desired Analog Desired Analog signal
signal
111
110 110
8 Volt. Levels
2 Volt. Levels
101 101
100 100
011 011
010 010
001 001
0 0 000
000
43
Digital to Analog Converters
-Performance Specifications
-Reference Voltage
11
11
10 10
10 10
01 01
01 01
0 0
00 00 00 00
Digital Input Digital Input
Assume 2 44
bit DAC
Digital to Analog Converters
-Performance Specifications
-Settling Time
• Settling Time: The time required for the input signal voltage to settle
to the expected output voltage(within +/- VLSB).
• Any change in the input state will not be reflected in the output state
immediately. There is a time lag, between the two events.
45
Digital to Analog Converters
-Performance Specifications
-Settling Time
+VLSB
Expected
Voltage -VLSB
Time
Settling time
46
Digital to Analog Converters
-Performance Specifications
-Linearity
• Linearity: is the difference between the desired analog output and
the actual output over the full range of expected values.
• Ideally, a DAC should produce a linear relationship between a digital
input and the analog output, this is not always the case.
47