SlideShare a Scribd company logo
1 of 20
Download to read offline
Module
                3
Embedded Systems I/O
            Version 2 EE IIT, Kharagpur 1
Lesson
               18
AD and DA Converters
            Version 2 EE IIT, Kharagpur 2
Instructional Objectives
After going through this lesson the student would be able to

     •   Learn about Real Time Signal Processing
     •   Sampling Theorem
     •   DA Conversion
     •   Different Methods of AD Conversions
            o Successive Approximation
            o Flash
            o Sigma Delta

Pre-Requisite
Digital Electronics, Microprocessors

18       Introduction
    The real time embedded controller is expected to process the real world signals within a
specified time. Most of the real world signals are analog in nature. Take the examples of your
mobile phone. The overall architecture is shown on Fig.18.1. The Digital Signal Processor (DSP)
is fed with the analog data from the microphone. It also receives the digital signals after
demodulation from the RF receiver and generates the filtered and noise free analog signal
through the speaker. All the processing is done in real time.
    The processing of signals in real time is termed as Real Time Signal Processing which has
been coined beautifully in the Signal Processing industry.




                            RF receiver (Rx)
                                                                              Speaker
                                                               DSP
          Antenna
                            RF transmitter (Tx)                               Microphone

                                                                              Display
                                                             Micro-
                                                            controller
                                                                              Keyboard


                               Fig. 18.1 The block diagram

The detailed steps of such a processing task is outlined in Fig.18.2

                                                                  Version 2 EE IIT, Kharagpur 3
Signal Processing
                                                                         Analog Processing
                              Analog Processing

             Measurand      Sensor         Conditioner      Analog Processor        ADC
                                                                 LPF




             Digital Processing

                                           Analog Processor
                 DSP         DAC
                                                LPF

                            Fig. 18.2 Real Time Processing of Analog Signals
Measurand is the quantity which is measured. In this case it is the analog speech signal. The
sensor is a microphone. In case of your mobile set it is the microphone which is embedded in it.
The conditioner can be a preamplifier or a demodulator. The Analog Processor mostly is a Low
Pass Filter (LPF). This is primarily used to prevent aliasing which is a term to be explained later
in this chapter. The following is the Analog to Digital Converter which has a number of stages to
convert an analog signal into digital form. The Digital Signal Processing is carried out by a
system with a processor. Further the processed signal is converted into analog signal by the
Digital to Analog Converter which finally sends the output to the real world through another
Low Pass Filter.

The functional layout of the ADC and DAC is depicted in Fig.18.3

                                                 ADC
                                   xs(t)                         xq(t)                b bits
      x(t)         Sampler                     Quantizer                    Coder
                                   x(t)                         xq(n)                  [xb(n)]
                    p(t)

                                                 DAC
                   b bits
                             Decoder                     Sample/hold
                  [yb(n)]                                                    y(n)

                       Fig. 18.3 The functional layout of the ADC and DAC




                                                                   Version 2 EE IIT, Kharagpur 4
The DA Converter
In theory, the simplest method for digital-to-analog conversion is to pull the samples from
memory and convert them into an impulse train.

                             3
                                      a. Impulse train
                             2

                             1
                 Amplitude




                             0

                             -1

                             -2

                             -3
                                  0        1             2          3      4            5
                                                             Time
                                  Fig. 18.4(a) The analog equivalent of digital words


                             3

                                      c. Zeroth-order hold
                             2

                             1
                 Amplitude




                             0

                             -1

                             -2

                             -3
                                  0        1             2       3          4         5
                                                         Time
                                  Fig. 18.4(b) The analog voltage after zero-order hold




                                                                         Version 2 EE IIT, Kharagpur 5
3
                                      f. Reconstructed analog signal
                             2

                             1
                 Amplitude
                             0

                             -1

                             -2

                             -3
                                  0        1         2          3         4          5
                                                        Time
                              Fig. 18.4(c) The reconstructed analog signal after filtering

        A digital word (8-bits or 16-bits) can be converted to its analog equivalent by weighted
averaging. Fig. 18.5(a) shows the weighted averaging method for a 3-bit converter.
        A switch connects an input either to a common voltage V or to a common ground. Only
switches currently connected to the voltage source contribute current to the non-inverting input
summing node. The output voltage is given by the expression drawn below the circuit diagram;
SX = 1 if switch X connects to V, SX = 0 if it connects to ground. There are eight possible
combinations of connections for the three switches, and these are indicated in the columns of the
table to the right of the diagram. Each combination is associated with a decimal integer as
shown. The inputs are weighted in a 4:2:1 relationship, so that the sequence of values for 4S3 +
2S2 + S1 form a binary-coded decimal number representation. The magnitude of Vo varies in
units (steps) of (Rf/4R)V from 0 to 7. This circuit provides a simplified Digital to Analog
Converter (DAC). The digital input controls the switches, and the amplifier provides the analog
output.




                                                                        Version 2 EE IIT, Kharagpur 6
V                                                      S3        S2        S1
                                    R                            0      0         0         0
                             S3
                                              Rf                 1      0         0         1
                                   2R
                             S2                                  2      0         1         0
                                              -
                                              +                  3      0         1         1
                                   4R                   V0
                             S1                                  4      1         0         0
                                                                 5      1         0         1

                         (
               V0 = -R f S3 V + S2 V + S1 V
                            R      2R      4R      )     6       1     1                    0

                    -R                                   7       1    1                     1
                  = f V(4S3 + 2S2 + S1)
                     4R
                         Fig. 18.5(a) The binary weighted register method


                             V                                               Rf
                                     S3
                                                   2R        2R
                                                                            -
                                    S2                                      +          V0
                                                   2R        R


                                                                         V 1
                                     S1
                                                   2R        R 1(S3) = 3R 2 S3
                                                                1(S2) = V 1 S2
                                                                        3R 4
                                                             2R
                                                                1(S1) = V 1 S1
                                                                        3R 8

                     (
           V0 = -R f S3 V 1 + S2 V 1 + S1 V 1
                       3R 2      3R 4    3R 8           )
              = - R f V (4S3 + 2S2 + S1)
                     24R
                                  Fig. 18.5(b) R-2R ladder D-A conversion circuit
Fig. 18.5(b) depicts the R-2R ladder network. The disadvantage of the binary weighted register is
the availability and manufacturing of exact values of the resistances. Here also the output is
proportional to the binary-coded decimal number.

       The output of the above circuits as given in Fig. 18.5(a) and 18.5(b) is equivalent analog
values as shown in Fig. 18.4(a). However to reconstruct the original signal this is further passed
through a zero order hold (ZOH) circuit followed by a filter (Fig.18.2). The reconstructed
waveforms are shown in Fig. 18.4(b) and 18.4(c).
                                                                     Version 2 EE IIT, Kharagpur 7
