Escolar Documentos
Profissional Documentos
Cultura Documentos
\
|
+ + + =
R
B
R
B
R
B
R
B
V I
REF
8 4 2
0 1 2 3
|
.
|
\
|
+ + + = =
8 4 2
0 1 2
3
B B B
B V R I V
REF f OUT
EE301 : Electronic Circuits 24
Result:
B
i
= Value of Bit i
Binary Weighted Resistor
Resolution / Value Digital
2
1
=
=
REF
i n
i
REF OUT
V
B
V V
EE301 : Electronic Circuits 25
More Generally:
B
i
= Value of Bit i
n = Number of Bits
Examples /Exercise:
1. Draw the diagram of an 8-bit weighted resistor
DAC. Given: Resistor in 2 bit line = 20k
Reference voltage = -10 volt
8 bit parallel binary input Xp = 10101101
Calculate :
1. Common ratio R of the network
2. Value of each of the resistors in the network
3. Feedback resistor of the OP AMP, R
f
4. Load Current, I
L
5. Analog output Voltage, Vo
SOLUTION : DISCUSSION WITH LECTURER
EE301 : Electronic Circuits 26
R-2R Ladder DAC
EE301 : Electronic Circuits 27
R-2R Ladder DAC
EE301 : Electronic Circuits 28
Only two resistor values- R and 2R
Does not need the kind of precision as Binary
weighted DACs
Easy to manufacture
More popular
Less errors
R-2R Ladder DAC
EE301 : Electronic Circuits 29
R-2R Ladder DAC
EE301 : Electronic Circuits 30
The most popular method incorporates a
ladder network containing series-parallel
combination of resistors, in R and 2R
values.
R-2R Ladder DAC
EE301 : Electronic Circuits 31
Example circuit with 0110 input
Vref
2
2 D 2 D 2 D 2 D
Vo
4
3
3
2
2
1
1
0
0
+ + +
=
R-2R Ladder DAC
EE301 : Electronic Circuits 32
V
REF
MSB
LSB
R-2R Ladder DAC
EE301 : Electronic Circuits 33
Same input switch setup as Binary Weighted Resistor
DAC
All bits pass through resistance of 2R
V
REF
MSB
LSB
R-2R Ladder DAC
EE301 : Electronic Circuits 34
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
R-2R Ladder DAC
(
+ + + =
2 4 8 16
3 2 1 0
D D D D
v
R
R
v
ref
f
out
EE301 : Electronic Circuits 35
The summing amplifier with the R-2R ladder of
resistances shown produces the output
where the D's take the value 0 or 1.
The digital inputs could be TTL voltages which close
the switches on a logical 1 and leave it grounded for
a logical 0.
This is illustrated for 4 bits, but can be extended to
any number with just the resistance values R and 2R.
DAC -Performance Specifications
-Resolution
EE301 : Electronic Circuits 36
Resolution: is the amount of variance in output
voltage for every change of the LSB in the digital
input.
Accuracy is a comparison of the actual output of a
DAC with the expected output. It is expressed as a
percentage of a full-scale, or maximum, output
voltage. For Example: if a converter has a full scale
output of 10V and the accuracy is 0.1%, than the
max error for any output voltage is (10V)(0.001) =
10mV.
N
LSB
V
V
2
Resolution
Ref
= =
N = Number of bits
EE301 : Electronic Circuits 37
Voltage resolution:
n
2
Vref
Voltage step example : for 10 bit
resolution. So n=10
if V
ref
= 10V
voltage step : 10V/1024 = 10mV
DAC -Resolution
DACs Performance Specifications - Resolution
EE301 : Electronic Circuits 38
Better Resolution(3 bit)
Poor Resolution(1 bit)
Vout
Desired Analog
signal
Approximate
output
2
V
o
l
t
.
L
e
v
e
l
s
Digital Input
0
0
1
Digital Input
Vout
Desired Analog
signal
Approximate
output
8
V
o
l
t
.
L
e
v
e
l
s
000
001
010
011
100
101
110
111
110
101
100
011
010
001
000
Comparison Between
Weighted Resistor and R-2R
Weighted resistor
If all bits = 1, branch current
are weighted sum of branch
current = I
L
It uses n resistor
Number of different resistor
values = n from R to 2
n-1
R
More difficult to match
resistor values
Not convinient to make in IC
form
Feedback resistor of
OpAmp = 0.5R
R-2R
If all bit=1, branch currents
are equal. Each contributes
different fraction to I
L
It uses 2
n+1 resistors
No different resistor values =
2, i,e R & 2R
Easier to match
Convenient to make in IC
form
Feedback resistor of OpAmp
= 3R
EE301 : Electronic Circuits 39
Exercise & Example
5.2 Given an 8-bit resistor 2-2R
ladder DAC with reference
voltage VR = 10V. Shunt Arm
Resistor = 10K and Binary input
Xp/Bin = 11001010.
Calculate :
a) Load Current, IL
b) Analog output voltage, Vo
SOLUTION : DISCUSSION WITH
LECTURER
5.3 Draw the circuit of
R -2R DAC as
mentioned in question 5.2
EE301 : Electronic Circuits 40
EE301 : Electronic Circuits 41
Analog to Digital Converters
ADC, A/D or A to D : an electronic integrated circuit
(i/c) that converts continuous signals to discrete
digital numbers.
ADC is an electronic device that converts an input
analog voltage ( or current ) to a digital number.
The digital output may be using different coding
schemes, such as binary and two's complement
binary
OVERVIEW Analog Signals
EE301 : Electronic Circuits 42
Analog signals directly measurable quantities in
terms of some other quantity
Examples:
Thermometer mercury height rises as temperature
rises
Car Speedometer Needle moves farther right as
you accelerate
Stereo Volume increases as you turn the knob.
OVERVIEW Digital Signals
EE301 : Electronic Circuits 43
Digital Signals have only two states. For digital
computers, we refer to binary states, 0 and 1. 1
can be on, 0 can be off.
Examples:
Light switch can be either on or off
Door to a room is either open or closed
Examples of A/D Applications
EE301 : Electronic Circuits 44
Microphones - take your voice varying pressure waves in the air and
convert them into varying electrical signals
Strain Gages - determines the amount of strain (change in
dimensions) when a stress is applied
Thermocouple temperature measuring device converts thermal
energy to electric energy
Voltmeters
Digital Multimeters
Types of ADC
Digital Ramp ADC
Successive Approximation ADC
E2002 : Electronic System 2 45
Analog to Digital Converters
Just what does an A/D converter DO?
Converts analog signals into binary
words
EE301 : Electronic Circuits 46
Analog to Digital Converters
1. Digital Ramp ADC
EE301 : Electronic Circuits 47
Digital ramp ADC
EE301 : Electronic Circuits 48
Output : conversion from analog to digital form inherently
involves comparator action where the value of the
analog voltage at some point in time is compared with
some standard.
Apply the analog voltage to one terminal of a comparator
and trigger a binary counter which drives a DAC. The
output of the DAC is applied to the other terminal of the
comparator.
Since the output of the DAC is increasing with the
counter, it will trigger the comparator at some point when
its voltage exceeds the analog input.
The transition of the comparator stops the binary counter,
which at that point holds the digital value corresponding
to the analog voltage.
Operation - Digital ramp ADC
Uses a DAC a binary counter to generate the digital value of an
analog input.
Initially, the counter is set to 0 (RESET). Vsx = 0volt. Since Vs >
Vsx, the comparator output is HIGH. The counter advances and
the DAC output, Vsx increases one step at a time.
This continues until Vs < Vsx. The comparator will go low and
the counter stops counting and the contents of the counter are
the digital representation of Vs.
The control logic loads the binary count into the latches and
resets the counter, thus beginning another count sequence to
sample the input value. For an 8-bit conversion this means a
maximum of 256 counter states. Notice that for each sample,
the counter must count from zero up to the point at the stair-
step reference voltage reaches the analog input voltage.
EE301 : Electronic Circuits 49
2. Successive Approximation ADC
EE301 : Electronic Circuits 50
Successive Approximation ADC
EE301 : Electronic Circuits 51
The successive
approximation ADC
is much faster
than the digital
ramp ADC
because it uses
digital logic to
converge on the
value closest to
the input
voltage. A
comparator and a
DAC are used in
the process.
Practical considerations of ADC circuits
E2002 : Electronic System 2 52
Example /Exercise
5.4 An eight-bit ADC has resolution of 20mV.
What will its digital output be for an analog
input of 2.17 Volt?
Solution :
DISCUSSION WITH LECTURER
END OF THIS TOPIC
EE301 : Electronic Circuits 53