Group1 141018102550 Conversion Gate01 PDF
Group1 141018102550 Conversion Gate01 PDF
Group1 141018102550 Conversion Gate01 PDF
Digital to Analog
Conversion (DAC)
Digital to Analog Conversion (DAC)
Submitted To:
Shakila Naznin
Lecturer
Electronics & Communication Engineering Discipline
Khulna University.
Khulna.
08.09.2014 2
Digital to Analog Conversion (DAC)
Submitted By:
Outline’s
Basic concept about DAC
Application
Operation of Weighted Resistor DAC
Operation of R-2R Ladder DAC
08.09.2014 4
Digital to Analog Conversion (DAC)
Terminology
Analog: continuously valued signal, such as
temperature or speed, with infinite possible values in
between.
Digital: discretely valued signal, such as integers,
encoded in binary.
digital-to-analog converter: DAC, D/A, D2A
V V
t 5
08.09.2014
Digital to Analog Conversion (DAC)
What is a DAC?
A digital-to-analog converter (DAC) takes a digital code
as its input and produces an analog voltage or current as
its output. This analog output is proportional to the digital
input.
100101… DAC
08.09.2014 6
Digital to Analog Conversion (DAC)
General Concept:
Digital to Analog conversion involves
transforming the computer’s binary output in 0’s
and 1’s (1’s typically = 5.0 volts) into an analog
representation of the binary data
DAC: Vmax
n digital inputs for digital encoding
x0
x1
analog input for Vmax … DAC
a
Xn-1
analog output a
08.09.2014 7
Digital to Analog Conversion (DAC)
Block Diagram
08.09.2014 8
Digital to Analog Conversion (DAC)
Resolution:
Resolution is the amount of variance in
output voltage for every change of the LSB in
the digital input.
08.09.2014 9
Digital to Analog Conversion (DAC)
Percentage resolution = 1 / (2n − 1),
expressed as a percentage
Step size, = Vref / (2n − 1)
Example:
Find out the percentage resolution of a DAC of n bits, and
hence determine the value for n = 12.
Solution:
1
Percentage resolution = n × 100%
2 −1
For n = 12,
Percentage resolution =
1
× 100% = 0.0244% = 244ppm (part per million)
2 −1
12
08.09.2014 10
Digital to Analog Conversion (DAC)
Resolution: Examples
Formula 4-bit DAC 10-bit DAC
Number of bits n 4 ?
Number of output 2n 16 ?
codes
Number of steps in 2n−1 15 ?
the output
Percentage 1 / (2n−1) 1/15 ?
resolution
Step size (assuming Vref / 2n-1 Vref / 15 ?
5 V reference
voltage)
08.09.2014 11
Digital to Analog Conversion (DAC)
Programmable Filters
Digitally controlled cutoff frequencies
08.09.2014 12
Digital to Analog Conversion (DAC)
08.09.2014 13
Digital to Analog Conversion (DAC)
08.09.2014 14
Digital to Analog Conversion (DAC)
08.09.2014 15
Digital to Analog Conversion (DAC)
08.09.2014 16
Digital to Analog Converter(DAC)
-VREF
08.09.2014 17
Digital to Analog Converter(DAC)
SET CLEARED
Most
Significant Bit
Least
VREF Significant Bit
( 1 1 1 1 )2 = ( 15 )10
08.09.2014 18
Digital to Analog Converter(DAC)
LSB
MSB LSB
V1 V2 V3 V4
Vout = − IRf = − Rf + + +
R 2 R 4 R 8R
10 K 10 K 10 K 10 K
Vout = − ×1 + ×1 + ×0+ × 1 = −13V
1.25K 2.5 K 5K 10 K
19
08.09.2014
Digital to Analog Converter(DAC)
Binary Weighted Resistor
More Generally:
FinalVOUT = Vout.Resolution
Vref
Resolution = n
2 −1
If, Vref = 13
13V
Then resolution for 4 bit = = 0.867
16 − 1
08.09.2014 22
Digital to Analog Converter(DAC)
Bit: 0 0
0 0
4-Bit Converter
08.09.2014 23
Digital to Analog Conversion (DAC)
08.09.2014 24
Digital to Analog Conversion (DAC)
I0
Op-Amp input
VREF
B1 B2 “Ground”
08.09.2014
B0 25
Digital to Analog Conversion (DAC)
C
C
2 R × V0 V 0
Eth = V A = =
2R + 2R 2
B B
Rth = R
A
08.09.2014 26
Digital to Analog Conversion (DAC)
D VOUT
Rf D D D D
TotalVOUT = • Vref 0 + 1 + 2 + 3
R 16 8 4 2
Practically:
R-2R Ladder DAC
FinalVOUT = Vout.Resolution
V0
Resolution = n
2 −1
If, V0 = 5V
5V
Then resolution for 4 bit = = 0.334
16 − 1
Disadvantages
Lower Conversion Speed Than Binary Weighted
DAC
08.09.2014 29
Thanks
08.09.2014 30
Questions ?
08.09.2014 31