Professional Documents
Culture Documents
The more samples you take, the more accurately you can define a waveform.
Sampling converts an analog signal into a series of impulses, each representing the
amplitude of the signal at a given instant in time.
The sampling theorem states that, in order to represent an analog signal, the sampling
frequency, fs, must be at least twice the highest frequency component fmax of the
analog signal.
fs > 2fmax
The frequency fs is known as the Nyquist frequency.
The Need for Filtering
An alias signal has a frequency that is less than the highest frequency in the analog
signal being sampled and therefore falls within the spectrum or frequency band of the
input analog signal causing distortion.
A low-pass anti-aliasing filter must be used to limit the frequency spectrum of the
analog signal for a given sample frequency. To avoid an aliasing error, the filter must at
least eliminate all analog frequencies above the minimum frequency in the sampling
spectrum.
fs < 2fmax
fs = 2fmax
Ex. Let’s quantize a reproduction of the analog waveform into four levels
(0–3). Two bits are required for four levels. Each quantization level is
represented by a 2-bit code on the vertical axis, and each sample interval is
numbered along the horizontal axis. The sampled data is held for the entire
sample period. This data is quantized to the next lower level, as illustrated
in the table.
Sample-and-hold output waveform with four quantization levels.
Sixteen quantization
levels
Two-bit quantizer and encoder Four-bit quantizer and encoder
Two important ADC parameters are –
Throughput: Is the sampling rate an ADC can handle in units of samples per second
(sps).
Methods of Analog-to-Digital Conversion
Figure shows a 3-bit converter that uses seven comparator circuits; a comparator is
not needed for the all-0s condition.
The reference voltage for each comparator is set by the resistive voltage-divider
circuit. The output of each comparator is connected to an input of the priority
encoder. The encoder is enabled by a pulse on the EN input, and a 3-bit code
representing the value of the input appears on the encoder’s outputs. The binary code
is determined by the highest-order input having a HIGH level.
An Op-amp as a comparator
Figure: A 3 bit Flash ADC
2. Successive-Approximation Analog-to-Digital Converter
One of the most widely used methods of analog-to-digital conversion is successive
approximation.
It has a much faster conversion time than the dual-slope conversion, but it is slower
than the flash method. It also has a fixed conversion time that is the same for
any value of the analog input.
Figure below shows a basic block diagram of a 4-bit successive approximation ADC.
It consists of a DAC, a successive-approximation register (SAR), and a comparator.
The basic operation is as follows: The input bits of the DAC are enabled (made equal
to a 1) one at a time, starting with the most significant bit (MSB). As each bit is
enabled, the comparator produces an output that indicates whether the input signal
voltage is greater or less than the output of the DAC. If the DAC output is greater
than the input signal, the comparator’s output is LOW, causing the bit in the register
to reset. If the output voltage of DAC is less than the input signal, comparatoe
output if HIGH and the 1 bit is retained in the register. The system does this with the
MSB first, then the next most significant bit, then the next, and so on. After all the
bits of the DAC have been tried, the conversion cycle is complete.
Ex. Step-by-step conversion of a constant input voltage (5.1 V in this case).