The AD Converter
The ADC consists of a sampler, quantizer and a coder. Each of them is explained below.

Sampler
The sampler in the simplest form is a semiconductor switch as shown below. It is followed by a
hold circuit which a capacitor with a very low leakage path.

                                      Semiconductor
                                         Switch
        Analog signal                                                        Sampled signal

                                                               Capacitor


                                      Control signal

                             1

                            0.8

                            0.6

                            0.4

                            0.2
                             0
                                  0    0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

                            Fig. 18.6 The Sample and Hold Circuit




                                                                    Version 2 EE IIT, Kharagpur 8
Analog Signal
                          2
                     1.5
         Amplitude        1
                     0.5
                         0
                -0.5
                    0                                0.5       1      1.5     2       2.5      3              3.5   4
                                                                          time(ms)
                                                               Sampled Signal after the capacitor
                          2
                     1.5
         Amplitude




                          1
                     0.5
                         0
                -0.5
                    0                                0.5       1      1.5       2         2.5        3        3.5   4
                                                                            time(ms)
                                                               Fig. 18.7 Sample and Hold Signals
Quantizer
The hold circuit tries to maintain a constant voltage till the next switching. The quantizer is
responsible to convert this voltage to a binary number. The number of bits in a binary number
decides the approximation and accuracy.
The sample hand hold output can assume any real number in a given range. However because of
finite number of bits (say N) the levels possible in the digital domain 0 to 2N-1 which corresponds
to a voltage range of 0 to V volts

                                             3.025
                                                           b. Sampled analog signal
                                             3.020
                      Amplitude (in volts)




                                             3.015


                                             3.010


                                             3.005


                                             3.000
                                                      0    5    10   15     20    25 30    35   40       45   50
                                                                                 Time
                                                               Fig. 18.8(a) Hold Circuit Output
                                                                                                Version 2 EE IIT, Kharagpur 9
3025
                                           c. Digitized signal
                                3020

               Digital number   3015


                                3010

                                3005

                                3000
                                       0   5     10   15     20 25 30 35     40   45   50
                                                           Sample number
                                               Fig. 18.8(b) The Quantized Value

Coder
This is an optional device which is used after the conversion is complete. In microprocessor
based systems the Coder is responsible for packing several samples and transmitting them
onwards either in synchronous or in asynchronous manner. For example in TI DSK kits you will
find the AD converters with CODECs are interfaced to McBSP ports (short form of Multi-
channel Buffered Serial Ports). Several 16-bit sampled values are packed into a frame and
transmitted to the processor or to the memory by Direct Memory Access (DMA). The Coder is
responsible for controlling the ADC and transferring the Data quickly for processing. Sometimes
the Codec is responsible for compressing several samples together and transmitting them. In your
desktop computers you will find audio interfaces which can digitize and record your voice and
store them in .wav format. Basically this AD conversion followed by coding. The wav format is
the Pulse-Code-Modulated (PCM) format of the original digital voice samples.

The Sampling Theorem
The definition of proper sampling is quite simple. Suppose you sample a continuous signal in
some manner. If you can exactly reconstruct the analog signal from the samples, you must have
done the sampling properly. Even if the sampled data appears confusing or incomplete, the key
information has been captured if you can reverse the process. Fig.18.9 shows several sinusoids
before and after digitization. The continuous line represents the analog signal entering the ADC,
while the square markers are the digital signal leaving the ADC. In (a), the analog signal is a
constant DC value, a cosine wave of zero frequency. Since the analog signal is a series of
straight lines between each of the samples, all of the information needed to reconstruct the
analog signal is contained in the digital data. According to our definition, this is proper sampling.

The sine wave shown in (b) has a frequency of 0.09 of the sampling rate. This might represent,
for example, a 90cycle/second sine wave being sampled at1000 samples/second. Expressed in

                                                                             Version 2 EE IIT, Kharagpur 10
another way, there are 11.1 samples taken over each complete cycle of the sinusoid. This
situation is more complicated than the previous case, because the analog signal cannot be
reconstructed by simply drawing straight lines between the data points. Do these samples
properly represent the analog signal? The answer is yes, because no other sinusoid, or
combination of sinusoids, will produce this pattern of samples (within the reasonable constraints
listed below). These samples correspond to only one analog signal, and therefore the analog
signal can be exactly reconstructed. Again, an instance of proper sampling. In (c), the situation is
made more difficult by increasing the sine wave's frequency to 0.31 of the sampling rate. This
results in only 3.2 samples per sine wave cycle. Here the samples are so sparse that they don't
even appear to follow the general trend of the analog signal. Do these samples properly represent
the analog waveform? Again, the answer is yes, and for exactly the same reason. The samples
are a unique representation of the analog signal. All of the information needed to reconstruct the
continuous waveform is contained in the digital data. Obviously, it must be more sophisticated
than just drawing straight lines between the data points. As strange as it seems, this is proper
sampling according to our definition. In (d), the analog frequency is pushed even higher to 0.95
of the sampling rate, with a mere 1.05 samples per sine wave cycle. Do these samples properly
represent the data? No, they don't! The samples represent a different sine wave from the one
contained in the analog signal. In particular, the original sine wave of 0.95 frequency
misrepresents itself as a sine wave of 0.05 frequency in the digital signal. This phenomenon of
sinusoids changing frequency during sampling is called aliasing. Just as a criminal might take on
an assumed name or identity (an alias), the sinusoid assumes another frequency that is not its
own. Since the digital data is no longer uniquely related to a particular analog signal, an
unambiguous reconstruction is impossible. There is nothing in the sampled data to suggest that
the original analog signal had a frequency of 0.95 rather than 0.05. The sine wave has hidden its
true identity completely; the perfect crime has been committed! According to our definition, this
is an example of improper sampling. This line of reasoning leads to a milestone in DSP, the
sampling theorem. Frequently this is called the Shannon sampling theorem, or the Nyquist
Sampling theorem, after the authors of 1940s papers on the topic. The sampling theorem
indicates that a continuous signal can be properly sampled, only if it does not contain frequency
components above one-half of the sampling rate. For instance, a sampling rate of 2,000
samples/second requires the analog signal to be composed of frequencies below 1000
cycles/second. If frequencies above this limit are present in the signal, they will be aliased to
frequencies between 0 and 1000 cycles/second, combining with whatever information that was
legitimately there.




                                                                  Version 2 EE IIT, Kharagpur 11
