Professional Documents
Culture Documents
uunitnit6:
AD/DA
AD/DACONVERTER
CONVERTER
6:
.
.
In the development of science and technology, all information to be processed must be accurate
and fast. Since all the information around us is continuous, then a circuit that is capable of
converting analog signals to digital needed. Circuit that is capable of converting analog signals to
digital signals is an analog to digital converter (ADC - Analog-to-Digital Converter). Digital to
analog converter (DAC - Digital-to-Analog Converter) was used to convert digital signals to
analog.
Most of the physical variables in the universe are in the form of a signal to an analog signal that
can be measured on a continuous limit for the values of the signal. An example, of this signal is
the temperature, pressure, flow and others. If an analog signal into the input to a digital system or
otherwise, an interface device such as digital analog converter (ADC) and digital to analog
converter is to be used.
Figure 6.2: ADC and DAC are used to interface a computer to the analog world so that computer can
monitor and control a physical variable.
AD/DA CONVERTER EE301 / UNIT 6/ 3
Figure 6.2 is an example you can see where the analog to digital converter (ADC) and digital to analog
converter (DAC) serves as the interface between the digital and analog systems. The figure also shows
the five elements which are directly involved when the computer used to control a physical variable. The
function of that element is:
a) Transducer
A device that converts one form of energy other energy. Electric transducers convert a physical signal
into an electrical signal. For example, thermistor (temperature electrical (mV)), strain gages (pressure
resistance) and others. Output from the transducer is an analog current or voltage is directly proportional
to the physical variables.
b) ADC (Analog to Digital Converter)
Transducer output signal (analog) is the input for the ADC. ADC convert analog signals into digital
signals. This digital output bits contain the number representing the value of the analog input. Example:
ADC change the value of 800 - 1500 mV from the transducer to the binary value ranging from
010100002 (8010) to 100,101,102 (15,010).
c) Computer
The output signal from ADC is sent to a computer, where it processes the digital input value refers to the
direction of the program are being fulfilled. The program performs the calculation operations or other
operations.
e) Actuator
Analog signal from digital to analog converter (DAC) connected to the device or circuit that acts to
control variable physical. If this variable is water temperature, actuator may consist of a valve (electrical
control) that govern the flow of hot water to the tank based on the analog voltage from digital to analog
converter (DAC). These flow rates proportional to the analog signal, with 0 volts as there is no flow and
10 volts is the maximum flow rate.
Analog to digital converter (ADC) and digital to analog converter (DAC) serves as an interface
(interface) between digital and analog systems. This feature will become increasingly important with a
cheap microcomputer in the field of process control.
AD/DA CONVERTER EE301 / UNIT 6/ 4
A
1s B
2s
C DAC 4-bit V
4s
D
8s
DAC
A
1s B Resistor Summing
2s C network Amplifier VoutV0ut
4s D
8s
a) Resistor networks
Circuit consists of switches and resistors. Binary or digital input is switch labeled with 20, 21 and so on.
Two types of resistor circuit series you'll learn, the first obstacle is a series of binary weights where the
value weighting number obstacle follow binaries. The second obstacle is a series R/2R, where the
resistor that are used are R and 2R our other features.
b) Summing Amplifier
Consists of the amplifier (op-amp) which operates summing amplifier circuit. Produce the number of
weighting for voltage input where the output or analog current that can be measured by the meter.
AD/DA CONVERTER EE301 / UNIT 6/ 5
Vref
A B
Rf
2R 2R
R
-
+
2R Vout
.
AD/DA CONVERTER EE301 / UNIT 6/ 7
6.1.4 Operation
a) Resistive Divider Circuit
D C B A
3V
18.7K 37.5K 75K 150K
RF
R4 R3 R2 R1
20K
--
V
VV
Vout
out
++ VOU
The circuit in Figure 6.7 is a digital to analog converter circuit of resistors 4-bit binary weights.
We can calculate the resistor values using the weighting of the binary number.
For example;
Referring to figure 6.7, the most high value resistor (150K = R 1) is a digital input resistor, the
smallest bit (least significant bit), and the values of the other resistor is;
R1 150K
R2 = 1
1 = 75k, Bit to 21
2 2
R 150K 150K
R 3 21 2 37.5k, Bit ke 2 2
2 2 4
R 1 150K
R4 3 18.75k Bit ke 23
2 8
We will now analyze the circuit to get the output, Vout for a number of digital input.
i. Binary Input = 0001.
RF 20K
R1 = 150K, RF = 20K, Multiplier Voltage (AV) = 0.133
R1 150K
Vout = Vref X AV = 3 X 0.133 = 0.4V
ii. Binary Input = 0110
R2 = 75K, R3 = 37.5K, RT = (R2 parallel with R3) = 25K
AV = 20K/25K = 0.8, Vout = Vref X AV = 3 X 0.8 = 2.4V
AD/DA CONVERTER EE301 / UNIT 6/ 8
or
1
RIN = 1 1 1 1 dan Vout = Vref RF RIN, Vout
R4 R3 R2 R1
Vout can be found by substituting the resistance values of the total amount of resistance when
a particular binary input.
In summary we can see the resulting output is shown in Table 1.
Table 1
Binary Input
Decimal Vout (V)
No. 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
b) R-2R Circuit
Vref
A B
Rf
2R 2R
-
R
+
2R
Vout
This circuit is different from the binary up a resistor DAC circuit (Figure 6.7) because it uses
only two resistor values, R and 2R. For example, if 12-bit DAC with a resistor value MSB
AD/DA CONVERTER EE301 / UNIT 6/ 9
(most significant bit) then it is 1K resistor will exceed 2M LSB. With integrated circuit
fabrication technology, it is difficult to produce resistance values range is too large to small
current values, and can set the right ratio in the range of temperatures.
For this reason R/2R DAC circuit is often used for high precision and accuracy.
Firgure 6.8 is an example of a circuit diagram 2-bit DAC circuit R/2R. Now let us analyze the
circuit and get a general equation for the output, Vout.
Switch A is the LSB input switches and switch B is the switch input MSB.
One method of analyzing this circuit is to find a resolution for this circuit. The resolution
[full-scale resolution and you'll learn on the topic specifications DAC] for this circuit is the
Vref / 3 is by setting entry 012 = 110. Full scale output of the circuit is by setting entry will
result in 112 = 310 will result in Vout. So,
Vref
Vout = 3 Vref
3
where n = number of bits and Bin = digital input converted to decimal numbers.
Vref
B
A
B Rf
I1 Rf
A B Rf
I4 I6 IO
2R 2R I2 B I2
2R -
-
2 I3 2R VREFI/4 R
+
-
- VREF/2 (1+2
Vth1
R I(1+2R 2R
2R
+
I5 R R Vth2 -
-
)
2
VOUT
)
I2 VOUT +
2 VOUT R
R Kaedah lain ialah menggunakan 2 Hukum
R
Thevenin. I6 = Vref/4R = -Io
I4 = Vref/2R = 0/2R = 0.
VOUT (01) = Io X Rf = Vref/(4R) x Rf
Adakah anda masih lagi ingat bagaimana
I1 = Vref/2R, I2 = 0/2R = 0.
I5 = Vref/(2 X 2R) = Vref/(4R)
Hukum Thevenin digunakan untuk = (Vref/4)
I3 = I1 + I2 menyelesaikan
= Vref/2R teori litar! Sekarang kita akan
Rth = 2R // 2R = R, Vth2 = Vref/4
cari ungkapan bagi Vout menggunakan kaedah
Rth = 2R //2R = R, Vth1 = Vref/2 Raja Figure 6.9: DAC R-2R 2 Bit with input 01
Hukum Thevenin…… Kita mulakan dengan 2
masukan digital 01dengan merujuk pada rajah
5.7.
AD/DA CONVERTER EE301 / UNIT 6/ 10
Vref R f
a) From figure 6.9 , when input 012 = 110, Vout =
4 R
*In conclusion, from what we have to prove from the above analysis of the
Vref R f
circuit, the output Vout = B in ,, n = number of bits and B in = binary input
2n R
that has been converted to decimal.
A Vref
B Vref
Rf
Rf B
A I I1 Rf
I4B I2 I6 IO
2
2R 2R
2R VREF/2 I(1+2) -
2 I3
0 R +
Vth1 -
R I(1+2)R -
+
I5 R I(1+2)R Vth VOUT
2R I2 + 2R
VOUT
2R 2 VOUT
2
R I6 = Vref/2R = -Io
I1 = Vref/2R= I2 = 0/2R = 0. I4 = Vref/2R.
VOUT (10) = Io X Rf = Vref/(2R) x Rf
I3 = I1 + I2 = Vref/2R = 0 I5 = 0
= (Vref/2)
Rth =2R 2R = R, Vth1 = 0 Rth = R, Vth2 = Vref/2
Figure 7.0: DAC R/2R 2 Bit with input 102
AD/DA CONVERTER EE301 / UNIT 6/ 11
A
Vref
B
Vref Rf
Rf
A I I1 B Rf
2
I4 I7 IO
2R 2R B I2
I 3VREF/4 -
2 3
2R I(1+2) R
Vth1 - +
R I(1+2)R Vref/2
+ - VOUT
2R I2 I5 R I(1+2)R V 2
VOUT th2 +
2 R
VOUT
R 2
I4 = Vref/2R.
R I7 = 3Vref/4R = -Io
I1 = Vref/2R, I2 = 0
I5 = Vref/4R, VOUT (11) = Io X Rf
I3 = I1 + I2 = Vref/2R
I6 = I4 + I5 = 3Vref/4R = 3Vref/(4R) x Rf
Rth = 2R//2R = R,
Rth = 2R//2R = R, = (3Vref/4)
Figure 7.1.: DAC R-2R 2 Bit with input 112
Vth1 = Vref/2 Vth2 = 3Vref/4
Now let's see what the output Vout for the expression R/2R 4-bit DAC as shown in Figure 7.2.
5V
A B C D Rf
2R 2R 2R 2R
-
R R R
+
2R
VOUT
Table 2
Input Output,VOUT
D C B A Vref R f 5 R 5
VOUT= B in = 4 Bin Bin
n
2 R 2 R 16
0 0 0 0 0
0 0 0 1 0.3125
0 0 1 0 0.6250
0 0 1 1 0.9375
0 1 0 0 1.2500
0 1 0 1 1.5625
0 1 1 0 1.8750
AD/DA CONVERTER EE301 / UNIT 6/ 13
0 1 1 1 2.1875
1 0 0 0 2.5000
1 0 0 1 2.8125
1 0 1 0 3.1250
1 0 1 1 3.4375
1 1 0 0 3.75
1 1 0 1 4.0625
1 1 1 0 4.375
1 1 1 1 4.6875
D
C
B VOUT 1V
DAC
A Resolusi
(1 V)
clock 0V
mo
Bin
0000 … 1001 ………..
Figure 7.3 shows the DAC receives digital input from mode counter 16. 4-bit DAC has a resolution of 1
V and maximum output voltage or full-scale voltage of 15 V. Now let us examine the specifications for
digital to analog converter.
Resolution
Defined as the smallest change achieved in the analog output as a result of changes in digital input.
Manufacturers often refer to the resolution of the DAC is in the number of bits. For example, 10-bit
DAC has a resolution of 10 bits. 10-bit DAC has a resolution smaller than 8-bit DAC.
Resolution can be expressed in two cases, either the Voltage or Ampere and percent. Resolution in the
voltage or Ampere is also known as the step size. You can see in Figure 7.3 above, the output waveform
versus the digital input is shaped lito a staircase has 15 stairs and 16 step. 15 stairs is known as the
number of steps. So the step size or resolution for digital to analog converter in this figure is 1 V. To your
knowledge is often the resolution is equal to the value of the product when the first digital input of
00012. Percentage Resolution can be expressed as the amount of it is also useful to express it as a
percentage of the full-scale output.
Example
Digital to analog converter 10-bit with step size 10 mV. Search for full-scale voltage and the percent
resolution.
Solution
Number of bits = 10
The total step size = 210-1 = 1023 steps
Thus, the full-scale output voltage = 10mV x 1023 = 10.23 V
stepsize 10mV
% Resolution = fullscalevoltage 100 = 100 0.1%
10.23 V
1 1
or % resolution = totalstep 100 = 100 0.1%
1023
Figure 7.4 DAC circuit of resistor Divider 4-bit Input and Output
Signals in the real world are analog: light, sound, you name it. So, real-world signals must be converted
into digital, using a circuit called ADC (Analog-to-Digital Converter), before they can be manipulated
by digital equipment.When you scan a picture with a scanner what the scanner is doing is an analog-to-
digital conversion: it is taking the analog information provided by the picture (light) and converting into
digital.
When you record your voice or use a VoIP solution on your computer, you are using an analog-to-digital
converter to convert your voice, which is analog, into digital information.Digital information isn’t only
restricted to computers. When you talk on the phone, for example, your voice is converted into digital (at
the central office switch, if you use an analog line, or at you home, if you use a digital line lito ISDN or
DSL), since your voice is analog and the communication between the phone switches is done
digitally.When an audio CD is recorded at a studio, once again analog-to-digital is taking place,
converting sounds into digital numbers that will be stored on the disc.
6.2.1 Methods of Converting ADC
Function of the analog to digital converter is a process of changing the input analog signal to
digital output. Figure 7.8 is a general block diagram of an analog to digital converter. Table 3
shows an example of an analog to digital converter with a 0.2V step size and full-scale voltage of
3V.
We will learn two types of analog to digital converter circuit of Ramp Digital Converter and
Successive Approximation Converter.
MSB
D
Clock
C
Input ADC
0 – 3V B
Voltage LSB
A
Aanalog
Figure 7.5: ADC block diagram
Table 3 : Example ADC with step size 0.2V dan Full Scale Voltage, VFS = 3V
Output Digital Output Digital
Input Analog Input Analog
(Vin) (Vin)
D C B A D C B A
0 0 0 0 0 1.6 1 0 0 0
0.2 0 0 0 1 1.8 1 0 0 1
0.4 0 0 1 0 2.0 1 0 1 0
0.6 0 0 1 1 2.2 1 0 1 1
0.8 0 1 0 0 2.4 1 1 0 0
1.0 0 1 0 1 2.6 1 1 0 1
AD/DA CONVERTER EE301 / UNIT 6/ 17
1.2 0 1 1 0 2.8 1 1 1 0
1.4 0 1 1 1 3.0 1 1 1 1
Voltage comparator is used to compare the analog input voltage and output voltage from the DAC.
Control logic circuit used to reset count, when the input is 'START' is given a logic high. Counter circuit
is used to allow the clock to add a step by step until the output DAC (VA ') greater than or equal to the
input analog (VA). This circuit is called a digital ramp ADC because the signal VA is a step-by-step (the
step-by-step), which is lito a ladder.
Q0
Clock = A Q1 Output digital
Q2
CK
START B Q3
Input analog
VA
VA’ + Voltage Comparator
-
VA > VA’ = 1
DAC
VA < VA’ = 0
VOUT
Figure 7.6: 4-Bit Digital Ramp Circuit
IV) This process will continue until the VA ' VA. Comparator output will be low, the counter will stop
on the count represented by the VA. The conversion process is complete, the conversion at the output of
the comparator from high to low martod the conversion process is complete (EOC - End Of
Conversion).
Resolution and accuracy of the analog to digital converter is the same as the resolution and accuracy for
the digital to analog converter
.
ii. Conversion time, TC (Conversion Time)
Conversion time is the time taken to convert the analog input digital exit. For the digital ramp
converters, counters count from 0 to VA ' VA. Time to complete the conversion process, depending on
the value of analog input, VA. The greater the value of the VA, then more steps and longer time of
conversion. We will now see the expression for the exchange of digital ramp converter.
Example
Digital ramp ADC has the following values:
Bell-shaped frequency = 1 MHz, the VT (voltage 'threshold sensitivity' = (VA '- VA) = 0.1 mV, filled
with Scale voltage 10-bit DAC = 10.23V. Find the following values;
a) If VA = 3568 V, what is the equivalent output.
b) conversion time.
c) The resolution of the converter in volts and percent.
solution
a) Number of steps = 210-1 = 1023 steps
V 10.23
size step = resolution = totalstep 1023 10mV
FS
When completed the process of conversion, the output of the counter is 35 710 = 01,011,001,012, a
digital output when VA = 3.568V.
AD/DA CONVERTER EE301 / UNIT 6/ 20
b) From a) above we know that the 357 steps required to get products 01011001012. Then 357 clock
cycles occur at a rate of 1 s. So this will give time for the conversion of 357 s.
1
c) Resolution = DAC step size = 10 mv,% resolution = x 100 0.1%
1023
Input VA
analog
VA’
+
-
Clock Successive-approximation
DR (Data ready end-of-
register (SAR) conversion)
START MSB LSB
Q7
Cp Digital
Q6 Output
Vref = 10V Q5
Output register
8-Bit D/A Converter (DAC)
Vout
Q4
Figure 7.7 : Example Block Diagram 8-Bit Successive Approximation
Circuit Q3
Q2
6.2.6 Operation of Successive Approximation Circuit
Q1
a) One method of addressing the digital ramp ADC's shortcomings is the so-called successive-
approximation ADC. The only change in this design is a very special counter circuit known as a
Q0
successive-approximation register.
b) Instead of counting up in binary sequence, this register counts by trying all values of bits starting
with the most-significant bit and finishing at the least-significant bit.
c) Throughout the count process, the register monitors the comparator's output to see if the binary
count is less than or greater than the analog signal input, adjusting the bit values accordingly.
d) The way the register counts is identical to the "trial-and-fit" method of decimal-to-binary
conversion, whereby different values of bits are tried from MSB to LSB to get a binary number that
equals the original decimal number.
e) It should be noted that the SAR is generally capable of outputting the binary number in serial
(one bit at a time) format, thus eliminating the need for a shift register.
f) The advantage to this counting strategy is much faster results: the DAC output converges on the
analog signal input in much larger steps than with the 0-to-full count sequence of a regular counter.
AD/DA CONVERTER EE301 / UNIT 6/ 21
2. SAC circuit using the register circuit to provide input to the DAC block where logic controllers
("control logic") to change the contents of the register-to-bit bit up in the registry data with an analog
input, VA (within the resolution of the converter).
Exercise DAC
3. Beside transducer that used as a temperature control system what other sensor can be used.
4. Functions of the analog to digital converter to change the signal to the signal __________
___________________.
6. Draw a digital to analog converter circuit up a 5-bit binary with the highest value of the resistor is
50k and RF = 1k .
7. Referring to the circuit question 5.6 above, given Vref = 5V, Find: -
a. Vout when the input is 00001.
b .Vout when the input is 11101.
c .Vout max.
C B A
Rf
Vin = 3V R3 R2 R1
+10V
100k
-
+ VOUT
Figure A -10V
9. A voltmeter connected to the output, Vout, as shown in Figure A. Calculate;
a. value in the volt meter resolution.
b .The full scale output.
c .Percentage of the resolution.
AD/DA CONVERTER EE301 / UNIT 6/ 24
10. Referring to the circuit question 5.8 c, if given the Vref = 5 V, and Rf = R. Into account: -
a. number of steps c. Size measures
b. Vout, if the input is 100 d. full-scale voltage.
Answer DAC
1. Analog signal is a continuous signal with time. Digital signal is a signal that changes step by step
(discrete).
2. The transducer is a device that converts one form of energy into other forms of energy.
Exercise ADC
1. Analogue to digital converter function is to convert the signal to the signal ___________
______________.
5. Explain the difference between successive approximation converter and digital converter ramps.
7. What is the conversion of 15-bit ADC clock as the frequency is 2.4 MHz: -
a. successive approximation converter.
b. converter digital ramp.
AD/DA CONVERTER EE301 / UNIT 6/ 26
Answer ADC
1. Analog, digital
2 . Figure 7.5
3. Figure 7.6 except the count 6-bit or 64 mode and 6-bit DAC.
a. Refer to pages 16 (ADC-Operation of Digital Ramp)
b. I. 0000112 ii. 3 s iii. 63 s
5.
SAC DRC
a) The fixed conversion Time conversion follow Va
b) Tcmak = n bit X 1 cycle, Tcmak = total step X 1 cycle
the faster clock, more high Va value, the
longer conversion
c) circuit using the registry using the counter circuit
6.
7. a. 6.25 s b. 13.65 ms