Chapter 6 Converters
Chapter 6 Converters
DIGITAL SYSTEM
CHAPTER 6
CONVERTERS
LECTURER:
PUAN NURHANUM BINTI OMAR
STUDENT LEARNING OUTCOMES
At the end of this class, student should be able to:
Weighting 23 22 21 20
Binary Digit 1 0 1 0
• DACs are electronic circuits that convert digital (usually binary) signals (for example
1000100) to analog electrical quantities (usually voltage) directly related to the digitally
encoded input number.
APPLICATIONS OF DAC
Audio Video
DIGITAL ANALOGUE CONVERTER
APPLICATIONS OF DAC
Digital Audio
Motor Controllers
CD Players
Cruise Control
MP3 Players
Valve Control
Digital telephone/Answering
Motor Control
machines
Rf = R
I i
R 2R 4R 8R Vo
MSB
LSB
-VREF
4-bit DAC Resistive Divider Circuit
BINARY REPRESENTATION
Rf = R
I i
Vo
Most R 2R 4R 8R
Significant Bit
Least
Significant Bit
-VREF
BINARY REPRESENTATION
SET CLEARED
Most
Significant Bit
Least
Significant Bit
-VREF
( 1 1 1 1 )2 = ( 15 )10
RESISTIVE DIVIDER CIRCUIT
Rf = R
• “Weighted Resistors” based
on bit
• Reduces current by a factor of I i
LSB
-VREF
RESISTIVE DIVIDER CIRCUIT
• Result:
B3 B2 B1 B0
I VREF R 2 R 4 R 8R
B2 B1 B0
VOUT I R f VREF B3
2 4 8
Bi = Value of Bit i
RESISTIVE DIVIDER CIRCUIT
• More Generally:
Bi
VOUT VREF n i 1
2
VREF Digital Value Resolution
Bi = Value of Bit i
n = Number of Bits
RESISTIVE DIVIDER CIRCUIT
• The circuit in above figure is a digital to analog converter circuit of resistors 4-bit binary
weights.
• We can calculate the resistor values using the weight of binary numbers.
• For example, the most high-value resistor (150 kΩ = R1) is a digital input resistor, the
smallest bit (least significant bit), and the values of the other resistor are:
Rf = R
𝑅1 150𝑘Ω
𝑅2 =
21
=
2
= 75𝑘Ω Bit 21 I i
V
𝑅1 150𝑘Ω R 2R 4R 8R
𝑅3 = = = 37.5𝑘Ω Bit 22 o
22 4 MSB
𝑅1 150𝑘Ω
𝑅4 = = = 18.75𝑘Ω Bit 23 LSB
23 8
-VREF
RESISTIVE DIVIDER CIRCUIT
• Now we will analyze the circuit to get the output, Vout for a number of digital input.
i. Binary input = 1000. Rf = R
R1 = 150 kΩ, RF = 20 kΩ,
The gain of the voltage (AV) = RF / R1 = 0.133 I i
• Av = 20 kΩ/25 kΩ = 0.8,
• Vout = Vref x Av = 3V x 0.8 = 2.4V or Rin = Vout = Vref and RF resistance.
• Vout can found by substituting the resistance values of the total
amount of resistance when certain binary input.
BINARY INPUT
Decimal Vout (V)
D C B A
0 0 0 0 0 0
1 0 0 0 1 0.4
2 0 0 1 0 0.8
3 0 0 1 1 1.2
4 0 1 0 0 1.6
5 0 1 0 1 2.0
6 0 1 1 0 2.4
7 0 1 1 1 2.8
8 1 0 0 0 3.2
9 1 0 0 1 3.6
10 1 0 1 0 4.0
11 1 0 1 1 4.4
12 1 1 0 0 4.8
13 1 1 0 1 5.2
14 1 1 1 0 5.6
15 1 1 1 1 6.0
RESISTIVE DIVIDER CIRCUIT
Exercise 1
By assuming the input ‘low’ is 0 V and ‘high’ is 5 V, determine the output of DAC if the input data
is:
10 k
i. 1111 200 k
D0
ii. 1101
D1 100 k
iii. 0101 -
v. 0010 D3 25 k
Solution:
𝑅𝑓 𝑅𝑓 𝑅𝑓 𝑅𝑓
𝑉𝑜𝑢𝑡 = 𝑥𝑉 + 𝑥𝑉 + 𝑥𝑉 + 𝑥𝑉
𝑅0 𝑅1 𝑅2 𝑅3
i. If data 1111
10𝑘Ω 10𝑘Ω 10𝑘Ω 10𝑘Ω
𝑉𝑜𝑢𝑡 = 𝑥5 + 𝑥5 + 𝑥5 + 𝑥5
200𝑘Ω 100𝑘Ω 50𝑘Ω 25𝑘Ω
= 0.25 + 0.5 + 1 + 2
= 3.75 V
RESISTIVE DIVIDER CIRCUIT
Solution:
ii. If data 1101
10𝑘Ω 10𝑘Ω 10𝑘Ω 10𝑘Ω
𝑉𝑜𝑢𝑡 = 𝑥5 + 𝑥0 + 𝑥5 + 𝑥5
200𝑘Ω 100𝑘Ω 50𝑘Ω 25𝑘Ω
= 0.25 + 0 + 1 + 2
= 3.25 V
Solution: A 40 k
B 4 k Output
+
Solution: A 8 k
i. Vout if data in 1111
1 1 1 1 1 𝑅𝑓 1𝑘Ω
= + + + 𝐴𝑣 = = = 1.37
𝑅𝑇 𝑅𝐷 𝑅𝐶 𝑅𝐵 𝑅𝐴 𝑅𝑇 727.3Ω
1 1 1 1 1
= + + + ∴ 𝑉𝑜𝑢𝑡 = 𝑉𝑟𝑒𝑓 𝑥 𝐴𝑣 = 10𝑉 𝑥 1.37 = 13.7 𝑉
𝑅𝑇 1𝑘Ω 2𝑘Ω 4𝑘Ω 8𝑘Ω
RT = 727.3 Ω
RESISTIVE DIVIDER CIRCUIT
Solution:
ii. Converter step size
𝑅𝑓 1𝑘Ω
𝐴𝑣 = = = 0.125
𝑅𝐴 8𝑘Ω
∴ 𝑉𝑜𝑢𝑡 = 𝑉𝑟𝑒𝑓 𝑥 𝐴𝑣 = 10𝑉 𝑥 0.125 = 1.25 𝑉
RESISTIVE DIVIDER CIRCUIT
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 LADDER CIRCUIT
• This circuit is different from binary up a resistor DAC circuit because it only uses two
resistor values, R and 2R.
• R-2R circuit is used more often to get high accuracy and precision
• Disadvantage that we can see is too much of the resistor to be provided.
• For example, if 12-bit DAC with resistor value MSB, then it is 1kΩ resistor will exceed
2MΩ LSB.
• One method of analyzing this circuit is to find a resolution for this circuit.
• The resolution [full-scale resolution] for this circuit is the Vref / 3 i.e. by setting input
012 = 110.
• Full scale output of the circuit is by setting the input will produce 112 = 310 = Vout.
• Then the general expression for the circuit is Vout =
𝑽𝒓𝒆𝒇 𝑹𝒇
𝑽𝒐𝒖𝒕 = 𝒙 𝑩𝒊𝒏 𝒙
𝟐𝒏 −𝟏 𝑹
where n = number of bits and 𝐵𝑖𝑛= digital input converted to decimal numbers.
R-2R LADDER CIRCUIT
𝑉𝑟𝑒𝑓 𝑅𝑓
a) When input 012 = 110, Vout =
4 𝑅
𝑉𝑟𝑒𝑓 𝑅𝑓
b) When input 102 = 210, Vout =
2 𝑅
3𝑉𝑟𝑒𝑓 𝑅𝑓
c) When input 112 = 310, Vout =
4 𝑅
We can get the general equation for output as:
𝑉𝑟𝑒𝑓 𝑅𝑓 𝑉𝑟𝑒𝑓 𝑅𝑓 3𝑉𝑟𝑒𝑓 𝑅𝑓
Vout = V00 + V01 + V10 +V11 = 0 + + +
4 𝑅 2 𝑅 4 𝑅
𝑉𝑟𝑒𝑓 𝑅𝑓
Vout = [0+1+2+3]
4 𝑅
DISADVANTAGES
• Lower conversion speed than binary weighted DAC
PROS AND CONS
RESOLUTION
• Defined as the smallest change achieved in the analogue output as a result of changes
in digital input.
1
% 𝑟𝑒𝑠𝑜𝑙𝑢𝑡𝑖𝑜𝑛 = − 𝑥 100
2𝑛 1
𝑠𝑡𝑒𝑝 𝑠𝑖𝑧𝑒
= 𝑥 100
𝑓𝑢𝑙𝑙 𝑠𝑐𝑎𝑙𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒
Solution:
Number of bits = 10
Number of step size = 210 – 1 = 1023 steps
Thus, the full-scale output voltage = 10 mV x 1023 = 10.23 V
• 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
JUST WHAT DOES AN A/D CONVERTER DO?
Solution:
i. The digital equivalent obtained for VA = 1.5 V
1.5 𝑉
𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑡𝑒𝑝𝑠 = = 150 𝑠𝑡𝑒𝑝𝑠
10 𝑚𝑉
Block diagram
• The successive-approximation converter is
one of the most widely used types of A/D
converter.
• It has more complex circuitry than the
digital ramp A/D converter but a much
shorter conversion time.
• In addition, successive approximation
converters (SAC) have a fixed value of
conversion time that is not dependent on
the value of the analogue input.
SUCCESSIVE APPROXIMATION ADC
• The input bits of the DAC are enabled (made equal to 1) one at a time, starting with
the MSB.
• As each bit is enabled, the comparator produces an output that indicates whether the
analogue input voltage is greater or less than the output of the DAC.
• If the DAC is greater than the analogue input, the comparator’s output is LOW, causing
the bit of the register to RESET.
• If the output is less than the analogue input, the 1 bit is retained in the register.
• The system does this with the MSB first, then the next most significant bit, then the
next, and so on.
• After all the bits of the DAC have been tried, the conversion cycle is complete.
SUCCESSIVE APPROXIMATION ADC
ADVANTAGES DISADVANTAGES