3                                                              3
                        a. Analog frequency = 0.0 (i.e., DC)                           b. Analog frequency = 0.09 of sampling rate
                   2                                                              2

       Amplitude   1                                                              1




                                                                      Amplitude
                   0                                                              0

                   -1                                                             -1

               -2                                                             -2
               -3                                                             -3
                              Time (or sample number)                                        Time (or sample number)


                   3                                                              3
                        c. Analog frequency = 0.31 of sampling rate                    d. Analog frequency = 0.95 of sampling rate
                   2                                                              2

                   1                                                              1
       Amplitude




                                                                      Amplitude
                   0                                                              0

                   -1                                                             -1

               -2                                                             -2
               -3                                                             -3
                              Time (or sample number)                                        Time (or sample number)

                                      Fig. 18.9 Sampling a sine wave at different frequencies


Methods of AD Conversion
The analog voltage samples are converted to digital equivalent at the quantizer. There are various
ways to convert the analog values to the nearest finite length digital word. Some of these
methods are explained below.




                                                                                               Version 2 EE IIT, Kharagpur 12
Successive Approximation ADC
                           V0
                                R2
                                                  R1

             0   V1        V2                          V-
                                R3               4
                                            2 -                  1        V
                                                V-
            0    V2                                    OG1
                           V4                          OG2       6            DAC
                                                  V+
                                R4                                             V+
                                            3 +        7         5
                                            0 U1                     3             7     5 ADC
             0   V3                                 V+                    +
                      V+        V-            uA741                           V+
                                                                               OG2       6
                                                                               OG1
                      -    V4        - V7                            2 - V-              1
                                                                                               G
                                                                          4             U2
                      -              -            V8                                   uA741
                                                                                   0
                                     0                       0
                                     Fig. 18.10 The Counter Converter

The AD conversion is indirectly carried out through DA conversion. The 3-bit input as shown in
Fig.18.10 to the DA converter may change sequentially from 000 to 111 by a 3-bit counter. The
unknown voltage (V8) is applied to one input of the comparator. When the DA output exceeds
the unknown voltage the comparator output which was negative becomes positive. This can be
used to latch the counter value which is approximately equivalent digital value of the unknown
voltage.

The draw back of sequential counting is the time taken to reach the highest count is large. For
instance an 8-bit converter has to count 256 for converting the maximum input. It therefore has
to consume 256 clock cycles which is large. Therefore, a different method called successive
approximation is used for counting as shown in Fig.18.11.




                                                                         Version 2 EE IIT, Kharagpur 13
100



                                 110                                  010



                       111                  101            011                   001

                                                                      000

                         Fig. 18.11 The successive approximation counting
Consider a three-bit conversion for simplicity. The counting ADC must allow for up to eight
comparisons (including zero). The search tree for an SAR search is illustrated in Fig.18.11. To
start a conversion cycle a three-bit digital register is first cleared, and then loaded with the triplet
100. The register state provides the input to a DAC, and that provides a reference output. This
output is compared to the analog signal to be converted, and a decision is made whether the
analog signal is greater than or less than the reference signal. This comparison is essentially the
same as that made for the previous ADC, except that because of the use of the ‘half-way’ code
the result of this single comparison is used to eliminate concurrently half the possible DAC steps.
As the tree suggests, if the analog signal is greater then all the smaller DAC outputs are
eliminated from consideration. Digital logic associated with the comparison then either clears the
MSB (Most Significant Bit) to 0 or simply leaves it unchanged. In either case the next bit is set
to 1, i.e., to the mid-code of the selected half, and a new comparison made. Again half the
remaining DAC states are eliminated from consideration. Depending on the result of the
comparison the second bit is cleared to 0, or it is left unchanged at 1. In either case the third bit is
set to 1 and the comparison step repeated. Each time a comparison is made half the remaining
DAC output states will be eliminated. Instead of having to step through 2N states for an N bit
conversion only N comparisons are needed. The SAR ADC is perhaps the most common of the
converters, providing a relatively rapid and relatively inexpensive conversion

‘Flash’ Converter
Making all the comparisons between the digital states and the analog signal concurrently makes
for a fast conversion cycle. A resistive voltage divider (see figure) can provide all the digital
reference states required. There are eight reference values (including zero) for the three-bit
converter illustrated. Note that the voltage reference states are offset so that they are midway
between reference step values. The analog signal is compared concurrently with each reference
state; therefore a separate comparator is required for each comparison. Digital logic then
combines the several comparator outputs to determine the appropriate binary code to present.




                                                                    Version 2 EE IIT, Kharagpur 14
V0                Analog
                                         input
                             3R
                              2 111
                 6.5 Vo
                     8
                             R
                                  110
                  5.5 Vo                                MSB
                      8
                             R                            22
                                  101
                 4.5 Vo
                     8
                             R                                         21
                                  100                                             LSB
                 3.5 Vo
                     8
                             R                                                    20
                                  011
                 2.5 Vo
                     8
                             R
                                  010
                  1.5 Vo
                      8
                             R
                                  001
                 0.5 Vo
                     8
                              R                    3-bit ‘flash’ converter
                              2

                                        Fig. 18.12 Flash Converter

Sigma-Delta (Σ∆) AD converters
The analog side of a sigma-delta converter (a 1-bit ADC) is very simple. The digital side, which
is what makes the sigma-delta ADC inexpensive to produce, is more complex. It performs
filtering and decimation. The concepts of over-sampling, noise shaping, digital filtering, and
decimation are used to make a sigma-delta ADC.

Over-sampling
First, consider the frequency-domain transfer function of a traditional multi-bit ADC with a sine-
wave input signal. This input is sampled at a frequency Fs. According to Nyquist theory, Fs must
be at least twice the bandwidth of the input signal. When observing the result of an FFT analysis
on the digital output, we see a single tone and lots of random noise extending from DC to Fs/2
(Fig.18.13). Known as quantization noise, this effect results from the following consideration:
the ADC input is a continuous signal with an infinite number of possible states, but the digital
output is a discrete function, whose number of different states is determined by the converter's


                                                                Version 2 EE IIT, Kharagpur 15
resolution. So, the conversion from analog to digital loses some information and introduces some
distortion into the signal. The magnitude of this error is random, with values up to ±LSB.




         Fig. 18.13 FFT diagram of a multi-bit ADC with a sampling frequency FS

If we divide the fundamental amplitude by the RMS sum of all the frequencies representing
noise, we obtain the signal to noise ratio (SNR). For an N-bit ADC, SNR = 6.02N + 1.76dB. To
improve the SNR in a conventional ADC (and consequently the accuracy of signal reproduction)
you must increase the number of bits. Consider again the above example, but with a sampling
frequency increased by the oversampling ratio k, to kFs (Fig.18.14). An FFT analysis shows that
the noise floor has dropped. SNR is the same as before, but the noise energy has been spread
over a wider frequency range. Sigma-delta converters exploit this effect by following the 1-bit
ADC with a digital filter (Fig.18.14). The RMS noise is less, because most of the noise passes
through the digital filter. This action enables sigma-delta converters to achieve wide dynamic
range from a low-resolution ADC.




                                                               Version 2 EE IIT, Kharagpur 16
