Data Converters and PLDs
Data Converters and PLDs
• Advantages
– Simple construction
– Fast conversion
• Disadvantages
• Expensive
• Requires large range of resistances
• Difficult to maintain accurate ratios over wide range of
resistor values
• Accuracy of DAC depends upon accuracy of resistors
Binary weighted resistance DAC
continued
• Calculate analog output voltage for 5 bit weighted resistor
DAC for inputs
1. 10110
2. 10001
Assume Vref = 10 V
For 5 bit weighted resistor DAC
Vout = Vref (b4/2+b3/4+b2/8+b1/16+b0/32)
1. Vout = 10(1/2+0+1/8+1/16+0)
= 6.875 V
2. Vout = 10(1/2+0+0+0+1/32)
= 5.3125 V
R - 2R ladder network DAC
• Disadvantages
• Lower conversion speed than binary weighted resistor
DAC
• Complicated circuit
R - 2R ladder network DAC continued
• A D to A converter has full scale analog output of 10v &
accepts 4 binary bits as input. Find the voltage corresponding
to each analog step
full scale analog output = 10v
full scale output corresponds to b3b2b1b0 = (1111)2
Vout = Vref (b3/2 + b2/4 + b1/8 + b0/16 )
10 = Vref (1/2+1/4+1/8+1/16)
10 = 0.9375 Vref
Vref = 10.666 v
Each analog step corresponds to increment in LSB by 1
Vout = 10.666(0+0+0+1/16) = 0.66619v
R - 2R ladder network DAC continued
V0 0v V8 5.328v
V1 0.666v V9 5.994v
V2 1.333v V10 6.667v
V3 1.998v V11 7.326v
V4 2.664v V12 7.992v
V5 3.33v V13 8.658v
V6 3.996v V14 9.324v
V7 4.662v V15 10v
DAC specifications
Important characteristics of DAC
•Resolution : it is defined as smallest possible change in analog output
voltage due to unit change in digital input
•High resolution is desirable
•It depends upon number of bits in digital input. Higher the number of
bits, higher is the resolution e.g. 8 bit DAC has 8 bit resolution
•Accuracy : it indicates closeness with which analog output reaches
actual output/its theoretical value
•Accuracy depends upon accuracy of resistors & precision of reference
voltage
•It is specified in terms of %error
•e. g. Maximum output voltage = 10v, accuracy = + 0.2%
maximum error or any output = 0.002 * 10 = 20mv
DAC specifications continued
• Linearity : there should be linear relationship between digital input &
analog output
• Linearity is defined as difference between desired analog output &
actual output over full range of expected values
• It should be less than +1/2 LSB
• Settling time : when digital input to DAC is changed, analog output
does not change abruptly. Because of presence of switches, stray
capacitance, inductance etc. transients/oscillations may appear in
output voltage
• Settling time is defined as time required for output signal to settle
down to expected value after change in digital input
• Speed : it is rate of conversion of single digital input to its analog
equivalent
• Conversion rate depends on clock, speed of input & settling time of
converter. For rapidly changing inputs conversion speed must be high
DAC IC 0808
• It is programmable buffer
• It can be set for inverting or non inverting operation
corresponding to active low or active high output respectively
• EX-OR gate or NOT gate can be used for this operation
• In case of EX-OR gate if fuse is intact, output is S, if fuse is
blown output is S’
• Similarly for NOT gate output S or S’ depending upon
whether fuse is intact or open
Flipflops/output buffers
PLA PAL