Documente Academic
Documente Profesional
Documente Cultură
Heather Humphreys
Cheng Shu Ngoo
Woongsik Ham
Ken Marek
Woongsik Ham
Topics Discussed
What is a DAC?
Applications
Types of DAC circuit
Binary weighted DAC
R-2R Ladder DAC
Specifications of DAC
Resolution
Reference Voltage
Speed
Settling Time
Linearity
DAC associated errors
Woongsik Ham
What is a DAC?
A digital to analog converter (DAC) is a
Woongsik Ham
Woongsik Ham
What is a DAC?
Digital Analog
Each binary number sampled by the DAC
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011
Digital Input Signal
Typical Output
Woongsik Ham
Woongsik Ham
Types of DAC
Multiplying DAC*
Reference source external to DAC package
Nonmultiplying DAC
Reference source inside DAC package
*Multiplying DAC is advantageous considering the external
reference.
Woongsik Ham
Common Applications
Used when a continuous analog signal is
required.
Signal from DAC can be smoothed by a Low
pass filter
Digital Input
Piece-wise
Continuous Output
0 bit
011010010101010100101
101010101011111100101
000010101010111110011
010101010101010101010
111010101011110011000
100101010101010001111
n bit DAC
nth bit
Analog
Continuous Output
Filter
Woongsik Ham
Common Applications:
Function Generators
Digital Oscilloscopes
Digital Input
Analog Ouput
Signal Generators
Sine wave generation
Square wave generation
Triangle wave generation
Random noise generation
Applications Video
Woongsik Ham
Woongsik Ham
Common Applications
Motor Controllers
Cruise Control
Valve Control
Motor Control
Woongsik Ham
Types of DAC
Multiplying DAC*
Reference source external to DAC package
Nonmultiplying DAC
Reference source inside DAC package
*Multiplying DAC is advantageous considering the external
reference.
Types of DAC
implementations
HCS12)
Ken Marek
Ken Marek
Ken Marek
Assumptions:
Ideal Op-Amp
No Current into OpAmp
Virtual Ground at
Ken Marek
Vout
Bn 1 Bn 2
IRf Rf Vref
2R
R
binary
inputs B0
(LSB) to Bn-1
(MSB)
Each Bi = 1
or 0 and is
multiplied
by Vref to
get input
B0
B1 voltage
... n 2 n-1
2 R
Ken Marek
B3 B2 B1 B0
Vout aVref
2 4 8
1
Input parameters:
Input voltage Vref = -2V
Binary input = 1011
Coefficient a =
Vout
1
11
1 0 1 1
2 1.375V
2
8
1 2 4 8
Ken Marek
Vmin
Rf Vref
R 2n-1
V
ref is
If Rf = R/2 then resolution
2n
1
1 n
2
Ken Marek
Disadvantages
Need large range of resistor values (2048:1
Ken Marek
R-2R Ladder
Each bit
corresponds to a
switch:
If the bit is high, the
corresponding switch
is connected to the
inverting input of
the op-amp.
If the bit is low, the
corresponding switch
is connected to
ground.
Ken Marek
R-2R Ladder
B2
B1
B0
Ken Marek
R-2R Ladder
Circuit may be
analyzed using
Thevenins theorem
(replace network
with equivalent
voltage source and
resistance)R f n 1 B
i
V
V
out
ref
Final
n i
result
is:
R
2
i 0
Vout Vref
Rf
n 1
R
2
i 0
Bi
( n 1) i
B2
B1
B0
Rf
Ken Marek
R-2R Ladder
Resolution
Vmin
Rf Vref
R 2n
Vref
If Rf = R then resolution is
2n
and max VoutVis
max Vref
1
1 n
2
Ken Marek
R-2R Ladder
Advantages:
Only 2 resistor values
Lower precision resistors acceptable
Disadvantages
Slower conversion rate
Ken Marek
General comments
Circuits as shown produce only unipolar
output
Replacing ground with Vref will allow Vout to
be positive or negative
DAC Specifications:
Reference Voltages
Resolution
Speed
Settling Time
Linearity
Reference Voltage
Determines Characteristic of DACs
Set externally or Generated inside DAC
Vref sets maximum DAC output voltage (if not amplified)
Full scale output voltage:
Vref determines analog output voltage changes to steps taken by 1 LSB of digital input signal
(resolution)
Eo ( fs )
Vref (2 n 1)
2n
X k A B
X = analog output
k = Constant
A = Vref analog
B = Binary (digital) input
Reference Voltage
Internal vs. External Vref?
Internal
External
Non-Multiplier DAC
Multiplying DAC
Vary Vref
temperature range
of inner structure
Resolution
1 LSB (digital)=1 step size for DAC output (analog)
Resolution
Vref
2n
3-bit Resolution
4.5
4
4.5
4
3.5
3.5
3
2.5
2.5
1.5
1.5
1
0.5
0.5
1 LSB
8-bit Resolution
Settling Time
Settling Time
tsettle
DAC Linearity
The difference between the desired analog output and the actual
relationship?
Ideally, proportionality constant linear slope
Increase in input increase in output monotonic
Integral non-linearity (INL) & Differential non-linearity (DNL)
Linear
Non-Linear
Heather Humphreys
Heather Humphreys
Gain Error
Slope deviation
Amplitude Less
than Ideal
High Gain:
Step Amplitude
Higher than
Ideal
Heather Humphreys
Offset Error
The voltage offset
Heather Humphreys
Full-Scale Error
Includes gain error
Heather Humphreys
Heather Humphreys
Heather Humphreys
Heather Humphreys
Resolution Errors
Heather Humphreys
Ref Voltage
Resolution
# of bits
2
Inherent errors associated with resolution
More Bits => Less Error & Greater Resolution
Less Bits => More Error & Less Resolution
Q: How does very high resolution affect measurements?
A: LSB may be in noise range and not produce an output;
it may be difficult to find an op-amp to amplify such small
current
Heather Humphreys
Sources of Errors
Deviation of voltage sources from nominal
values
Variations and tolerances on resistance
values
Non-ideal operational amplifiers
Other non-ideal circuit components,
Woongsik Ham
Project Applications
Motor speed controller
Solenoid valves (pneumatics)
Digital Motor Control
Computer Printers
Sound Equipment (e.g. CD/MP3 Players,
etc.)
Electronic Cruise Control
Digital Thermostat
References
Previous student presentations and
http://en.wikipedia.org/wiki/Digital_to_analog
http://www.allaboutcircuits.com/vol_4/chpt_13/index.html
Alicatore, David G. and Michael B Histand. Introduction to
astr.gsu.edu/hbase/electronic/dac.html#c4