Fig. 18.14 FFT diagram of a multi-bit ADC with a sampling frequency kFS and effect of
Digital Filter on Noise Bandwidth

Noise Shaping
It includes a difference amplifier, an integrator, and a comparator with feedback loop that
contains a 1-bit DAC. (This DAC is simply a switch that connects the negative input of the
difference amplifier to a positive or a negative reference voltage.) The purpose of the feedback
DAC is to maintain the average output of the integrator near the comparator's reference level.
The density of "ones" at the modulator output is proportional to the input signal. For an
increasing input the comparator generates a greater number of "ones," and vice versa for a
decreasing input. By summing the error voltage, the integrator acts as a lowpass filter to the input
signal and a highpass filter to the quantization noise. Thus, most of the quantization noise is
pushed into higher frequencies. Oversampling has changed not the total noise power, but its
distribution. If we apply a digital filter to the noise-shaped delta-sigma modulator, it removes
more noise than does simple oversampling.(Fig.18.16).




                                                                  Version 2 EE IIT, Kharagpur 17
Signal Input, X1
                   +   X2           X3                        To Digital
                                                +      X4     Filter
                   -
                   Difference   Integrator       -
                   Amp                         Comparator
                                               (1-bit ADC)
                       X5

                                (1-bit ADC)

          Fig. 18.15 Block Diagram of 1-bit Sigma Delta Converter




 Fig. 18.16 The Effect of Integrator and Digital Filter on the Spectrum



                                                    Version 2 EE IIT, Kharagpur 18
1-bit Data              Multi-bit                Output
                                       Stream                  Data                     Data

        Analog          Delta Sigma             Digital Low               Decimation
         Input          Modulator               Pass Filter                 Filter


                        Fig. 18.17 The Digital Side of the Sigma-Delta modulator

Digital Filtering
The output of the sigma-delta modulator is a 1-bit data stream at the sampling rate, which can be
in the megahertz range. The purpose of the digital-and-decimation filter (Fig.18.17) is to extract
information from this data stream and reduce the data rate to a more useful value. In a sigma-
delta ADC, the digital filter averages the 1-bit data stream, improves the ADC resolution, and
removes quantization noise that is outside the band of interest. It determines the signal
bandwidth, settling time, and stop band rejection.

Conclusion
    In this chapter you have learnt about the basics of Real Time Signal Processing, DA and AD
conversion methods. Some microcontrollers are already equipped with DA and AD converters
on the same chip. Generally the real world signals are broad band. For instance a triangular wave
though periodic will have frequencies ranging till infinite. Therefore anti-aliasing filter is always
desirable before AD conversion. This limits the signal bandwidth and hence finite sampling
frequency. The question answer session shall discuss about the quantization error, specifications
of the AD and DA converters and errors at the various stages of real time signal processing. The
details of interfacing shall be discussed in the next lesson.
    The AD and DA converter fall under mixed VLSI circuits. The digital and analog circuits
coexist on the same chip. This poses design difficulties for VLSI engineers for embedding fast
and high resolution AD converters along with the processors. Sigma-Delta ADCs are most
complex and hence rarely found embedded on microcontrollers.




                                                                  Version 2 EE IIT, Kharagpur 19
Question Answers
Q1. What are the errors at different stages in a Real Time Signal Processing system? Elaborate
    on the quantization error.

     Ans: Refer to text

Q2. What are the difference specifications of a D-A converter?

     Ans: No. of bits (8-bits, 16-bits etc), Settling Time, Power Supply range, Power
     Consumption, Various Temperature ratings, Packaging

Q3. What are the various specifications of an A-D converter?

     Ans: No. of bits (8-bits, 16-bits etc), No. of channels, Conversion Time, Power Supply
     range, Power Consumption, Various Temperature ratings, Packaging

Q4. How to construct a second order Delta-Sigma AD Converter.

     Ans: Refer to text and Fig.18.15

Q5. What method you will adopt to digitize a slowly varying temperature signal without using
    AD converter?

     Ans: Instead of AD Converters use Voltage to Frequency Converters followed by a counter




                                                                 Version 2 EE IIT, Kharagpur 20

More Related Content

What's hot

Analog to Digital Converters Testing
Analog to Digital Converters TestingAnalog to Digital Converters Testing
Analog to Digital Converters Testingdie_dex
 
Digital filter design using VHDL
Digital filter design using VHDLDigital filter design using VHDL
Digital filter design using VHDLArko Das
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) inventionjournals
 
First order sigma delta modulator with low-power
First order sigma delta modulator with low-powerFirst order sigma delta modulator with low-power
First order sigma delta modulator with low-powereSAT Publishing House
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPiosrjce
 
An Efficient Construction of Online Testable Circuits using Reversible Logic ...
An Efficient Construction of Online Testable Circuits using Reversible Logic ...An Efficient Construction of Online Testable Circuits using Reversible Logic ...
An Efficient Construction of Online Testable Circuits using Reversible Logic ...ijsrd.com
 
Low Power Architecture for JPEG2000
Low Power Architecture for JPEG2000Low Power Architecture for JPEG2000
Low Power Architecture for JPEG2000Rahul Jain
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD Editor
 
FPGA Implementation of Mixed Radix CORDIC FFT
FPGA Implementation of Mixed Radix CORDIC FFTFPGA Implementation of Mixed Radix CORDIC FFT
FPGA Implementation of Mixed Radix CORDIC FFTIJSRD
 
Ebc7fc8ba9801f03982acec158fa751744ca copie
Ebc7fc8ba9801f03982acec158fa751744ca   copieEbc7fc8ba9801f03982acec158fa751744ca   copie
Ebc7fc8ba9801f03982acec158fa751744ca copieSourour Kanzari
 
Lear design con_east_2004_simplifing_mixed_signal_simulation
Lear design con_east_2004_simplifing_mixed_signal_simulationLear design con_east_2004_simplifing_mixed_signal_simulation
Lear design con_east_2004_simplifing_mixed_signal_simulationObsidian Software
 
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}guest3f9c6b
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationDebraj Maji
 

What's hot (20)

Analog to Digital Converters Testing
Analog to Digital Converters TestingAnalog to Digital Converters Testing
Analog to Digital Converters Testing
 
Digital filter design using VHDL
Digital filter design using VHDLDigital filter design using VHDL
Digital filter design using VHDL
 
100 103
100 103100 103
100 103
 
Mt8880 Pk77
Mt8880 Pk77Mt8880 Pk77
Mt8880 Pk77
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Phd Defence
Phd DefencePhd Defence
Phd Defence
 
First order sigma delta modulator with low-power
First order sigma delta modulator with low-powerFirst order sigma delta modulator with low-power
First order sigma delta modulator with low-power
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSP
 
