8 Dac
8 Dac
8 Dac
100101…
DAC
Types of DACs
• Many types of DACs available.
• Usually switches, resistors, and op-amps used
to implement conversion
• Two Types:
– Binary Weighted Resistor
– R-2R Ladder
Binary Weighted Resistor
Voltages V1 through Vn are either Vref
Vref
if corresponding bit is high or ground V1
if corresponding bit is low R
V2 2R I Rf
V1 is most significant bit
V3 4R
Vn is least significant bit - Vout
+
Vn 2n-1R
MSB
LSB
V1 V2 V3 Vn
Vout IRf Rf n -1
R 2R 4R 2 R
Binary Weighted Resistor
If Rf=R/2
V1 V2 V3 Vn
Vout IRf n
2 4 8 2
For example, a 4-Bit converter yields
1 1 1 1
Vout Vref b3 b2 b1 b0
2 4 8 16
Where b3 corresponds to Bit-3, b2 to Bit-2, etc.
Binary-weighted-input DAC
LSB 8R
D0 Rf
The MSB is represented by the + –
I0
4R If
largest current, so it has the D1
smallest resistor. To simplify I1 – Vout
2R
analysis, assume all current D2 I=0
+ Analog
goes through Rf and none into R
I2
output
the op-amp. D3
MSB I3
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Binary-weighted-input DAC
60 kW 10 kW
0V
30 kW
–
+3.0 V Vout
+
15 kW
+3.0 V
I out ( I 0 I1 I 2 I 3 )
3.0 V 3.0 V 3.0 V
0 V 0.325 mA
120 kW 30 kW 15 kW
Vout = Iout Rf = (−0.325 mA)(10 kW) = −3.25 V
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
R-2R Ladder
Each bit corresponds
Vref to a switch:
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 V2 V2
RR 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 bni i
i 1 2
R/R2 Ladder DAC
R1 R3 R5 R7 Rf = 50 kW
50 kW 50 kW 50 kW 50 kW
R2 R4 R6 R8
–
50 kW 25 kW 25 kW 25 kW Vout
+