Lecture 5 PDF
Lecture 5 PDF
EEE 4483
Digital Electronics & Pulse Techniques
Lecture- 5
Analog-to-Digital Converters
Digital-to-Analog Converters
555 Timer Syllabus from the Book of Floyd
Section No. 7-6 (Page No. 404 - 409) (DjVu Page No. 418-424)
Exercise Problem 29, 30, 31 – (Page No. 420) (DjVu Page No. 435)
Data Converters: Basic Concepts
4.6
Digital to Analog Converters
n
bits
ANALOG A-D
MUX SIGNAL CONVERTER
PROCESSOR
ANALOG
MUX SIGNAL D-A
PROCESSOR CONVERTER
n
bits
“Real World” Sampled Data Systems Consist Of ADCs and DACs
Analog Digital
ADC
Channel DSP Memory
DAC
Amplitude
Analog
Digital
Value
time time
A theorem, developed by H. Nyquist, which states that an analog signal waveform may be uniquely reconstructed,
without error, from samples taken at equal time intervals. The sampling rate must be equal to, or greater than, twice
the highest frequency component in the analog signal.
A bandlimited signal can be reconstructed exactly if it is sampled at a rate atleast twice the maximum frequency
component in it.
Where,
𝑇𝑠 is the sampling time
𝑓𝑆 is the sampling frequency or the sampling rate
Sampling frequency is the reciprocal of the sampling period. This sampling frequency, can be simply called as
Sampling rate. The sampling rate denotes the number of samples taken per second, or for a finite set of values.
For an analog signal to be reconstructed from the digitized signal, the sampling rate should be highly considered.
The rate of sampling should be such that the data in the message signal should neither be lost nor it should get
over-lapped. Hence, a rate was fixed for this, called as Nyquist rate.
Aliasing
Aliasing occurs when a system is measured at an insufficient sampling rate.
An aliased signal provides a poor representation of the analog signal. Aliasing causes a
false lower frequency component to appear in the sampled data of a signal. The
following figure shows an adequately sampled signal and an undersampled signal.
Let n = 2
Vmax 3=11
M = 2n – 1 r
M = 2n 2=10
xq(t)
t
Ts
t t
Ts
Comparators
𝑅2
𝑉𝑟𝑒𝑓 = 𝑉𝑖𝑛 𝑚𝑎𝑥 × = 1.63 𝑉
𝑅1 + 𝑅2
Positive Voltage Comparators :
Continued ..
Likewise the reverse is true, when VIN is greater than VREF, the
op-amp comparators output will change state and saturate
towards the negative supply rail, 0V.
PCM
Pulse code modulation (PCM) is a digital representation of an analog signal that takes samples of
the amplitude of the analog signal at regular intervals. The sampled analog data is changed to,
and then represented by, binary data. PCM requires a very accurate clock. The number of
samples per second, ranging from 8,000 to 192,000, is usually several times the maximum
frequency of the analog waveform in Hertz (Hz), or cycles per second, which ranges from 8 to 192
KHz.
4.23
Components of PCM Encoder
4.24
PCM Sampling Methods
= (max - min)/L
4.30
Quantization Levels
4.31
Quantization Zones
4.32
Assigning Codes to Zones
4.33
Quantization and Encoding of a sampled signal
A/D Examples
• Example 1
• Assumes the input analog voltage is changing between 0-5 V.
• Using a 3-bit A/D converter draw the output as the input signal ramps from 0 to 5 V.
• Calculate the resolution.
• What is the maximum possible voltage out? (this is called the full-scale output)
• If the output is 10000000, what is the input?
• Example 2
• Assumes the input analog voltage is changing between -5 to 5 V; using a 10-bit A/D
converter.
• Calculate the number of quantization levels.
• Calculate the voltage resolution.
A/D Examples : Continued ..
• Example 1
• Assumes the input analog voltage is changing between 0-5 V.
• Using a 3-bit A/D converter draw the output as the input signal ramps from 0 to 5V.
• Calculate the resolution. 5- Resolution
• What is the maximum possible voltage out? (this is called the full-scale output) 1 / 2^8 =
19.53 mV
• If the output is 1000 0000, what is the input? MaxVolt / 2 = 2.5
• Example 2
• Assumes the input analog voltage is changing between -5 to 5 V; using a 10-bit A/D converter.
• Calculate the number of quantization levels. 2^10
• Calculate the voltage resolution. 5-(-5)/1024 = 9.76 mV
Quantization Error
4.37
Quantization Error: Continued..
Quantization error is the difference between the analog signal and the closest available digital
value at each sampling instant from the A/D converter. Quantization error also introduces noise,
called quantization noise, to the sample signal. The higher the resolution of the A/D converter,
the lower the quantization error and the smaller the quantization noise. The relationship
between resolution (in bits) and quantization noise for an ideal A/D converter can be expressed
as Signal to Noise (S/N)= -20*log (1/2^n) where n is the resolution of the A/D converter
in bits. S/N is the signal to noise and is expressed in dB. This relationship can also be
approximated as S/N = 6*n. Typical S/N ratios for ideal A/D converters are 96dB for 16 bits,
72dB for 12 bits, and 48dB for 8 bits.
Quantization Error: Continued..
ADC Types
Can be classified in several groups:
• Flash ADC
• Sigma-delta ADC
• Dual slope converter
• Successive approximation converter
We will study Flash ADC and Successive Approximation converter!!
Flash:
• uses multiple comparators in parallel.
• The known signal is connected to one side of the comparator and the analog signal to be converted to the other side of the
comparator.
• The output of the comparators provides the digital value.
• This is a high-speed, high cost converter.
Successive Approximation converter: Includes a D/A (digital to analog) converter and a comparator. An internal analog signal is
generated by turning on successive bits in the D/A converter.
The SAR ADC does the following things for each sample:
• Flash Converter
• The circuit consists of 4 comparators
whose inverting inputs are connected to a
voltage divider.
• A comparator is basically an operational
amplifier used without feedback.
• The outputs of the comparators
correspond to a digital word.
• When the input rises above Vn1 , the first
comparator will switch to a high output
voltage causing the LED to light up,
indicating a (0001).
• For larger input voltages the output of
other comparators will switch high as well.
For large input voltages (above Vn3) all
comparators will be high corresponding to
(1111) digital output.
3-bit Flash ADC
Flash ADC : continued ..
Advantages Disadvantages
• Very fast • Needs many parts
(255 comparators for
8-bit ADC)
• Lower resolution
• Expensive
• Large power
consumption
A/D Conversion: Successive Approximation
Successive Approximation type ADC is the most widely used and popular ADC method. The conversion
time is maintained constant in successive approximation type ADC, and is proportional to the number
of bits in the digital output, unlike the counter and continuous type A/D converters. The basic
principle of this type of A/D converter is that the unknown analog input voltage is approximated
against an n-bit digital value by trying one bit at a time, beginning with the MSB. The principle of
successive approximation process for a 4-bit conversion. This type of ADC operates by successively
dividing the voltage range by half.
Watch on:
A/D Conversion: Successive Approximation
Chapter – 13 (Page No. 744 - 757) (DjVu Page No. starting 759)
Summing amplifier
• R/2R Ladder Network for D/A Converter
Binary Weighted DAC : continued..
• Output voltage
VREF VREF VREF VREF 1 1 1
I o = I T = I1 + I 2 + I 3 = + + = + + = 0.875 mA
R1 R2 R3 1k 2 4 8
(ii) Another is that the circuit can require very accurate resistors, as the
DAC would require that the error in each resistor be less than the
smallest resistor value. This type requires large range of resistors with
necessary high precision for low resistors. For an N-bit DAC, this means
an error of less than 1 part in 2N for the largest resistor, 1 part in 2N-1 for
the next largest, and so on.
Suppose we have to design 8-bit weighted register D/A converter then we need the resistance value
20R+21R+….+27R. So the largest resistor corresponding to bit b8 is 128 times the value of the smallest
resistor correspond to b1. But in case of R/2R ladder D/A converter, Resistors of only two value (R and
2R) are used.
The R-2R Ladder Network : continuing from previous slide
Advantages:
• Only two resistor values are used in R-2R ladder type.
• It does not need as precision resistors as Binary weighted DACs.
• It is cheap and easy to manufacture.
Disadvantages:
• It has slower conversion rate.