An Efficient Construction of Online Testable Circuits using Reversible Logic ...
An Efficient Construction of Online Testable Circuits using Reversible Logic ...An Efficient Construction of Online Testable Circuits using Reversible Logic ...
An Efficient Construction of Online Testable Circuits using Reversible Logic ...
 
Low Power Architecture for JPEG2000
Low Power Architecture for JPEG2000Low Power Architecture for JPEG2000
Low Power Architecture for JPEG2000
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
Iy3116761679
Iy3116761679Iy3116761679
Iy3116761679
 
FPGA Implementation of Mixed Radix CORDIC FFT
FPGA Implementation of Mixed Radix CORDIC FFTFPGA Implementation of Mixed Radix CORDIC FFT
FPGA Implementation of Mixed Radix CORDIC FFT
 
VIDEO CODECS
VIDEO CODECSVIDEO CODECS
VIDEO CODECS
 
SigmaDeltaADC
SigmaDeltaADCSigmaDeltaADC
SigmaDeltaADC
 
Ebc7fc8ba9801f03982acec158fa751744ca copie
Ebc7fc8ba9801f03982acec158fa751744ca   copieEbc7fc8ba9801f03982acec158fa751744ca   copie
Ebc7fc8ba9801f03982acec158fa751744ca copie
 
Modulation techniques matlab_code
Modulation techniques matlab_codeModulation techniques matlab_code
Modulation techniques matlab_code
 
Lear design con_east_2004_simplifing_mixed_signal_simulation
Lear design con_east_2004_simplifing_mixed_signal_simulationLear design con_east_2004_simplifing_mixed_signal_simulation
Lear design con_east_2004_simplifing_mixed_signal_simulation
 
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}
Linear and digital ic applications Jntu Model Paper{Www.Studentyogi.Com}
 
A review on reversible logic gates and their implementation
A review on reversible logic gates and their implementationA review on reversible logic gates and their implementation
A review on reversible logic gates and their implementation
 

Similar to Lesson 18

Microcontroller architecture programming and interfacing
Microcontroller architecture programming and interfacingMicrocontroller architecture programming and interfacing
Microcontroller architecture programming and interfacingthejasmeetsingh
 
Performances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéairePerformances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéaireRachidz
 
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic System
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic SystemVoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic System
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic SystemSagun Man Singh Shrestha
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2ozgur_can
 
Lect1a_ basics of DSP.pptx
Lect1a_ basics of DSP.pptxLect1a_ basics of DSP.pptx
Lect1a_ basics of DSP.pptxVarsha506533
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
 
A High Speed Successive Approximation Pipelined ADC.pdf
A High Speed Successive Approximation Pipelined ADC.pdfA High Speed Successive Approximation Pipelined ADC.pdf
A High Speed Successive Approximation Pipelined ADC.pdfKathryn Patel
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignAmr E. Mohamed
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converterMohamed Ali
 
Binary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesBinary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesSugeng Widodo
 
Digital communications 1
Digital communications 1Digital communications 1
Digital communications 1Jojie Cepeda
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsHostedbyConfluent
 
A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...ranjitha mudhiraj
 
TinyML - 4 speech recognition
TinyML - 4 speech recognition TinyML - 4 speech recognition
TinyML - 4 speech recognition 艾鍗科技
 
A High Speed Successive Approximation Pipelined ADC
A High Speed Successive Approximation Pipelined ADCA High Speed Successive Approximation Pipelined ADC
A High Speed Successive Approximation Pipelined ADCPushpak Dagade
 

Similar to Lesson 18 (20)

Microcontroller architecture programming and interfacing
Microcontroller architecture programming and interfacingMicrocontroller architecture programming and interfacing
Microcontroller architecture programming and interfacing
 
G0514551
G0514551G0514551
G0514551
 
Performances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéairePerformances des turbo codes parallèles pour un canal satellite non linéaire
Performances des turbo codes parallèles pour un canal satellite non linéaire
 
F0213137
F0213137F0213137
F0213137
 
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic System
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic SystemVoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic System
VoCoRoBo: Remote Speech Recognition and Tilt Sensing Multi-Robotic System
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
 
Lect1a_ basics of DSP.pptx
Lect1a_ basics of DSP.pptxLect1a_ basics of DSP.pptx
Lect1a_ basics of DSP.pptx
 
Lp2520162020
Lp2520162020Lp2520162020
Lp2520162020
 
Lp2520162020
Lp2520162020Lp2520162020
Lp2520162020
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
A High Speed Successive Approximation Pipelined ADC.pdf
A High Speed Successive Approximation Pipelined ADC.pdfA High Speed Successive Approximation Pipelined ADC.pdf
A High Speed Successive Approximation Pipelined ADC.pdf
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
 
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware  interrupts and analogue to digital converterAVR_Course_Day6 external hardware  interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
 
Binary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesBinary Pass-Band Modulation Techniques
Binary Pass-Band Modulation Techniques
 
R2 R
R2 RR2 R
R2 R
 
Digital communications 1
Digital communications 1Digital communications 1
Digital communications 1
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
 
A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...A zigbee wireless sensor network and multiple way bus communication meduim ca...
A zigbee wireless sensor network and multiple way bus communication meduim ca...
 
TinyML - 4 speech recognition
TinyML - 4 speech recognition TinyML - 4 speech recognition
TinyML - 4 speech recognition
 
A High Speed Successive Approximation Pipelined ADC
A High Speed Successive Approximation Pipelined ADCA High Speed Successive Approximation Pipelined ADC
A High Speed Successive Approximation Pipelined ADC
 

Recently uploaded

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

