Chapter 8
Chapter 8
Chapter 8
1
Lecture Outlines
2
Overview: Interfacing With the Analog World
Most physical variables are analog, and can take on any value
within a continuous range of values.
For instance, time, speed, weight, pressure, light, intensity, and
position measurements are all analog in nature.
A transducer converts the physical variable to an electrical
variable.
Thermistors, photo-cells, photodiodes, flow meters, pressure
transducers, tachometers, etc.
7
D/A Conversion (DAC)
Suppose we want to convert the binary from the processing unit to
a 0-V to 3-V output.
First set up a truth table of all the possible situations.
Table 1 shows four inputs (D, C, B, A) into the D/A converter.
8
D/A Conversion (DAC)
Figure illustrates a block diagram of a D/A converter.
The digital inputs (D, C, B, A) are at the left.
The decoder consists of two sections: the resistor network and the
summing amplifier.
The output is shown as a voltage reading on the voltmeter at the
right.
9
D/A Conversion (DAC)
10
D/A Conversion (DAC)
The summing amplifier takes the output voltage from the resistor
network and amplifies it the proper amount to get the voltages
shown in the right most column of Table 1.
The summing amplifier typically uses an IC unit called operational
amplifier.
An operational amplifier is often called op amp (scaling amplifier).
11
Operational Amplifiers
12
Operational Amplifiers
13
The Practical Operational Amplifiers
14
The Ideal Operational Amplifiers
15
A Basic D/A Converter (Binary Weighted DAC)
The D/A converter is made in two sections; resistor network and summing
amplifier.
The resistor network is made up of resistors R1, R2, R3 and R4.
The summing amplifier consists of an op amp and a feedback resistor.
The input (Vin) is 3 V applied to switches D, C, B, and A. The output
voltage (Vo) is measured on a voltmeter.
Notice that the op amp requires a dual power supply: a +10 V and –10 V.
16
A Basic D/A Converter
With all switches at GND (0 V), the input voltage at point A is 0 V and the output
voltage is 0 V. This corresponds to row 1 in Table 1.
Suppose we move switch A to the logical 1 position, the input voltage 3 V is applied
to the op amp.
We next calculate the gain of the amplifier.
The gain is dependent upon the feedback resistor (Rf), (which is 10 kΩ), and the
input resistor (Rin), which is R1 (150 kΩ). Using the gain formula:
17
A Basic D/A Converter
To calculate the output voltage, we multiply the gain by the input
voltage:
The output voltage is 0.2 V when the input is binary 0001. This
satisfies the requirements of row 2, Table 1.
18
A Basic D/A Converter
Let us now apply binary 0010 to the D/A converter . Only switch B is
moved to the logical 1 position, applying 3 V to the op amp. The gain is:
Multiplying the gain by the input voltage gives us 0.4 V. The 0.4 V is the
output voltage. This satisfies row 3, in Table 1.
19
A Basic D/A Converter
Notice that for each binary count in Table 1, the output voltage of the
D/A converter increases by 0.2 V.
This increase occurs because of the increased voltage of the op amp as
we switch in different resistors (R1, R2, R3, R4).
When all switches are activated (at logical 1), the op amp puts out the full
3 V because the gain of the amplifier has increased to 1.
20
Ladder-Type D/A Converter
This resistor network is sometimes called the 2-2R ladder network.
The advantage of this arrangement is that only two values of resistors are
used.
Resistors R1, R2, R3, R4, and R5 are 20 kΩ each.
Resistors R6, R7, R8, and Rf are each 20 kΩ.
Notice that all the horizontal resistors on the “ladder” are exactly twice the
value of the vertical resistors, hence it apply to the title “R-2R ladder
network”.
21
Ladder-Type D/A Converter
The summing amplifier used is the same one used in the last
section. Again notice that the use of the dual power supply on the
op amp.
The operation of this D/A converter is similar to the basic one in the
last section.
Table 2 shows the detail operation of this D/A converter.
Notice that we are using an input voltage of 3.75 V on this
converter.
Each binary count increases the analog output by 0.25 V.
Remember that each 0 on the input side of the table means 0 V
applied to that input. Each 1 on the input side of the table means
3.75 V applied to that input.
The input voltage of 3.75 V is used because this is very close to the
output of TTL counters and other ICs you may have used.
22
Ladder-Type D/A Converter
23
An A/D Converter
An analog-to-digital converter (ADC)is a special type of encoder.
The input is a single variable voltage. The voltage in this case varies
from 0 to 3 V.
The output of the A/D converter is in binary.
The A/D converter translates the analog voltage at the input into a
4-bit binary word.
24
An A/D Converter
The truth table in Table 3 shows how the A/D converter should work.
Notice that each increase of 0.2 V increases the binary count by 1. Finally, row 16
shows that when the maximum 3 V is applied to the input, the output reads binary
1111. Notice that the truth Table 3 is just the reverse of the D/A converter.
25
An A/D Converter
The truth table for the A/D converter looks quite simple.
The electronic circuits that perform this task detailed in the truth table are
somewhat more complicated.
One type of A/D converter is diagrammed below.
The A/D converter contains a voltage comparator, an AND gate, a binary counter,
and a D/A converter.
26
An A/D Converter
The analog voltage is applied at the left.
The comparator checks the voltage coming from the D/A converter.
If the analog input voltage at A is greater than the voltage at the input B, the clock
is allowed to increase the count of the 4-bit counter.
The count on the counter increases until the feedback voltage from the D/A
converter becomes greater than the analog input voltage. At this point the
comparator stops the counter from advancing to a higher count.
Suppose the input analog voltage is 2 V. According to Table 3, the binary counter
increases to 1010 before it is stopped. The counter is reset to binary 0000, and the
counter starts counting again.
27
An A/D Converter: How it works?
28
An A/D Converter: How it works?
29
An A/D Converter: How it works?
For instance:
If the input analog voltage were 1.2 V, the binary output would
be 0110. The counter would have to count from binary 0000 to
0110 before being stopped by the comparator.
If the input analog voltage were 2.8 V, the binary output would
be 1110. The counter would have to count from binary 0000 up
to 1110 before being stopped by the comparator.
Notice that, it does take some time for the conversion of the
analog voltage to a binary readout. However, in most cases the
clock runs fast enough so that this time lag is no problem.
30
Voltage Comparator
31
Voltage Comparator
32
An Elementary Digital Voltmeter
One use for an A/D converter is in a digital voltmeter. We already used all
the subsystems needed to make an elementary digital voltmeter system.
The A/D converter converts the analog voltage to binary form. The binary
is sent to the decoder, where it is converted to a seven-segment code.
The seven-segment readout indicates the voltage in decimal numbers.
With 7 V applied to the input of the A/D converter, the unit puts out binary
0111, as shown.
The decoder activates lines a to c of the seven-segment display
(segments a to c light on the display). The display reads as a decimal 7.
Note that the A/D converter is also encoder; it encodes from an analog
input to a binary output.
33
An Elementary Digital Voltmeter
34
An Elementary Digital Voltmeter
35
Specifications of D/A Conversion
36
Specifications of D/A Conversion
37
Specifications of D/A Conversion
38
Specifications of D/A Conversion
39
Specifications of D/A Conversion