Chapter 10
Chapter 10
C . ~ 'H
.' ' o • • ."
.
A"
~ •
:"'E
.• ' ': ':':I" R"'>"
•
. ...
• •
..
•
"i
OATA CONVERSION/
·ACQUISITION
''-----' All of the preced~g ch~pters have dealt with digital circuitry 10.0 INTRODUCTION
and it's applicatiDns. In this chap~er YDU will study methDds fDr
cDnverting between analog and digital signals. These techr\iques
are impDrtant since many.of the quantities measured and
manipulated are analog quanti,ties.
Upon cDmpletion .of this c:hapter yD.U should be able to: 10.1 OBJECTIVES
converter.
CDnverter.
circuits.
20
.... . ' .~. ?~,;" '~'~ : . .', :·~,· ~~.~·t~ · ;,'
~"'\.I~~;J'.\oi"lII ThE! ; f9~ of t~' :. (;'1;lflPter will be data conversion. Data may be
', ,'
'. , . '. encotmtered in ' either analog or digital fonn. Devices which
< ,.
. ~ ;J.~.
' : ~: ~··.1'~1
:.1,4! ..
10.2.0 D/A You will study digital to analog conversion first since the
Conversion circuitry for this conversion is simpler than the circuits used for
AID convetsion~ A variety of methods of impletpe"nti;n,g ' D I A
converters have been devised. Many of these methods share
"
some common circuit elements. Figure 10-1 shows the general
block diagram for all D I A converters.
~---------~
FIGURE 10-1. Basic D/A
I Storage Register I
Converter Block Diagram.
l-r-,. _,..~ ~...,...a
• I I I I I I
..- Digital
Inputs
.... ,
Amp
Divider Network
, ~>-+
Analog
Out
2R 2R 2R 2R
Notice that this circuit can. ,be fabricated to any size with
only two sizes of resistors. An equivalent, divider network is
easily determined for the binary , ladder. Assumeili.at all
switches exce,pt for the MSa aregro~ded. When this set of
conditions ,e~ts, the value pf the resistance betw,e en , any ,node
(except the MSB node) and grQund is R. The MSB node, which
is the circuit output, has a resistance of 2R to ground and to the
supplyvolta,g e. TIus means that the output is at a voltage level
of V/2. For a sixteen volt supply this translates to 8V. , Other
input combinations are more complex to analyze. When the
input is aA, all switches"are grounded except for the 4 switch.
This situation is shown in Figure 10-4.
208
1.2R 1.2 FIGURE 10-4. Ladder
VC= - - xV=--V Analysis for A4.
3.2 R 3.2
2R 1.2 1
VA= - x = - V=-V
3R 3.2 4
v v 1.2
VC=--V
3.2
2R
2R R
C R
2RX3R
2R Rc= =1.2R 2R
2R
2R+3R
-. -.
To calculate the output voltage, the voltage at the 4 node
must be calculated first. The resistance to ground is 2R going
through the lesser order switches and 3R going through the
higher order s~tch. The resistance to the power supply is 2R
through the 4 switch. The voltage at the 4 node is: 1.2R/ (1.2R +
2R) x V or 1.2/3.2 x V. The output is 2/3 of the voltage of the 4
node so: 1.2/3.2 x V x 2/3 = 2.4/9.6 x V = V/ 4. For a sixteen volt
supply this means a 4V output. Considering the result obtained
when only the MSB was selected this should not be surprising.
Notice that the sixteen volt value was chosen so that the output
is one volt per count.
Voltage
1k
1k
1k
1k 8
4 Binary
Digital
1k 2 Outputs
1k
1k
1k
..
Analog
Input 0----\
Voltage
211
10.2.4 Successive Successive ~pproximation AID converters are the most
Approximation AID .commonly encountered type of sequential AID circuit. In .the "
past, ramP type converters which would generate a digital ramp
input into a comparator whose ot~er input .is the voltage to be
converteq were widely used. . These devices have been replaced
by successive . approximation . devices since successive
approximation is . a faster technique. In fact successive
approximation ~onverters are ab9ut 100 tim~ faster than ramp
type converters.
The conversion time required for a successive
approximation converter to convert an input to digital .is
constant regardless of the level of the input voltage. A
successive approximation converter requires the circuits shown
in Figure 10-6.
Control
-
- Input
Analog Digital-to-
Analog
J. Analog
Output
Converter
AID . CDnverters . are .the primary cDm~nent ; ~ed fDr 10.2.5 Data
acquiring data Dr data acquisitiDn. Data is often.: .acquired from Acquisition
analDg sources. This .data is processed either immediately,by a
digital cDmputer Dr stDred fDr prDcessing later. FDr example; data
frDm a temperature sensDr could be cDnverted to digital, and
cDmparedto some value. If ·the temperature were· out Df range
the cDmputer could activate a fan to IDwer the temperature Dr
turn Dn a : heater ! to' . increase the .· temperature~ This SDrt ·,of
techniques is emplDyedin digitalthermDstats.
NDt all data acquired' is prDcessed immediately. Data
frDm sensDrs in an oil field can be cDnverted to digital, stDredDn
a tape " then transpDrted to' a · large cDmputing . facility fDr
prDcessing later. While the AID CDnverter is the primary data
acquisitiDn circuit, Dther circuits are emplDY~ fDr data
acquisitiDn such as ' sample 'and . hDld circuits and analog
multiplexers. :
A sample and . ~Dld circuit perfDrms the functiDns which 10.2~6Sample and
it's name in1plies. These devices sample an analDg input ·and Hold Circuits
hDld the value. this type D~ device is frequently usea in data
acquisitiDn to' hDld the analog data until the AID converter is
able to' CDnvert the data to. digital fDrm. Figure 10-7 ShDWS the
circuitry needed fDr a sampl~;and hDld circuit,
S o _ W••• 'orm FIGURE 10-7. Sample
Wrtn HolO
ClI'adIat and Hold Circuit.
IS""""C_,
'I 1
Samole
ClOCk
213
This circuit consists of an input amplifier, a digital switch,
a capacitor for storing the voltage to be held, and a high input
impedance amplifier for the output. Both the input and output
amplifiers are voltage followers.
The circuit function is straight forward. When the switch
is closed the input amplifier quickly charges the capacitor to the
level of the analog input. This is the sample mode. At the end
of the sample period, the switch is opened and the device is in
the hold mode.
The output amplifier will be capable of providing a
voltage equal to that stored on the capacitor. This type of device
can be constructed quite easily from CMOS switches and FET
amplifiers. The device will show some voltage sag from the
ideal input voltage since the capacitor will exhibit some leakage.
This type of circuit is used to improve the stability of the AID
conversion process for rapidly changing signal inputs and to
hold the data in systems where the AID serve many multiplexed
analog inputs.
Digital multiplexing was discussed earlier. Analog
10.2.7 Multiplexing multiplexing is the same basically except that the range of output
voltage is greater for analog signals hence simple gates cannot "
perform the multiplexing function. An analog multiplexer is
really a multi-position rotary switch. This type of device can
route any of several inputs to a single output. An example of
such a switch is shown in Figure 10-8.
1
6'
This same type of switch can be easily implemented with
CMOS devices. CMOS is chosen for this application since
switches with a very low 'on' resistance can be constructed in
CMOS. Multiplexing will allow one AID converter to service
several analog inputs.
The combination of the AID with a multiplexer and
sample and hold forms a modern data acquisition system. A
block diagram for a typical data acquiSition system is shown in ""--'
Figure 10-9.
214
FIGURE 10-9_ Typical Data
Acquisition Systems.
Inpul , _-+---1
Inpul4 _+-~
Innlbtt
Inpul
InpulS
I
:~
Sample-and
HOIC
A,
Amollhers
AO
O1.Itputs
('
:~
~
i BO
g
I B,
C3
4-Bo
4-Cnannel
D'gnal
Muttlple.. er
03
02
0, DAC
VOUI
Analog
ci5 C2 00 Ou1pulS
.. C1
Co
D3
D2
D,
DO
A
Cnannelo---\ _ _ _- - - - - - - - - '
Select
InpulS
B
In this chapter you have learned about data conversion and data 10.3 SUMMARY
acquisition circuits. You studied DACs, . their implementation
and the specifications effecting their performance. You studied
two types of AID converters and highlighted their differences.
You have learned about the sample and hold circuit and it's
application in data acquisition. You studied analog multiplexers
215
and their application for allowing one AID to serve several
analog inputs.
10.4 REVIEW 1. Name the three general areas dfDAC specification that are
QUESTIONS the most important in determining device performance.
216
7. What part of a sample and hold circuit perfonns the hold
'- function?
In this lab exercise you will learn about D / A converters. You LAB EXERCISE 10.1
will study the DAC 0808 digital to analog converter IC You will Of A Converters
use this IC to form a simple D / A converter. Objectives
20 Kohm Potentiometer
Jumper Wires
Procedure 1. Place the DAC 0808 and the . LF 353 onto the LD-2
breadboard.
6
1>02. .12 V -12 V
7
. ~ AJ D
A
Digital -5 " 8
A4 C
Inputs 9 0
54 AS
~ Output
10 A6 0 4
55 111
8
, 1.1 1>.7
'S6
.' . .... -.,
12
~ A8
L5e" 0 ,1 "
4.7 h,Q