Professional Documents
Culture Documents
Digital Signal Conditioning - DAC - ADC
Digital Signal Conditioning - DAC - ADC
Conditioning
DR. SEYED HAMED HASHEMI SOHI
ME220
INSTRUMENTATION AND PRECISION ENGINEERING
Digital Signal Conditioning:
Digital Logic
Fractional Binary Numbers,
Boolean Algebra
Digital Logic
• 1001012 = [ ( 1 ) × 25 ] + [ ( 0 ) × 24 ] + [ ( 0 ) × 23 ] + [ ( 1 ) ×
22 ] + [ ( 0 ) × 21 ] + [ ( 1 ) × 20 ]
1001012 = [ 1 × 32 ] + [ 0 × 16 ] + [ 0 × 8 ] + [ 1 × 4 ] + [ 0 × 2 ] +
[1×1]
1001012 = 3710
Fractional Binary Counting
is:
Boolean Algebra 21
We have looked at Boolean functions in abstract terms.
In this section, we see that Boolean functions are
implemented in digital computer circuits called gates.
A gate is an electronic device that produces a result based on
two or more input values.
In reality, gates consist of one to six transistors, but digital designers think of
them as a single unit.
Integrated circuits contain collections of gates suited to a particular
purpose.
Boolean Algebra 22
The three simplest gates are the AND, OR, and NOT gates.
Comparator
Converter
Digital Comparator
There are two main types of Digital Comparator available and these
are.
1. Identity Comparator – an Identity Comparator is a digital
comparator with only one output terminal for when A = B, either A = B =
1 (HIGH) or A = B = 0 (LOW)
Resistor-Strings
N-Bit Binary Weighted Resistors
R-2R Resistor Ladder
Resistor-Strings DAC
Resistor-Strings DAC
Resistor-Strings DAC
Binary Weighted Resistor
input 4R
- Vout
Vout= -IRf
+
2nR
Binary Weighted Resistor
Vref
Voltages V1 through Vn are
either Vref if corresponding bit is V1
high or ground if R
corresponding bit is low V2 2R I Rf
MSB
LSB
V1 V2 V3 Vn
Vout = − IRf = − Rf + + + n -1
R 2R 4R 2 R
N-Bit Binary Weighted Resistors
N-Bit Binary Weighted Resistors
N-Bit Binary Weighted Resistors
N-Bit Binary Weighted Resistors
N-Bit Binary Weighted Resistors
R-2R Resistor Ladder
Binary Weighted Resistor
Advantages
Simple Construction/Analysis
Fast Conversion
Disadvantages
Requires large range of resistors (2000:1 for 12-bit
DAC) with necessary high precision for low resistors
Requires low switch resistances in transistors
Can be expensive. Therefore, usually limited to 8-bit
resolution.
R-2R Resistor Ladder
2R 2R
Req =
(2 R )(2 R )
=R
(2 R + 2 R )
R-2R Ladder
Vref V1 V2 V3 V2 V3
R R
R 1
V3 = 2
V = V2
R+R 2
I
Likewise,
1
V2 = V1
Vout 2
1
V1 = Vref
2
Vout = − IR
R-2R Ladder
Results:
Vref V1 V2 V3 1 1 1
V3 = Vref , V2 = Vref , V1 = Vref
8 4 2
1 1 1 1
Vout = −Vref b3 + b2 + b1 + b0
2 4 8 16
For general n-Bit R-2R Ladder or Binary Weighted Resister DAC
n
1
Vout = −Vref bn −i i
i =1 2
R-2R Resistor Ladder
R-2R Resistor Ladder
R-2R Resistor Ladder
R-2R Resistor Ladder
R-2R Resistor Ladder
R-2R Resistor Ladder
R-2R Ladder
Advantages
Only two resistor values (R and 2R)
Does not require high precision resistors
Disadvantage
Lower conversion speed than binary weighted DAC
Specifications of DACs
• Resolution
• Speed
• Linearity
• Settling Time
• Reference Voltages
• Errors
Resolution
Vref
Resolution = VLSB =
2N
where N = number of bits
Speed
Gain
Offset
Full Scale
Resolution
Non-Linearity
Non-Monotonic
Settling Time and Overshoot
Gain Error
Occurs when
.
the slope of
Analog Output
the actual
output
deviates from
the ideal
output
Digital Input
Occurs when
.
there is a constant
Analog Output
offset between
the actual output
and the ideal
output
Digital Input
.
actual signal has
Analog Output
both gain and
offset errors
Digital Input
Poor representation
of ideal output due to
poor resolution
Size of voltage
divisions affect the
resolution
Non-Linearity Error
ideal output
Settling Time
Time
Applications
Analog signals:
A series of “snapshots”
Analog to Digital Overview
Sampling Rate
How often analog signal is measured [samples per second, Hz]
Example: 44,100 Hz
Sampling Resolution
[ “sample word length,” “bit depth”] Precision of numbers used for
measurement: the more bits, the higher the resolution.
Sampled Data system
In
system science, a sampled-data
system is a control system in which a
continuous-time plant is controlled with a
digital device. Under periodic sampling,
the sampled-data system is time-varying
but also periodic; thus, it may be
modeled by a simplified discrete-time
system obtained by discretizing the plant.
Sampling
Nyquist Theorem:
Sampling rate must be at least twice as high as the highest
frequency you want to represent. Capturing just the crest and
trough of a sine wave will represent the wave exactly.
Aliasing
looks like …
… a lower frequency signal.
Circuit Operation
At the start, the counter is cleared to 0
As the counter counts up with each clock pulse, the Digital to
Analog Converter (DAC) outputs a slightly higher voltage. This
voltage is compared to 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 be the end of
conversion and counter output is the adc output.
Successive approximation ADC
Successive approximation ADC