Lesson 18

  • 1. Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1
  • 2. Lesson 18 AD and DA Converters Version 2 EE IIT, Kharagpur 2
  • 3. Instructional Objectives After going through this lesson the student would be able to • Learn about Real Time Signal Processing • Sampling Theorem • DA Conversion • Different Methods of AD Conversions o Successive Approximation o Flash o Sigma Delta Pre-Requisite Digital Electronics, Microprocessors 18 Introduction The real time embedded controller is expected to process the real world signals within a specified time. Most of the real world signals are analog in nature. Take the examples of your mobile phone. The overall architecture is shown on Fig.18.1. The Digital Signal Processor (DSP) is fed with the analog data from the microphone. It also receives the digital signals after demodulation from the RF receiver and generates the filtered and noise free analog signal through the speaker. All the processing is done in real time. The processing of signals in real time is termed as Real Time Signal Processing which has been coined beautifully in the Signal Processing industry. RF receiver (Rx) Speaker DSP Antenna RF transmitter (Tx) Microphone Display Micro- controller Keyboard Fig. 18.1 The block diagram The detailed steps of such a processing task is outlined in Fig.18.2 Version 2 EE IIT, Kharagpur 3
  • 4. Signal Processing Analog Processing Analog Processing Measurand Sensor Conditioner Analog Processor ADC LPF Digital Processing Analog Processor DSP DAC LPF Fig. 18.2 Real Time Processing of Analog Signals Measurand is the quantity which is measured. In this case it is the analog speech signal. The sensor is a microphone. In case of your mobile set it is the microphone which is embedded in it. The conditioner can be a preamplifier or a demodulator. The Analog Processor mostly is a Low Pass Filter (LPF). This is primarily used to prevent aliasing which is a term to be explained later in this chapter. The following is the Analog to Digital Converter which has a number of stages to convert an analog signal into digital form. The Digital Signal Processing is carried out by a system with a processor. Further the processed signal is converted into analog signal by the Digital to Analog Converter which finally sends the output to the real world through another Low Pass Filter. The functional layout of the ADC and DAC is depicted in Fig.18.3 ADC xs(t) xq(t) b bits x(t) Sampler Quantizer Coder x(t) xq(n) [xb(n)] p(t) DAC b bits Decoder Sample/hold [yb(n)] y(n) Fig. 18.3 The functional layout of the ADC and DAC Version 2 EE IIT, Kharagpur 4
  • 5. The DA Converter In theory, the simplest method for digital-to-analog conversion is to pull the samples from memory and convert them into an impulse train. 3 a. Impulse train 2 1 Amplitude 0 -1 -2 -3 0 1 2 3 4 5 Time Fig. 18.4(a) The analog equivalent of digital words 3 c. Zeroth-order hold 2 1 Amplitude 0 -1 -2 -3 0 1 2 3 4 5 Time Fig. 18.4(b) The analog voltage after zero-order hold Version 2 EE IIT, Kharagpur 5
  • 6. 3 f. Reconstructed analog signal 2 1 Amplitude 0 -1 -2 -3 0 1 2 3 4 5 Time Fig. 18.4(c) The reconstructed analog signal after filtering A digital word (8-bits or 16-bits) can be converted to its analog equivalent by weighted averaging. Fig. 18.5(a) shows the weighted averaging method for a 3-bit converter. A switch connects an input either to a common voltage V or to a common ground. Only switches currently connected to the voltage source contribute current to the non-inverting input summing node. The output voltage is given by the expression drawn below the circuit diagram; SX = 1 if switch X connects to V, SX = 0 if it connects to ground. There are eight possible combinations of connections for the three switches, and these are indicated in the columns of the table to the right of the diagram. Each combination is associated with a decimal integer as shown. The inputs are weighted in a 4:2:1 relationship, so that the sequence of values for 4S3 + 2S2 + S1 form a binary-coded decimal number representation. The magnitude of Vo varies in units (steps) of (Rf/4R)V from 0 to 7. This circuit provides a simplified Digital to Analog Converter (DAC). The digital input controls the switches, and the amplifier provides the analog output. Version 2 EE IIT, Kharagpur 6
  • 7. V S3 S2 S1 R 0 0 0 0 S3 Rf 1 0 0 1 2R S2 2 0 1 0 - + 3 0 1 1 4R V0 S1 4 1 0 0 5 1 0 1 ( V0 = -R f S3 V + S2 V + S1 V R 2R 4R ) 6 1 1 0 -R 7 1 1 1 = f V(4S3 + 2S2 + S1) 4R Fig. 18.5(a) The binary weighted register method V Rf S3 2R 2R - S2 + V0 2R R V 1 S1 2R R 1(S3) = 3R 2 S3 1(S2) = V 1 S2 3R 4 2R 1(S1) = V 1 S1 3R 8 ( V0 = -R f S3 V 1 + S2 V 1 + S1 V 1 3R 2 3R 4 3R 8 ) = - R f V (4S3 + 2S2 + S1) 24R Fig. 18.5(b) R-2R ladder D-A conversion circuit Fig. 18.5(b) depicts the R-2R ladder network. The disadvantage of the binary weighted register is the availability and manufacturing of exact values of the resistances. Here also the output is proportional to the binary-coded decimal number. The output of the above circuits as given in Fig. 18.5(a) and 18.5(b) is equivalent analog values as shown in Fig. 18.4(a). However to reconstruct the original signal this is further passed through a zero order hold (ZOH) circuit followed by a filter (Fig.18.2). The reconstructed waveforms are shown in Fig. 18.4(b) and 18.4(c). Version 2 EE IIT, Kharagpur 7
  • 8. The AD Converter The ADC consists of a sampler, quantizer and a coder. Each of them is explained below. Sampler The sampler in the simplest form is a semiconductor switch as shown below. It is followed by a hold circuit which a capacitor with a very low leakage path. Semiconductor Switch Analog signal Sampled signal Capacitor Control signal 1 0.8 0.6 0.4 0.2 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Fig. 18.6 The Sample and Hold Circuit Version 2 EE IIT, Kharagpur 8
  • 9. Analog Signal 2 1.5 Amplitude 1 0.5 0 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 time(ms) Sampled Signal after the capacitor 2 1.5 Amplitude 1 0.5 0 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 time(ms) Fig. 18.7 Sample and Hold Signals Quantizer The hold circuit tries to maintain a constant voltage till the next switching. The quantizer is responsible to convert this voltage to a binary number. The number of bits in a binary number decides the approximation and accuracy. The sample hand hold output can assume any real number in a given range. However because of finite number of bits (say N) the levels possible in the digital domain 0 to 2N-1 which corresponds to a voltage range of 0 to V volts 3.025 b. Sampled analog signal 3.020 Amplitude (in volts) 3.015 3.010 3.005 3.000 0 5 10 15 20 25 30 35 40 45 50 Time Fig. 18.8(a) Hold Circuit Output Version 2 EE IIT, Kharagpur 9
  • 10. 3025 c. Digitized signal 3020 Digital number 3015 3010 3005 3000 0 5 10 15 20 25 30 35 40 45 50 Sample number Fig. 18.8(b) The Quantized Value Coder This is an optional device which is used after the conversion is complete. In microprocessor based systems the Coder is responsible for packing several samples and transmitting them onwards either in synchronous or in asynchronous manner. For example in TI DSK kits you will find the AD converters with CODECs are interfaced to McBSP ports (short form of Multi- channel Buffered Serial Ports). Several 16-bit sampled values are packed into a frame and transmitted to the processor or to the memory by Direct Memory Access (DMA). The Coder is responsible for controlling the ADC and transferring the Data quickly for processing. Sometimes the Codec is responsible for compressing several samples together and transmitting them. In your desktop computers you will find audio interfaces which can digitize and record your voice and store them in .wav format. Basically this AD conversion followed by coding. The wav format is the Pulse-Code-Modulated (PCM) format of the original digital voice samples. The Sampling Theorem The definition of proper sampling is quite simple. Suppose you sample a continuous signal in some manner. If you can exactly reconstruct the analog signal from the samples, you must have done the sampling properly. Even if the sampled data appears confusing or incomplete, the key information has been captured if you can reverse the process. Fig.18.9 shows several sinusoids before and after digitization. The continuous line represents the analog signal entering the ADC, while the square markers are the digital signal leaving the ADC. In (a), the analog signal is a constant DC value, a cosine wave of zero frequency. Since the analog signal is a series of straight lines between each of the samples, all of the information needed to reconstruct the analog signal is contained in the digital data. According to our definition, this is proper sampling. The sine wave shown in (b) has a frequency of 0.09 of the sampling rate. This might represent, for example, a 90cycle/second sine wave being sampled at1000 samples/second. Expressed in Version 2 EE IIT, Kharagpur 10
  • 11. another way, there are 11.1 samples taken over each complete cycle of the sinusoid. This situation is more complicated than the previous case, because the analog signal cannot be reconstructed by simply drawing straight lines between the data points. Do these samples properly represent the analog signal? The answer is yes, because no other sinusoid, or combination of sinusoids, will produce this pattern of samples (within the reasonable constraints listed below). These samples correspond to only one analog signal, and therefore the analog signal can be exactly reconstructed. Again, an instance of proper sampling. In (c), the situation is made more difficult by increasing the sine wave's frequency to 0.31 of the sampling rate. This results in only 3.2 samples per sine wave cycle. Here the samples are so sparse that they don't even appear to follow the general trend of the analog signal. Do these samples properly represent the analog waveform? Again, the answer is yes, and for exactly the same reason. The samples are a unique representation of the analog signal. All of the information needed to reconstruct the continuous waveform is contained in the digital data. Obviously, it must be more sophisticated than just drawing straight lines between the data points. As strange as it seems, this is proper sampling according to our definition. In (d), the analog frequency is pushed even higher to 0.95 of the sampling rate, with a mere 1.05 samples per sine wave cycle. Do these samples properly represent the data? No, they don't! The samples represent a different sine wave from the one contained in the analog signal. In particular, the original sine wave of 0.95 frequency misrepresents itself as a sine wave of 0.05 frequency in the digital signal. This phenomenon of sinusoids changing frequency during sampling is called aliasing. Just as a criminal might take on an assumed name or identity (an alias), the sinusoid assumes another frequency that is not its own. Since the digital data is no longer uniquely related to a particular analog signal, an unambiguous reconstruction is impossible. There is nothing in the sampled data to suggest that the original analog signal had a frequency of 0.95 rather than 0.05. The sine wave has hidden its true identity completely; the perfect crime has been committed! According to our definition, this is an example of improper sampling. This line of reasoning leads to a milestone in DSP, the sampling theorem. Frequently this is called the Shannon sampling theorem, or the Nyquist Sampling theorem, after the authors of 1940s papers on the topic. The sampling theorem indicates that a continuous signal can be properly sampled, only if it does not contain frequency components above one-half of the sampling rate. For instance, a sampling rate of 2,000 samples/second requires the analog signal to be composed of frequencies below 1000 cycles/second. If frequencies above this limit are present in the signal, they will be aliased to frequencies between 0 and 1000 cycles/second, combining with whatever information that was legitimately there. Version 2 EE IIT, Kharagpur 11
  • 12. 3 3 a. Analog frequency = 0.0 (i.e., DC) b. Analog frequency = 0.09 of sampling rate 2 2 Amplitude 1 1 Amplitude 0 0 -1 -1 -2 -2 -3 -3 Time (or sample number) Time (or sample number) 3 3 c. Analog frequency = 0.31 of sampling rate d. Analog frequency = 0.95 of sampling rate 2 2 1 1 Amplitude Amplitude 0 0 -1 -1 -2 -2 -3 -3 Time (or sample number) Time (or sample number) Fig. 18.9 Sampling a sine wave at different frequencies Methods of AD Conversion The analog voltage samples are converted to digital equivalent at the quantizer. There are various ways to convert the analog values to the nearest finite length digital word. Some of these methods are explained below. Version 2 EE IIT, Kharagpur 12
  • 13. Successive Approximation ADC V0 R2 R1 0 V1 V2 V- R3 4 2 - 1 V V- 0 V2 OG1 V4 OG2 6 DAC V+ R4 V+ 3 + 7 5 0 U1 3 7 5 ADC 0 V3 V+ + V+ V- uA741 V+ OG2 6 OG1 - V4 - V7 2 - V- 1 G 4 U2 - - V8 uA741 0 0 0 Fig. 18.10 The Counter Converter The AD conversion is indirectly carried out through DA conversion. The 3-bit input as shown in Fig.18.10 to the DA converter may change sequentially from 000 to 111 by a 3-bit counter. The unknown voltage (V8) is applied to one input of the comparator. When the DA output exceeds the unknown voltage the comparator output which was negative becomes positive. This can be used to latch the counter value which is approximately equivalent digital value of the unknown voltage. The draw back of sequential counting is the time taken to reach the highest count is large. For instance an 8-bit converter has to count 256 for converting the maximum input. It therefore has to consume 256 clock cycles which is large. Therefore, a different method called successive approximation is used for counting as shown in Fig.18.11. Version 2 EE IIT, Kharagpur 13
  • 14. 100 110 010 111 101 011 001 000 Fig. 18.11 The successive approximation counting Consider a three-bit conversion for simplicity. The counting ADC must allow for up to eight comparisons (including zero). The search tree for an SAR search is illustrated in Fig.18.11. To start a conversion cycle a three-bit digital register is first cleared, and then loaded with the triplet 100. The register state provides the input to a DAC, and that provides a reference output. This output is compared to the analog signal to be converted, and a decision is made whether the analog signal is greater than or less than the reference signal. This comparison is essentially the same as that made for the previous ADC, except that because of the use of the ‘half-way’ code the result of this single comparison is used to eliminate concurrently half the possible DAC steps. As the tree suggests, if the analog signal is greater then all the smaller DAC outputs are eliminated from consideration. Digital logic associated with the comparison then either clears the MSB (Most Significant Bit) to 0 or simply leaves it unchanged. In either case the next bit is set to 1, i.e., to the mid-code of the selected half, and a new comparison made. Again half the remaining DAC states are eliminated from consideration. Depending on the result of the comparison the second bit is cleared to 0, or it is left unchanged at 1. In either case the third bit is set to 1 and the comparison step repeated. Each time a comparison is made half the remaining DAC output states will be eliminated. Instead of having to step through 2N states for an N bit conversion only N comparisons are needed. The SAR ADC is perhaps the most common of the converters, providing a relatively rapid and relatively inexpensive conversion ‘Flash’ Converter Making all the comparisons between the digital states and the analog signal concurrently makes for a fast conversion cycle. A resistive voltage divider (see figure) can provide all the digital reference states required. There are eight reference values (including zero) for the three-bit converter illustrated. Note that the voltage reference states are offset so that they are midway between reference step values. The analog signal is compared concurrently with each reference state; therefore a separate comparator is required for each comparison. Digital logic then combines the several comparator outputs to determine the appropriate binary code to present. Version 2 EE IIT, Kharagpur 14
  • 15. V0 Analog input 3R 2 111 6.5 Vo 8 R 110 5.5 Vo MSB 8 R 22 101 4.5 Vo 8 R 21 100 LSB 3.5 Vo 8 R 20 011 2.5 Vo 8 R 010 1.5 Vo 8 R 001 0.5 Vo 8 R 3-bit ‘flash’ converter 2 Fig. 18.12 Flash Converter Sigma-Delta (Σ∆) AD converters The analog side of a sigma-delta converter (a 1-bit ADC) is very simple. The digital side, which is what makes the sigma-delta ADC inexpensive to produce, is more complex. It performs filtering and decimation. The concepts of over-sampling, noise shaping, digital filtering, and decimation are used to make a sigma-delta ADC. Over-sampling First, consider the frequency-domain transfer function of a traditional multi-bit ADC with a sine- wave input signal. This input is sampled at a frequency Fs. According to Nyquist theory, Fs must be at least twice the bandwidth of the input signal. When observing the result of an FFT analysis on the digital output, we see a single tone and lots of random noise extending from DC to Fs/2 (Fig.18.13). Known as quantization noise, this effect results from the following consideration: the ADC input is a continuous signal with an infinite number of possible states, but the digital output is a discrete function, whose number of different states is determined by the converter's Version 2 EE IIT, Kharagpur 15
  • 16. resolution. So, the conversion from analog to digital loses some information and introduces some distortion into the signal. The magnitude of this error is random, with values up to ±LSB. Fig. 18.13 FFT diagram of a multi-bit ADC with a sampling frequency FS If we divide the fundamental amplitude by the RMS sum of all the frequencies representing noise, we obtain the signal to noise ratio (SNR). For an N-bit ADC, SNR = 6.02N + 1.76dB. To improve the SNR in a conventional ADC (and consequently the accuracy of signal reproduction) you must increase the number of bits. Consider again the above example, but with a sampling frequency increased by the oversampling ratio k, to kFs (Fig.18.14). An FFT analysis shows that the noise floor has dropped. SNR is the same as before, but the noise energy has been spread over a wider frequency range. Sigma-delta converters exploit this effect by following the 1-bit ADC with a digital filter (Fig.18.14). The RMS noise is less, because most of the noise passes through the digital filter. This action enables sigma-delta converters to achieve wide dynamic range from a low-resolution ADC. Version 2 EE IIT, Kharagpur 16
  • 17. Fig. 18.14 FFT diagram of a multi-bit ADC with a sampling frequency kFS and effect of Digital Filter on Noise Bandwidth Noise Shaping It includes a difference amplifier, an integrator, and a comparator with feedback loop that contains a 1-bit DAC. (This DAC is simply a switch that connects the negative input of the difference amplifier to a positive or a negative reference voltage.) The purpose of the feedback DAC is to maintain the average output of the integrator near the comparator's reference level. The density of "ones" at the modulator output is proportional to the input signal. For an increasing input the comparator generates a greater number of "ones," and vice versa for a decreasing input. By summing the error voltage, the integrator acts as a lowpass filter to the input signal and a highpass filter to the quantization noise. Thus, most of the quantization noise is pushed into higher frequencies. Oversampling has changed not the total noise power, but its distribution. If we apply a digital filter to the noise-shaped delta-sigma modulator, it removes more noise than does simple oversampling.(Fig.18.16). Version 2 EE IIT, Kharagpur 17
  • 18. Signal Input, X1 + X2 X3 To Digital + X4 Filter - Difference Integrator - Amp Comparator (1-bit ADC) X5 (1-bit ADC) Fig. 18.15 Block Diagram of 1-bit Sigma Delta Converter Fig. 18.16 The Effect of Integrator and Digital Filter on the Spectrum Version 2 EE IIT, Kharagpur 18
  • 19. 1-bit Data Multi-bit Output Stream Data Data Analog Delta Sigma Digital Low Decimation Input Modulator Pass Filter Filter Fig. 18.17 The Digital Side of the Sigma-Delta modulator Digital Filtering The output of the sigma-delta modulator is a 1-bit data stream at the sampling rate, which can be in the megahertz range. The purpose of the digital-and-decimation filter (Fig.18.17) is to extract information from this data stream and reduce the data rate to a more useful value. In a sigma- delta ADC, the digital filter averages the 1-bit data stream, improves the ADC resolution, and removes quantization noise that is outside the band of interest. It determines the signal bandwidth, settling time, and stop band rejection. Conclusion In this chapter you have learnt about the basics of Real Time Signal Processing, DA and AD conversion methods. Some microcontrollers are already equipped with DA and AD converters on the same chip. Generally the real world signals are broad band. For instance a triangular wave though periodic will have frequencies ranging till infinite. Therefore anti-aliasing filter is always desirable before AD conversion. This limits the signal bandwidth and hence finite sampling frequency. The question answer session shall discuss about the quantization error, specifications of the AD and DA converters and errors at the various stages of real time signal processing. The details of interfacing shall be discussed in the next lesson. The AD and DA converter fall under mixed VLSI circuits. The digital and analog circuits coexist on the same chip. This poses design difficulties for VLSI engineers for embedding fast and high resolution AD converters along with the processors. Sigma-Delta ADCs are most complex and hence rarely found embedded on microcontrollers. Version 2 EE IIT, Kharagpur 19
  • 20. Question Answers Q1. What are the errors at different stages in a Real Time Signal Processing system? Elaborate on the quantization error. Ans: Refer to text Q2. What are the difference specifications of a D-A converter? Ans: No. of bits (8-bits, 16-bits etc), Settling Time, Power Supply range, Power Consumption, Various Temperature ratings, Packaging Q3. What are the various specifications of an A-D converter? Ans: No. of bits (8-bits, 16-bits etc), No. of channels, Conversion Time, Power Supply range, Power Consumption, Various Temperature ratings, Packaging Q4. How to construct a second order Delta-Sigma AD Converter. Ans: Refer to text and Fig.18.15 Q5. What method you will adopt to digitize a slowly varying temperature signal without using AD converter? Ans: Instead of AD Converters use Voltage to Frequency Converters followed by a counter Version 2 EE IIT, Kharagpur 20