Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Digital signal processing

Introduction to DSP fundamentals for a beginner

  • Login to see the comments

Digital signal processing

  1. 1. DIGITAL SIGNAL PROCESSING – An Introduction Dr.Y. Narasimha Murthy Ph.D Reader, Department of Physics & Electronics SRI SAI BABA NATIONAL COLLEGE (Autonomous) ANANTAPUR – 515001 (A.P) [email_address]
  2. 2. Organisation <ul><li>What is signal processing </li></ul><ul><li>Need of Processing </li></ul><ul><li>Catagories </li></ul><ul><li>Advantages of Digital over analog </li></ul><ul><li>Filters-Analog & Digital </li></ul><ul><li>Comparison </li></ul><ul><li>Digital filters-Types </li></ul>
  3. 3. <ul><li>FIR &IIR </li></ul><ul><li>Advantages-Disadvantages </li></ul><ul><li>Applications of DSP </li></ul><ul><li>Simple Illustrations </li></ul><ul><li>Various types of DSPs </li></ul><ul><li>Microprocessor & Signal processor </li></ul><ul><li>Architecture </li></ul><ul><li>Books &Web resources </li></ul>
  4. 4. What is Signal processing? <ul><li>Signal processing is the analysis, interpretation, and manipulation of signals like sound, images time-varying measurement values and sensor data etc… </li></ul><ul><li>For example biological data such as electrocardiograms, control system signals, telecommunication transmission signals such as radio signals, and many others. </li></ul>
  5. 5. Need of Signal Processing <ul><li>When a signal is transmitted from one point to another there is every possibility of contamination /deformation of the signal by external noise. So to retrieve the original signal at the receiver suitable filters are to be used. i.e the signal is processed to obtain the pure signal. </li></ul>
  6. 6. Categories of signal processing <ul><li>Analog signal processing — for signals that have not been digitized, as in classical radio, telephone, radar, and television systems. </li></ul><ul><li>This involves linear electronic circuits such as passive filters , active filters , additive mixers , integrators and delay lines . </li></ul>
  7. 7. <ul><li>It also involves non-linear circuits such as compandors , multiplicators ( frequency mixers and voltage-controlled amplifiers ), voltage-controlled filters , voltage-controlled oscillators and phase-locked loops . </li></ul><ul><li>Digital signal processing — for signals that have been digitized, processing is done by general-purpose computers or by digital circuits such as ASICs , field-programmable gate arrays or specialized digital signal processors (DSP chips). </li></ul>
  8. 8. <ul><li>So the processing of the signal helps to estimate characteristic parameters of the signal and also to transform the signal in to the desired form. </li></ul>
  9. 9. Analog signal processing <ul><li>The analog signal processing is basically, filtering of the signal . It can be denoted by the following diagram. </li></ul>
  10. 10. Digital signal processing-Block diagram <ul><li>The digital signal processor consists of anti-aliasing filter, analog to digital converter (ADC), a digital filter represented by the transfer function H(z), a digital to analog converter and a reconstruction filter. </li></ul>
  11. 11. Advantages of Digital over analog signal processing <ul><li>Accuracy: The analog circuits are prone to temperature and external effects, but the digital filters have no such problems. </li></ul><ul><li>Flexibility: Reconfiguration of analog filters is very complex whereas the digital filters can be reconfigured easily by changing the program coefficients . </li></ul>
  12. 12. <ul><li>Digital signals can be easily stored on any magnetic media or optical media are using semiconductor chips. </li></ul><ul><li>Easy operation: Even complex mathematical operations can be performed easily using computers, which is not the case with analog processing. </li></ul>
  13. 13. <ul><li>Multiplexing: Digital signal processing provides the way for Integrated service digital network (ISDN) where digitized signals can be multiplexed with other digital data and transmitted through the same channel. </li></ul>
  14. 14. Limitations <ul><li>There are also certain limitations in DSP. </li></ul><ul><li>Bandwidth restrictions </li></ul><ul><li>Speed limitations </li></ul><ul><li>Finite word length problems. </li></ul>
  15. 15. Filters <ul><li>Any one who observes the DSP block diagram finds that the filter is the main component of DSP. </li></ul><ul><li>Filters have two uses </li></ul><ul><li>Signal separation </li></ul><ul><li>Signal restoration </li></ul>
  16. 16. <ul><li>Signal separation is needed when a signal has been contaminated with interference, noise or other signals. </li></ul><ul><li>Signal restoration is used when a signal has been distorted in some way or other. </li></ul><ul><li>For example an audio recording made with poor equipment may be filtered to get the original sound. </li></ul>
  17. 17. <ul><li>Another example of deblurring of an image occurred with an improperly focused lens or a shaky camera. </li></ul><ul><li>So these problems can be solved with either analog or digital filters. </li></ul>
  18. 18. Analog filters <ul><li>Analog filters take the analog signal as input and process the signal and finally gives the analog output. </li></ul><ul><li>An analog filter is constructed using resistors, capacitors, active components etc… </li></ul>
  19. 19. <ul><li>A simple analog low pass filter is shown below </li></ul>
  20. 20. <ul><li>Coming to advantages of Analog filters they are cheap and have a large dynamic range in both amplitude and frequency. But in terms of performance they are not superior to digital filters. </li></ul>
  21. 21. Digital filters <ul><li>A digital filter processes and generates digital data. </li></ul><ul><li>A digital filter constitutes elements like adder, multiplier and delay units. </li></ul><ul><li>Digital filters are vastly superior in the level of performance in comparison to analog filters. </li></ul>
  22. 22. A simple digital filter
  23. 23. Advantages : <ul><li>There are many advantages with digital filters. </li></ul><ul><li>Unlike analog filters ,the digital filter performance is not influenced by component ageing, temperature and power variations . </li></ul>
  24. 24. <ul><li>A digital filter is highly immune to noise and relatively stable. </li></ul><ul><li>Digital filters afford a wide variety of shapes for the amplitude and phase responses. </li></ul><ul><li>Impedance matching problems are minimum. </li></ul>
  25. 25. <ul><li>Transportation and reconfiguration is very easy ,which is not true in the case of analog filters. </li></ul><ul><li>Multiple filtering is possible only in digital filters. </li></ul><ul><li>Computational problems are minimum. </li></ul>
  26. 26. Disadvantages: <ul><li>There are few disadvantages also. </li></ul><ul><li>Quantization error occurs due to finite word length in the representation of signals and parameters. </li></ul><ul><li>Digital filters also suffer from Bandwidth problems. </li></ul>
  27. 27. Differences between analog and digital filters : <ul><li>An analog filter is constructed using active, passive components like resistors, capacitors and op amps etc.. </li></ul><ul><li>A digital filter constitutes adder, multiplier and delay elements </li></ul><ul><li>An analog filter is denoted by a differential equation. </li></ul><ul><li>A digital filter is denoted by a difference equation. </li></ul>
  28. 28. <ul><li>Laplace transform is used for the analysis of analog filter. </li></ul><ul><li>Z transforms are used for the analysis of digital filters. </li></ul><ul><li>The frequency response of an analog filter can be modified by changing the components. </li></ul><ul><li>The frequency response can be changed by changing the filter coefficients. </li></ul>
  29. 29. Types of Digital filters <ul><li>Broadly speaking ,two types of digital filters exists. </li></ul><ul><li>FIR Filters(Finite impulse response filters) </li></ul><ul><li>IIR Filters (Infinite Impulse response filters) </li></ul>
  30. 30. FIR Filters <ul><li>The digital filter whose impulse response is of finite </li></ul><ul><li>duration is known as Finite impulse response filter. </li></ul><ul><li>The response of the FIR filter depends only on the </li></ul><ul><li>present and past input samples. </li></ul><ul><li>These FIR filters are also called non recursive filters. </li></ul><ul><li>So, in FIR the impulse response sequence is of finite duration, i.e. it has a finite number of non-zero terms. </li></ul>
  31. 31. <ul><li>The system with the impulse response </li></ul><ul><li>denotes an FIR system. </li></ul>
  32. 32. <ul><li>Ex: The following difference equation denotes the finite impulse response filter. </li></ul><ul><li>For i<0, y(n)=0 i.e. the impulse response is finite and it exists only for n>0 </li></ul>
  33. 33. Advantages of FIR Filters <ul><li>FIR filters can be designed with exact linear phase. These linear phase filters are important for applications where frequency dispersion due to non-linear phase is hazardous. (For example speech processing and data transmission) </li></ul><ul><li>FIR filters are stable </li></ul><ul><li>Round off noise can be eliminated in FIR filters </li></ul>
  34. 34. <ul><li>FIR filters can be efficiently implemented in multirate DSP systems </li></ul><ul><li>FIR filters reduce the computation complexity </li></ul>
  35. 35. Disadvantages <ul><li>As large number of impulse response samples are required to properly approximate sharp cutoff FIR filters the processing will become complex due to slow convolution. </li></ul><ul><li>The delay of linear phase FIR filters can sometimes create problems in some DSP applications . </li></ul>
  36. 36. IIR Filters <ul><li>The digital filter whose impulse response is of infinite </li></ul><ul><li>duration is known as Infinite impulse response filter. </li></ul><ul><li>The response of an IIR filter is a function of </li></ul><ul><li>current and past input signal samples and past </li></ul><ul><li>output signal samples. </li></ul><ul><li>It is also called recursive filter. </li></ul>
  37. 37. <ul><li>Ex: A simple first order difference equation illustrates the IIR filter. </li></ul><ul><li>The implementation diagram of first order IIR filter is shown in the next slide. </li></ul>
  38. 39. Advantages of IIR filters <ul><li>An IIR filter has lesser number of side lobes in the stop-band than an FIR filter with the same number of parameters. </li></ul><ul><li>Also the implementation of an IIR filter involves fewer parameters, less memory requirements and lower computational complexity. </li></ul>
  39. 40. Disadvantages <ul><li>IIR filters do not have linear phase and also they are not very stable. </li></ul><ul><li>Realization of IIR filters is not very easy as compared to FIR filters </li></ul><ul><li>As it is a recursive filter the number of coefficients is very large and the memory requirements are also high </li></ul>
  40. 41. Applications of DSP <ul><li>Digital signal processing has variety of applications in diverse fields like </li></ul><ul><li>Digital filtering </li></ul><ul><li>Spectral analysis </li></ul><ul><li>Speech processing </li></ul><ul><li>Image processing </li></ul><ul><li>Radar and sonar processing </li></ul>
  41. 42. <ul><li>Disk and robot control </li></ul><ul><li>Telecommunication </li></ul><ul><li>Consumer electronics </li></ul><ul><li>Biomedical engineering </li></ul><ul><li>Military applications </li></ul>
  42. 43. <ul><li>Let us discuss few examples of DSP in musical sound processing. </li></ul><ul><li>In all musical recordings, the sound from instruments is recorded in studio and then special audio effects are added by manipulating the recorded musical sounds. The audio effects are artificially generated using various DSP techniques. </li></ul>
  43. 44. <ul><li>The sound reaching the listeners in a concert hall during a musical programme consists of direct sound, early reflections and reverberations (echoes). But the sound recorded in a studio is different and it doesn’t sound natural. </li></ul>
  44. 45. <ul><li>So, echoes are simply generated by delay units. The direct sound and a single echo appear in K sampling period latter can be generated by the FIR filter with the system function </li></ul><ul><li>The realization of the echo filter is shown in the next slide. </li></ul>
  45. 47. <ul><li>To generate multiple echoes separated K sapling periods we can use an FIR filter with transfer function </li></ul>
  46. 48. <ul><li>Similarly an infinite number of echoes spaced K sampling periods apart with exponentially decaying amplitudes can be created by an IIR filter. </li></ul><ul><li>The realization of infinite echo generator is shown in the next slide. </li></ul>
  47. 50. <ul><li>The other special sound effects are flanging and chorus. The flanging effect is created by feeding the same musical note to two tape recorders and then combining their delayed outputs. This effect can be simulated using the FIR filter by periodically varying the delay K(n) between 0 and K. </li></ul>
  48. 51. <ul><li>The functional diagram of flanging effect generator is shown in the next slide. </li></ul>
  49. 53. <ul><li>The chorus effect is achieved when several musicians are playing the same musical note at the same time with small changes in the amplitudes and small timing differences between their sounds. </li></ul>
  50. 54. <ul><li>A chorus generator can be realized by parallelly connecting few number of flanging effect filters. </li></ul>
  51. 55. Various DSP Processors <ul><li>Texas DSP Processors </li></ul><ul><li>16-bit Fixed point arithmetic processors </li></ul><ul><li>TMS320C1X </li></ul><ul><li>TMS320C2X </li></ul><ul><li>TMS320C5X </li></ul><ul><li>TMS320C8X </li></ul><ul><li>32-bit floating point arithmetic processors </li></ul><ul><li>TMS320C3X </li></ul><ul><li>TMS320C4X </li></ul>
  52. 56. <ul><li>Analog devices DSP Processors </li></ul><ul><li>Blackfin </li></ul><ul><li>SHARC </li></ul><ul><li>TigerSHARC </li></ul><ul><li>ADSP-21XX – 16 bit fixed point processor </li></ul><ul><li>ADSP-210XX- 32 bit floating point processor </li></ul>
  53. 57. Differences between microprocessor and Digital signal processor <ul><li>A microprocessor with its limited speed is meant for low speed applications whereas the DSP is meant for fast real time applications. </li></ul><ul><li>Generally microprocessors use Van-nuemann architecture whereas most of the DSP processors use a modified Harvard architecture with two or three memory buses. </li></ul>
  54. 58. OR Bus General purpose processors Early DSP processors More optimized DSP processors
  55. 59. Simple architecture of DSP processor
  56. 60. The books which have helped me to understand DSP <ul><li>1. Oppenheim, A.V. and Schefar, Digital signal processing, PHI </li></ul><ul><li>2. Oppenheim, Applications of digital signal processing, PHI </li></ul><ul><li>3. Rabir and Gold, Theory of digital signal processing, PHI </li></ul><ul><li>4. Proakis and Manolakis, Digital signal processing, Pearson publishers </li></ul>
  57. 61. <ul><li>5. Antoniou, A. Digital filters analysis, design applications, McGraw Hill </li></ul><ul><li>6. Johnson, J.R. Introduction to digital signal processing , PHI </li></ul><ul><li>7. Vanvalkenburg.M.V. Analog filter design, Sanders publishers </li></ul><ul><li>8. Vinay K. Ingle, Proakis, Digital signal processing using MATLAB, Bookware series </li></ul>
  58. 62. <ul><li>9. Sajeeth K. Mithra, Digital signal processing, TMH </li></ul><ul><li>10. V.K. Khanna, Digital signal processing, </li></ul><ul><li>telecommunication, multimedia technology, </li></ul><ul><li>Wheeler publishers </li></ul><ul><li>11. P. Rameshbabu, Digital signal processing, </li></ul><ul><li>Scitech publishers. </li></ul><ul><li>12. Salivana, Digital signal processing, TMH </li></ul>
  59. 63. <ul><li>13. Ifeachor and Jervis, Digital signal </li></ul><ul><li>processing-a practical approach, Addison </li></ul><ul><li>Wesley publishers </li></ul><ul><li>14. Sarkar N. Elements of digital signal </li></ul><ul><li>processing, Kanna publishers </li></ul><ul><li>15. Defetta D.J. Digital signal processing, John </li></ul><ul><li>Wieley publishers </li></ul><ul><li>16. Lyons R.G. Understanding digital signal </li></ul><ul><li>processing,Addition Wesley </li></ul>
  60. 64. <ul><li>17. B. Venkataramani, Digital signal </li></ul><ul><li>processors, TMH </li></ul><ul><li>18. Chapman J. Stephen, MATLAB </li></ul><ul><li>Programming for engineers, Bookware </li></ul><ul><li>Series </li></ul><ul><li>19. Ramachandran.B. Digital signal processing, </li></ul><ul><li>Anuradha publishers </li></ul><ul><li>20. Bose N.K. Digital filters-Theory and applications, </li></ul><ul><li>Elsevier publishers </li></ul><ul><li>21. The Scientist and Engineer's and Guide to Digital Signal Processing by Steven W. Smith.(On line text) </li></ul>
  61. 65. Web References <ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> (On line journal) </li></ul><ul><li> (rice university) </li></ul><ul><li> (lecture on DSP ) </li></ul>
  62. 66. Concluding Remarks <ul><li>The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep. ---- Robert Frost </li></ul><ul><li>GOOD LUCK! </li></ul>