JANUARY 9, DIGITAL SIGNAL PROCESSING Analytical Principles of DSP and Digital Filter Design PRESENTED TO JAGJIT SEHRA

Size: px
Start display at page:

Download "JANUARY 9, DIGITAL SIGNAL PROCESSING Analytical Principles of DSP and Digital Filter Design PRESENTED TO JAGJIT SEHRA"

Transcription

1 JANUARY 9, 2017 DIGITAL SIGNAL PROCESSING Analytical Principles of DSP and Digital Filter Design PRESENTED TO JAGJIT SEHRA BY ZEESHAN MUSTAFA LATIF ANSARI BEng (Hons) Electronics Engineering ID: s

2 Contents Page Numbers Introduction 3 Background 3 Part a Analytical Problems 7 Question 1, Part (i) 7 Question 1, Part (ii) 8 Question 1, Part (iii) 10 Question 1, Part (iv) 13 Proof of results obtained in Q1 (ii) by using a suitable m-file 13 Proof of results obtained in Q1 (iii) by using a suitable m-file 20 Question 2, Part (i) 22 Question 2, Part (ii) 23 Question 2, Part (iii) 24 Question 3, Part (i) 26 Question 3, Part (ii) 27 Question 3, Part (iii) 28 Part b Digital Filter Design using MATLAB and SPTOOL 29 Question 4, Part (i) 29 Question 4, Part (ii) 32 Designing LOW-PASS FIR Filter for Noisy Signal 33 Designing LOW-PASS IIR Filter for Noisy Signal 35 Question 4, Part (iii) 36 Conclusion 39 References 40 Bibliography 41 ID: s Page 2

3 Analytical Principles of DSP and Digital Filter Design Introduction The world of science and engineering is filled with signals DSP refers to various techniques for improving the accuracy and reliability of digital communications Signal processing is the science of understanding the formation of information conveyed as a function of time, space or any other variable Analysing this information requires the acquisition, storage, transmission and transformation of signals Signals can be classified as continuous or analogue, such as speech or discrete, in the form of digital information Basically DSP works by clarifying, or standardizing, the levels or states of a digital signal It is the process of analysing or modifying a signal to optimize or improve its efficiency or performance (Sehra, 2017) As per the title states the assessment is undertaken to analyse and observe the functionalities and complex behaviours of FIR and IIR filters using Matlab software In order to complete this assignment, detailed fundamental knowledge of DSP was acquired including its mathematical techniques for solving equations to design the digital filters Based on the knowledge and skills acquired in Signals and Systems and further in this (DSP) module work was initiated with solving and verifying the equations given in assessment brief Following which the required data and results obtained were implemented into Matlab to analyse, observe and design the digital filters Lastly, theoretical values and results calculated were compared with the values and results which were obtained in Matlab by using suitable program code and relevant software skills Assessment is comprised of two parts; Part A being the Analytical problems had to be solved using various mathematical techniques, learnt throughout the module, then they were plotted and analysed in Matlab Part B being the Digital Filter Design using MATLAB and SPTOOL involved designing and filtering the signals This involved the design of a noisy guitar signal and development of code (m-file) to reduce or totally remove the un-wanted noise from it to produce a clean signal which was also verified by listening both the signals This section also specifies the design requirement if a real-time system was to be employed It ends with discussion on two current DSP developments kits (available in UK) for audio processing Background In the world of communications circuits it is true whether the signals are analogue or digital they always contain some level of noise Noise is said to be the eternal bane of communications engineers who are always striving to find new ways to improve signal-to-noise ratio For this assessment it s important to explain the difference ID: s Page 3

4 between continuous-time, discrete-time and digital signals so that further work can be started (WhatIscom, 2017) A continuous signal or a continuous-time signal is a varying quantity (a signal) whose domain, which is often time, is a continuum (eg, a connected interval of the reals) That is, the function's domain is an uncountable set The function itself need not be continuous On the other hand, a discrete time signal has a countable domain, like the natural numbers A signal of continuous amplitude and time is known as a continuous-time signal or an analogue signal This (a signal) will have some value at every instant of time The electrical signals derived in proportion with the physical quantities such as temperature, pressure, sound etc are generally continuous signals Other examples of continuous signals are sine wave, cosine wave, triangular wave etc Figure 1 shows a typical continuous time signal, function ( ) for the word signal This is a mathematical representation of the signal as a function of time, t, which is refered to as the independent variable Figure 1 continuous time signal, taken from DSP Moodle Discrete-time signals can be considered, as digital signals, where the value of the signal is known at discrete time intervals All that is known about the signal is a sequence of values Both the amplitudes and time can be quantized In other words, the digital value can only take a specified value with a specific range This will depend on the quality of the conversion process of the A/D A digital signal refers to an electrical signal that is converted into a pattern of bits Unlike an analogue signal, which is a continuous signal that contains time-varying quantities, a digital signal has a discrete value at each sampling point Digital signals are discrete time signals generated by digital modulation, computers, CDs, DVDs, and other digital electronic devices (Sehra, 2017) Difference between analogue and digital signal processing The basic difference between analogue and digital signal processing is that analogue signal is a continuous signal which represents physical measurements while digital signals are discrete time signals generated by digital modulation Analog ID: s Page 4

5 waves are smooth and continuous while digital waves are stepping, square and discrete We can have a model of a system, in the context of signal processing Consider the block diagrams shown in figure 2 Figure 2 a) Analogue recording system b) Digital recording system, taken from DSP Moodle Discrete-time signals can be considered, as digital signals, where the value of the signal is known at discrete time intervals All that is known about the signal is a sequence of values Both the amplitudes and time can be quantized In other words, the digital value can only take a specified value with a specific range This will depend on the quality of the conversion process of the A/D Figure 3 shows simply the process of A/D and D/A Figure 3 A/D process, taken from DSP Moodle It should be pointed out that in order to process analogue signals they must be processed first, that is consider a physical quantity, such as sound signal, it must be first captured using some form of transducer or sensor before it can be processed It must be conditioned, to remove any un-wanted signal information, through filtering Once this is complete the analogue to digital process can be done, and the signal can be manipulated, before it is re-converted back to an analogue form, using an anti-aliasing filter, sometimes referred as a low pass filter, to remove the stair case effect of the DAC Figure 4 below shows a block diagram of an ideal system for processing continuous time signal (Sehra, 2017) ID: s Page 5

6 Figure 4 Block diagram for processing continuous time signal, Taken from DSP Moodle The Advantages of DSP 1 It s cost effective Many development kits are available at low cost as well as of industrial standard 2 DSP systems can be designed and tested in a simulation using software tools, which in many cases can guarantee accuracy of systems 3 Complex processing of information which is difficult or sometimes impossible in the analogue domain can be accomplished by digital signal processing Examples are adaptive filtering, where the digital filter can vary or adapt its performance to the characteristics of the signal; another is speech analysis and processing 4 It s reliable and compact 5 DSP systems will work the same, performance can be enhanced depending on the evolution of the hardware/software 6 Multi-processing of information is achieved by DSP Disadvantages of DSP 1 DSP is software driven process, up-dates to systems can only be done by reprogramming for example software driven radio 2 System performance can be reduced Due to an analogue to digital conversion, there are bandwidth requirements, which can lead to loss or quality of information 3 For real-time applications, it requires a good understanding of mathematical techniques to fully implement systems to chip (Sehra, 2017) Applications of DSP Real time applications of DSP are Audio and multimedia, speech processing and recognition, image and video processing, Telecommunications, Computer systems and military systems ID: s Page 6

7 Part a - Analytical Problems Causal systems are those that can be implemented in real hardware also called realisable systems A Function can be a linear but it cannot necessarily be a linear system To be a linear system it must be conforming to homogeneity and superposition Homogeneity is when the input is multiplied by a constant; the output is also multiplied by the same constant Superposition is when the input sequences of two functions are added, their outputs also are added A time invariant system is a system whose output does not depend explicitly on time, it s independent of time (Sehra, 2016) Question 1, Part (i): A causal Linear Time Invariant (LTI) System is given by the function H (Z) below: ( ) ( ) ( ) ( ) ( ) ( ) Determining the Ideal Nyquist Rate of the above input signal (F ): For Ω 40π As Ω 2πf 40π 2πf 20 Hz For Ω 80π As Ω 2πf 80π 2πf 40 Hz ID: s Page 7

8 Nyquist frequency is twice the maximum component frequency of the function being sampled So Nyquist rate 2 x Hz In other words, in order to retain data it is always sampled at twice the highest frequency ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) + 9cos (πn) As found above 0, and π Question 1, Part (ii): Transfer Function Y (Z) [ ] H (Z) ( )( ) where is Unit delay ( ( )) ( ) ( ) So frequency response ( ) [ ] which is Gain of System H ( ) Where Euler s Method θ ± j i θ ID: s Page 8

9 As cosө jsinө When ω 0 Using Euler s Method H (0) ( ) ( ( )( )) ( ( )( )) ( ( )) ( ( )) H ( ) 588 approximately 6 When ω Using Euler s Method H ( ) ( ( ) ( )) ( ( )( ) ( )( )) ( ) ( ) Here, the identity used is j ( ) Here, the identity used is j Then we use the complex number j a + jb which is the magnitude formula in order to get rid of Therefore, H ( ) j 3394 H ( ) 3394 Then in order to find the phase, the formula Ө is applied, hence; ID: s Page 9

10 Ө When ω π Using Euler s Method H (ω) ( ) ( ( ) ( ) ( ) ( )) ( ) ( ) H ( ) 4 ( ) ( ) 4 To determine the ( ) output, all the values of Gain and Phase angles are applied to the original equation given below:- [ ] H ( ) [ ] [ ] 10 + ( ) ( ) Calculated Gains are multiplied to the Gains of the system and then Phase differences are found by subtracting the found phases from the relevant system phases as shown below: [ ] 6 x x 5cos( ) + 4x9( ) [ ] cos( ) + 36( ) For ω 0 and ω π, there are no phase angles so there is no phase difference Question 1, Part (iii): To design the filters, first we need poles and zeroes:- H (Z) ( )( ) 1 0 ID: s Page 10

11 Z Also Z Filter (given below) is designed in Matlab using the poles and zeroes calculated above Figure 5Filter designed, Captured from Matlab ID: s Page 11

12 Figure 5 above represents the design of the filter that was constructed using the utility of the Matlab software (Filter Design and Analysis tool) To start with, a new filter is created using the SPTOOL utility by clicking on the command button New in the Filters column (section) as shown below in Figure 6 Figure 6 Creating Filter, Captured from Matlab After this, for the filter to be designed two poles (represented by x in the figure above) are placed at magnitude of -033 Hz (-1/3 Hz) and at 05 Hz (1/2 Hz) which were calculated above Zero was placed at the origin as shown by a hole in the figure given above Then the analysis parameters were changed to magnitude as can be seen in the figures below For this to happen Analysis panel is clicked and then the Analysis Parameters is selected Magnitude Display is also changed to Magnitude Db for more precise results The gain was taken from the system which was 4 Figure 7 Designing Filter, Captured from Matlab ID: s Page 12

13 Sampling frequency was also changed to 40Hz which was done by clicking the Analysis panel and selecting the option Sampling Frequency Figure 8 Designing Filter, Captured from Matlab All the steps given above were followed to design the filter given in figure Question 1, Part (iv): Proof of results obtained in Q1 (ii) by using a suitable m-file: Signal v v1+v2+v3 Figure 9 (m-file) Matlab code, Captured from Matlab ID: s Page 13

14 To obtain the plot for ( ) ( ) ( ) code given in figure 9 above is developed based on the calculations obtained in part (ii) Plots for individual signals v1 and v2 are also plotted to observe the changes in the signals before and after they were filtered Using the code given above, the graph plotted is shown below: ( ) ( ) ( ) Figure 10 Signal v for x(t), Captured from Matlab Code for plotting signal v1 5*cos(40*pi*t) before it was filtered is given below, following which the plot is also given: ID: s Page 14

15 Figure 11 (m-file) Matlab code and Plot for signal v1, Captured from Matlab Code for plotting signal v2 9*cos(80*pi*t) before it was filtered is given below, following which the plot is also given: Figure 12 (m-file) Matlab code and Plot for signal v2, Captured from Matlab ID: s Page 15

16 Signal v3, m-file code and Plot below shows DC values: Figure 13 Signal v3 - the dc value, Captured from Matlab The signals above were filtered in order to observe the calculated theoretical values with the values represented by the plots of filtered signals To begin with SPTOOL utility was opened, then by clicking on the File tab and then selecting Import another window will be opened Figure 14 Filtering a signal, Captured from Matlab Importation of content was done using the new opened window given below where different signals and frequencies were then selected from the Workspace contents panel ID: s Page 16

17 After pressing OK the content is imported into SPTOOL which follows another window given below: In order to filter the signal, the signal was clicked along with the filter that it would be applied to Then after pressing the Apply button another window Apply Filter opened from where Algorithm named Direct-Form II Transposed was used and pressed OK ID: s Page 17

18 Filtered Signal 1 Figure 15 Filtered Input Signal v1, Captured from Matlab The figure 15 above represents function y[n] 1697cos( ) Figure shows that the results were justified since it s a cosine wave with amplitude of 169 exactly and that was also calculated previously Filtered Signal 2 Figure 16, Filtered input signal v2, Captured from Matlab ID: s Page 18

19 The figure above represents function y[n] 36( ) Figure shows that the results were justified since it s a cosine wave with amplitude of sharp 36 and that is exactly what was also calculated previously Signal value for DC Figure 17 Filtered signal v3 - value of DC, Captured from Matlab Figure 17 above shows filtered value of DC which is 60 as theoretically calculated previously Filtered Output Signal: [ ] cos( ) + 36( ) Figure 18 Filtered output signal v, Captured from Matlab ID: s Page 19

20 The output signal given above represents function [ ] cos( ) + 36( ) It adds up all the signals correctly which was verified by summing the amplitudes together Amplification factor calculated was whereas figure shows and ; both are approximately equal to the original calculated value The slight difference occurs due to the rounding of the numbers which was done in calculating theoretical values Proof of results obtained in Q1 (iii) by using a suitable m-file: After manually working out the poles and zeroes, MatLab code given below in figure 19 is derived using the Frequency response which will do this calculation itself: Figure 19 (m-file) MatLab code for Pole-Zero Map, Captured from Matlab On running the code, pole-zero maps produced in MatLab are given below: ID: s Page 20

21 Figure 20 Pole-Zero Map, Captured from Matlab Pole-zero map given above shows the Pole at Figure above shows Pole at 05 Figure 21 Pole-Zero Map, Captured from Matlab ID: s Page 21

22 Question 2, Part (i): The structure of the FIR filter: [ ] [ [ ] - [ ]] is a difference equation, structure is drawn below: x[n] - 05 y[n] x[n-1] x[n-2] z z FIR Filters and their advantages/disadvantages FIR filters are a type of digital filter with finite impulse response They are also known as non-recursive digital filters because they do not have feedback although recursive algorithms can still be used for FIR filter realization The main advantage of FIR systems is that they are always stable and they can design to yield a linear phase response In order to make linear phase, FIR filter is very simple to make So to do it just linear phase filter delay need to be added but care must be taken not to mislead its phase FIR filters are very easy to run by winding a signal instruction; they can be schemed on DSP micro processing FIR filters are suitable to make low rating for sampling which is called decimations and also make more rating for sampling which is called interpolations They also can be implemented using coefficient of less than 10 magnitude (Guru, 2017) FIR filters offer several advantages over IIR filters: They can easily be designed to be "linear phase" (and usually are) Put simply, linear-phase filters delay the input signal, but don t distort its phase They are simple to implement On most DSP microprocessors, the FIR calculation can be done by looping a single instruction They are suited to multi-rate applications By multi-rate, we mean either "decimation" (reducing the sampling rate), "interpolation" (increasing the sampling rate), or both Whether decimating or interpolating, the use of FIR filters allows some of the calculations to be omitted, thus providing an important computational efficiency In contrast, if IIR filters are used, each ID: s Page 22

23 output must be individually calculated, even if that output is discarded (so the feedback will be incorporated into the filter) They have desirable numeric properties In practice, all DSP filters must be implemented using "finite-precision" arithmetic, that is, a limited number of bits The use of finite-precision arithmetic in IIR filters can cause significant problems due to the use of feedback, but FIR filters have no feedback, so they can usually be implemented by using fewer bits, and the designer has fewer practical problems to solve related to non-ideal arithmetic They can be implemented using fractional arithmetic Unlike IIR filters, it is always possible to implement a FIR filter using coefficients with magnitude of less than 10 (The overall gain of the FIR filter can be adjusted at its output, if desired) This is an important consideration when using fixed-point DSP's, because it makes the implementation much simpler Completely constant group delay throughout the frequency spectrum Complete stability at all frequencies regardless of the size of the filter Can be implemented with fast convolution Relatively insensitive to quantization (Guru, 2017) Disadvantages of FIR Filters In comparing the FIR filters with IIR filters, the FIR filters have less disadvantages but there are some such as they need more memory, to get the applied filter response characteristic similarly to implement to FIR filter some responses are not usual For a given filter specification they require larger degree with respect to IIR filters This is a drawback for FIR The frequency response is not as easily defined as it is with IIR filters The number of states required to meet a frequency specification may be far larger than that required for IIR filters FIR filters sometimes have the disadvantage that they require more memory and/or calculation to achieve a given filter response characteristic Also, certain responses are not practical to implement with FIR filters (Guru, 2017) Question 2, Part (ii): [ ] [ [ ] [ ]] is a difference equation Difference equation can be converted to Transfer Function by taking the Z transform ID: s Page 23

24 Delay in sample time in Frequency Domain becomes the power as shown below:- ( ) [ ] Y (Z) [ ( ) ( ) ] Y (Z) X (Z) X ( ) Y (Z) X ( ) ( ) Transfer Function: - H (Z) So H (Z) ( ) ( ) ( ) Transfer Function H (Z) can now be exchanged with Frequency Response H( ), therefore, is substituted with So ( ) H ( ) is frequency response where represents magnitude and is phase Question 2, Part (iii): As H (Z) ( ), this transfer function is used to find poles and zeroes Highest power of Z is 2 so multiply by ( ) Pole: Z 0 Zero: Z 1, -1 The value of Z that leads denominator to 0 is Pole The value of Z that leads numerator to 0 is Zero Frequency response H (ω) was found out to be:- H (ω) Now to find the type of filter, let s take 3 values of ω as ω 0, ω and ω π ID: s Page 24

25 When ω 0 then:- H ( ) H ( ( ) ) ( ( ) ( )) 0 When ω then:- H ( ( ) ) ( ( ) ( )) ( ) When ω π then:- ( ) 1 H ( ) ( ( ) ( )) ( ) 0 Figure 22, Band Pass Filter Plot So, as shown in the graph above:- When ω 0; H ( ) 0 When ω ; H ( ) 1 When ω π; H ( ) 0 ID: s Page 25

26 Values obtained and the graph drawn proves that it s a Band Pass Filter Question 3, Part (i): [ ] [ ] + [ ] + [ ] Equation above represents IIR (Infinite Impulse Response) Filter which is proven by the structure given below, it has feedback [ ] [ ] + [ ] x[n] + + y[n] z z x[n-1] y[n-1] IIR Filters IIR filters are one of two primary types of digital filters used in Digital Signal Processing (DSP) applications (the other type being FIR) "IIR" means "Infinite Impulse Response The impulse response is "infinite" because there is feedback in the filter; if you put in an impulse (a single "1" sample followed by many "0" samples), an infinite number of non-zero values will come out theoretically (Guru, 2017) Advantages of IIR Filter The advantage of IIR filters over FIR filters is that IIR filters usually require fewer coefficients to execute similar filtering operations, that IIR filters work faster, and require less memory space IIR filters can achieve a given filtering characteristic using less memory and calculations than a similar FIR filter (National, 2017) ID: s Page 26

27 Disadvantages of IIR Filters They are more susceptible to problems of finite-length arithmetic, such as noise generated by calculations, and limit cycles (This is a direct consequence of feedback: when the output isn't computed perfectly and is fed back, the imperfection can compound They are harder (slower) to implement using fixed-point arithmetic They don't offer the computational advantages of FIR filters for multi-rate (decimation and interpolation) applications (Hero, 2017) Question 3, Part (ii): To determine the transfer function H(z) for IIR filter firstly the y[n] will be converted into y[z] and then the terms of y(z) and x(z) will be separated as shown below: [ ] [ ] + [ ] + [ ] Conversion of y[n] into y[z] [ ] ( ) + ( )+ ( ) Now collecting like terms ( ) ( ) ( ) + ( ) Simplifying it (taking the common term out) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) As Transfer Function H ( ) ( ) ( ) So ( ) Now to get frequency response ( ) is exchanged with ( ) and is substituted with Therefore, ( ) ID: s Page 27

28 Transfer Function ( ) Question 3, Part (iii): The transfer function determined above is used to find poles and zeroes of H(Z) Rule states that the value of Z that leads denominator to 0 is Pole and the value of Z that leads numerator to 0 is zero So Z Zero: Z And 1 2Z Pole: Z The result shows then that ; The values of Z are less than 1 and greater than - 1 so it is proved that poles and zeroes are in the unit circle which makes the filter stable ID: s Page 28

29 Part b - Digital Filter Design using MATLAB and SPTOOL This section involves plotting the spectrums of two guitar signals, where one signal is noisy and the other one is clean, then designing the filter, using a suitable m-file, to reduce or totally remove the noise from noisy signal and finally comparing the filtered signal with noisy and clean signals to see the amount of noise reduced or totally removed Additionally if a real-time system was employed a statement will need to be made to specify the requirements of the design To finish it, two current DSP development kits (available in UK) for audio processing will be discussed Question 4, Part (i): Clean Guitar Signal Plot Figure 23 Clean Guitar Signal, Captured from Matlab ID: s Page 29

30 Spectrum view of clean guitar signal Figure 24 Spectrum view of clean guitar signal, Captured from Matlab To draw the above spectrum Parameters were changed to FFT (Fast Fourier Transform) for the Method and NffI value was set to as it s the length of the signal Then using the Options panel (shown below in Figure 25) the Magnitude Scale and the Frequency Scale were set to Linear Frequency Range was also changed to [-Fs/2, Fs/2] Figure 25, Captured from Matlab ID: s Page 30

31 Noisy Guitar Signal Plot Noise Spectrum view of Noisy Guitar Signal Figure 26 Noisy Guitar Signal, Captured from Matlab F 4300Hz F 7400Hz Figure 27 Spectrum view of noisy guitar signal, capture from Matlab ID: s Page 31

32 The spectrum view IN Figure 23 shows that noise occur at frequencies between 4300Hz to 7400 Hz approximately Matlab (m-file) codes used to draw plots of clean and noisy guitar signals: Figure 28 m-file Matlab code, Captured from Matlab Question 4, Part (ii): Noisy Guitar signal Figure 29 Noisy guitar signal, Captured from Matlab ID: s Page 32

33 Designing LOW-PASS FIR Filter for Noisy signal: Figure 30 Design of low-pass filter, Captured from Matlab As shown in the figure 30 above, the Filter is chosen as Lowpass because of its property to allow very low frequencies to pass through until its cutt-off frequenc It also blocks any other higher frequencies that come in contact with it Specifications for this filter were selected from six different panels given below: Response Type: Lowpass Design Method: FIR and Equiripple Filter Order: Minimum order Options: Density Factor chosen to be 20 Frequency Specifications: Units as Hz, Fs as as given in assessment brief, Fpass (the range for which the frequency is allowed to pass into the filter) chosen was 2000 and Fstop (the range of higher frequencies which are not allowed to pass) was chosen to be 4000 Magnitude Specifications: Units as Db, Apass (being passband ripple) was chosen as 1 and Astop (being stopband attenuation) was chosen as 100 Following this the noisy signal was applied into the filter to remove the noise ID: s Page 33

34 Filtered (Low-pass FIR) Signal Figure 31 Filter Signal, Captures from Matlab The signal above represents the noisy signal after it was filtered using the low-pass FIR filter As it can be seen the noise is completely removed and quality of sound (as it was listened) is clean (without any noise) It can be observed that the noise from 0 seconds to 15 seconds is totally removed; it s finally a clean signal FFT Spectrum of Filtered Signal Noise is removed Figure 32 Spectrum of Filtered Signal, Captured from Matlab ID: s Page 34

35 Spectrum view after filtering the noisy signal shows that the noise between 4300 Hz to 7400 Hz is totally eliminated Designing LOW-PASS IIR Filter for Noisy signal: Figure 33 Low-pass IIR Filter Design, Captured from Matlab Filter shown above represents the Low-pass IIR filter design which was designed in order to compare with Low-pass FIR filter design Specifications for this filter were selected from six different panels given below: Response Type: Lowpass Design Method: IIR and Butterworth Filter Order: Minimum order Options: passband Frequency Specifications: Units as Hz, Fs as as given in assessment brief, Fpass (the range for which the frequency is allowed to pass into the filter) chosen was 2500 and Fstop (the range of higher frequencies which are not allowed to pass) was chosen to be 4400 Magnitude Specifications: Units as Db, Apass (being passband ripple) was chosen as 05 and Astop (being stopband attenuation) was chosen as 80 Following this the noisy signal was applied to the filter to remove the noise ID: s Page 35

36 Filtered (Low-pass IIR) Signal Figure 34 Low-pass IIR Filtered Signal, Captured from Matlab Results show that IIR filter is quite decent as it provided very good sound quality when listened When comparing IIR filter with FIR filter they both produce almost the same results, especially while listening, very identical sounds were heard One thing that can be noticed after listening to both signals for a couple of times is that FIR has little better quality over IIR Question 4, Part (iii): Real-Time DSP Real-Time DSP can be defined as a system which uses predefined commands and algorithms to process a signal placed into the input of that system and which computes an outcome at the output of that system in real time The Real-Time DSP kits are normally expensive and they are in an essence, provisional to their application and quality They are available in different sizes, therefore different prices They offer features of eliminating and cancelling noise in smart devices As an example of daily life use of Real-Time DSP, they cancel the noises out in the microphone of a smartphone providing the user the ability to speak without any noise getting in his way DSP system on a Chip (SOCs) operation is used to eliminate the noise which disregards all the noise coming in the microphone Apart from that, Real-Time DSP is also applied on Electro Cardiograms (ECGs) However, Real- Time DSP systems have a lot of limitations regarding their memory, their ID: s Page 36

37 consumption of power, the speed that they require in order to process and also the input bandwidth (Sen M Kuo, 2001) The design considerations needed if a real-time DSP system were employed are as follows:- 1 Processor data bus The width of the processor data bus should be fully utilized unless its usage does not require that It should be connected with the fastest RAM chips that its interface can support Some factors that can affect its efficiency are size and layout of board, power usage, cross talk and reflection etc and these factors should be decided in the beginning of the design phase 2 Shared/Multi Ported RAM In case that multi-processor is being used in the design, their access to shared resources should be reduced RAM is a common resource in multiprocessor designs and it is designed in two ways One is Shared RAM and the other is Dual Ported RAM In case of shared RAM, arbitration logic should be used to control excess usage of processors One will access shared RAM while others are frozen by external READY delayed cycles In DPRAM the arbitration logic is embedded in such a way that no requester s cycle is delayed unless they share the same location It means that both sides can share DPRAM access in parallel without going in wait states 3 Internal RAM usage The size of the internal memory available in most DSPs being used today is not enough for the applications running, so the designer should place the most critical codes like interrupt routines or signal processing algorithms in the internal RAM and less critical codes like configuration or management performance in the external RAM 4 H/W Interrupts There are a number of details that should be kept in mind while designing with H/W interrupts eg what should be the maximum tolerable interrupt latency and the maximum interrupt service routine execution time, is there an interrupt controller for priority resolving or will it be implemented in S/W, is it needed to nest interrupts according to their priority, how frequent the signal be generated and will it be edge or level sensed, how to recover a missed interrupt, what should be maximum tolerable interrupt latency etc 5 Multi Bus Processors For best performance of multi bus processors, the connected devices to the buses should be organized carefully If a slow device is connected to a bus with high speed SDRAMs then when the DMA transfers data from/to this slow ID: s Page 37

38 device, the core will be blocked In order to avoid this problem it should be connected to the other bus In the same way data structures should be organized so as to minimize resource conflict between multi units in the processor 6 Slow Device Interface Slow devices like Flash EPROM should be designed in such a way so as to pipeline the operations eg when the processor wants to program Flash EPROM according to its FSM (Finite State Machine), a good design does not wait for the EPROM to acknowledge the operation, It should do other jobs during this process and check it periodically or be invoked by an interrupt generated based on EPROM condition signals 7 Maximum Cache Utilization As caches are too small for the whole code and data to fit in so they should be designed to minimize the cache misses as much as possible For maximum cache utilization, keep these points in mind The designer should use loops as much as possible for temporal locality, use arrays instead of separate variables for utilizing spatial locality, disable interrupts around loops if appropriate for functionality, divide the loops because the smaller the loop, the better it will fit into cache and achieve high cache hit rate 8 Maximum DMA Utilization Most processors have DMA engines inside as separate units ranging from 1 to 64 DMA channels These DMA engines should be used as much as possible because they have three distinct advantages These advantages are that highly complex DMA engines can organize data in different formats which are useful in serving multi-channel TDMs for speech codecs, moving bulk of data between memory or peripheral in the background and Read/Write data to/from peripheral on synchronous or asynchronous events in the background while core is busy with other tasks 9 Maximum Register Utilization Most of the code execution is carried out through registers So when writing the code in C language, use stack variables instead of accessing directly to variables or structures in RAM, By this method the RAM variables are read only once and then referenced as stack variables so this way there are no more memory accesses This way the compiler function is optimized In short the processor specifications, all the interfaces, communication paths with other cards and processors, function specific chipsets on the card, H/W limitations, and loopholes in the system and specific requirements of the H/W must be taken into consideration for designing real-time DSP system architecture (Serhat KOC, 2017) ID: s Page 38

39 Real-Time DSP Development Kits The first example of Real-Time DSP development kit is the one that is developed by a company named Texas Instruments The primary kit that is going to be described is the TMS320C6748 It is considered to be a robust-low cost kit based on c6748 processor (Texas Instruments, 2012) The salient features that it provides are: It provides software and development kit for digital signal processing advance/improvement regarding audio, biometric applications and more It has a feature of face and fingerprint recognition through embedded analytics which is provided by fast development of apps It has a processor which requires low-power consumption It has a variety of performance, power, peripheral and price due to its scalable platform It provides downloadable and duplicable schematics It has 128-MByte DDR2 SDRAM and 128-MByte NAND Flash memory Also, it has Micro SD/MMC slot and plenty of USB and SD connectors Lastly, it provides the benefit of having a decent amount of peripheral interfaces (Texas, 2017) The second example of Real-Time DSP development kit is Stratix V Edition which is manufactured by Altera This kit provides everything needed to create a FPGA design The kit consists of all necessary software and hardware requirements As per the Altera this kit is compliant of RoHS Stratix V Edition offers to the user the ability of developing and testing PCI Express designs at data rates up to Gen3 This can be done by using the PCIe short card form factor compliant development board It also provides the ability of developing and testing subsystems for DDR3 or QDR II memories In addition, the the user can utilise the high speed mezzanine card (HSMC) connectors in order to interface to more than 35 different HSMCs provided by the Altera partners Lastly, it supports protocols such as Serial RapidlO, 10 Gbps Ethernet, SONET, CPRI, OBSAI and others (Intel, 2017) Conclusion At the end, it can be said that this report developed significant amount of knowledge and skills required for Digital Signal Processing Based on the knowledge and skills gained in the previous module (Signals and Systems) and current module (DSP) this assessment was carried out by solving mathematical problems, following which mathematical techniques were used to implement the calculated theoretical values and then the m-file code was developed into Matlab software to design filters and then to filter noise from the noisy guitar signals Theoretical values and results calculated were compared and analysed with the results and plots were obtained in Matlab (by using suitable program code and relevant software skills) Advantages ID: s Page 39

40 and disadvantages of DSP, FIR and IIR filters were also found out Lastly, design requirements were also specified if a real-time system was to be employed which ended with discussion on two current DSP developments kits (available in UK) for audio processing Conclusion is made preceding findings, problem faced if any, objectives met (by answering questions), thorough knowledge and essential skills developed Although, it was not an easy assessment but hard work and dedication provided very good practice in DSP for a prospective electronic engineer References [1] Sehra, J (2017) Birmingham City University - Sign In [online] Moodlebcuacuk Available at: [Accessed 24 Dec 2016] [2] WhatIscom (2017) What is digital signal processing (DSP)? - Definition from WhatIscom [online] Available at: [Accessed 23 Dec 2016] [3 5] Sehra, J (2017) Birmingham City University - Sign In [online] Moodlebcuacuk Available at: [Accessed 24 Dec 2016] [6] Sehra, J (2016) Birmingham City University - Sign In [online] Moodlebcuacuk Available at: [Accessed 2 Jan 2017] [7 9] Guru, D (2017) FIR Filter FAQ [online] Dspgurucom Available at: [Accessed 20 Dec 2016] [10] Guru, D (2017) IIR Filter Basics dspgurucom [online] Dspgurucom Available at: [Accessed 27 Dec 2016] [11] National, I (2017) IIR Filters and FIR Filters - DIAdem 2012 Help - National Instruments [online] Zonenicom Available at: 01/genmaths/genmaths/calc_filterfir_iir/ [Accessed 22 Dec 2016] [12] Hero, C (2017) In contrast since IIR filters use feedback every input - MARKETING [online] Courseherocom Available at: [Accessed 21 Dec 2016] [13] Kuo, M S (2001) Introduction to Real-Time Digital Signal Processing In: John Wiley and Sons Real-Time Digital Signal processing West Sussex: John Wiley and Sons p1315 [14] Serhat KOC, I (2017) Design considerations for Real-Time with DSP and RISK architecture [online] Eurasip Available at: [Accessed 2 Jan 2017] ID: s Page 40

41 [15] Texas, I (2017) TMS320C6748 DSP Development Kit [online] Texas Instruments Available at: [Accessed 3 Jan 2017] [16] Intel, F (2017) DSP Development Kit, Stratix V Edition [online] Alteracom Available at: [Accessed 4 Jan 2017] Bibliography [1] Rafael Esquivel, (2013) ECE Designing Filters Using MATLab [video] Available at: [Accessed 20 Dec 2016] [2] David Dorran, (2013) filtering in matlab using 'built-in' filter design techniques [video] Available at: XyZeS [Accessed 18 Dec 2016] ID: s Page 41

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters Islamic University of Gaza OBJECTIVES: Faculty of Engineering Electrical Engineering Department Spring-2011 DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters To demonstrate the concept

More information

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing Class Subject Code Subject II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing 1.CONTENT LIST: Introduction to Unit I - Signals and Systems 2. SKILLS ADDRESSED: Listening 3. OBJECTIVE

More information

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3 NH 67, Karur Trichy Highways, Puliyur C.F, 639 114 Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3 IIR FILTER DESIGN Structure of IIR System design of Discrete time

More information

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 Purdue University: ECE438 - Digital Signal Processing with Applications 1 ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 1 Introduction

More information

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab Summary This Lab introduces a number of Matlab functions used to design and test a lowpass IIR filter. As you have seen in the previous lab, Simulink

More information

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet Lecture 10: Summary Taneli Riihonen 16.05.2016 Lecture 10 in Course Book Sanjit K. Mitra, Digital Signal Processing: A Computer-Based Approach, 4th

More information

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit Application Note 097 Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit Introduction The importance of digital filters is well established. Digital filters, and more generally digital

More information

Brief Introduction to Signals & Systems. Phani Chavali

Brief Introduction to Signals & Systems. Phani Chavali Brief Introduction to Signals & Systems Phani Chavali Outline Signals & Systems Continuous and discrete time signals Properties of Systems Input- Output relation : Convolution Frequency domain representation

More information

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters FIR Filter Design Chapter Intended Learning Outcomes: (i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters (ii) Ability to design linear-phase FIR filters according

More information

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Appendix B. Design Implementation Description For The Digital Frequency Demodulator Appendix B Design Implementation Description For The Digital Frequency Demodulator The DFD design implementation is divided into four sections: 1. Analog front end to signal condition and digitize the

More information

Design of FIR Filters

Design of FIR Filters Design of FIR Filters Elena Punskaya www-sigproc.eng.cam.ac.uk/~op205 Some material adapted from courses by Prof. Simon Godsill, Dr. Arnaud Doucet, Dr. Malcolm Macleod and Prof. Peter Rayner 1 FIR as a

More information

CS3291: Digital Signal Processing

CS3291: Digital Signal Processing CS39 Exam Jan 005 //08 /BMGC University of Manchester Department of Computer Science First Semester Year 3 Examination Paper CS39: Digital Signal Processing Date of Examination: January 005 Answer THREE

More information

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications EE4900/EE6720: Digital Communications 1 Lecture 3 Review of Signals and Systems: Part 2 Block Diagrams of Communication System Digital Communication System 2 Informatio n (sound, video, text, data, ) Transducer

More information

ASN Filter Designer Professional/Lite Getting Started Guide

ASN Filter Designer Professional/Lite Getting Started Guide ASN Filter Designer Professional/Lite Getting Started Guide December, 2011 ASN11-DOC007, Rev. 2 For public release Legal notices All material presented in this document is protected by copyright under

More information

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters FIR Filter Design Chapter Intended Learning Outcomes: (i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters (ii) Ability to design linear-phase FIR filters according

More information

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title http://elec3004.com Digital Filters IIR (& Their Corresponding Analog Filters) 2017 School of Information Technology and Electrical Engineering at The University of Queensland Lecture Schedule: Week Date

More information

2) How fast can we implement these in a system

2) How fast can we implement these in a system Filtration Now that we have looked at the concept of interpolation we have seen practically that a "digital filter" (hold, or interpolate) can affect the frequency response of the overall system. We need

More information

Implementation of Decimation Filter for Hearing Aid Application

Implementation of Decimation Filter for Hearing Aid Application Implementation of Decimation Filter for Hearing Aid Application Prof. Suraj R. Gaikwad, Er. Shruti S. Kshirsagar and Dr. Sagar R. Gaikwad Electronics Engineering Department, D.M.I.E.T.R. Wardha email:

More information

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam Date: December 18, 2017 Course: EE 313 Evans Name: Last, First The exam is scheduled to last three hours. Open

More information

Sampling and Reconstruction of Analog Signals

Sampling and Reconstruction of Analog Signals Sampling and Reconstruction of Analog Signals Chapter Intended Learning Outcomes: (i) Ability to convert an analog signal to a discrete-time sequence via sampling (ii) Ability to construct an analog signal

More information

EE25266 ASIC/FPGA Chip Design. Designing a FIR Filter, FPGA in the Loop, Ethernet

EE25266 ASIC/FPGA Chip Design. Designing a FIR Filter, FPGA in the Loop, Ethernet EE25266 ASIC/FPGA Chip Design Mahdi Shabany Electrical Engineering Department Sharif University of Technology Assignment #8 Designing a FIR Filter, FPGA in the Loop, Ethernet Introduction In this lab,

More information

SIGMA-DELTA CONVERTER

SIGMA-DELTA CONVERTER SIGMA-DELTA CONVERTER (1995: Pacífico R. Concetti Western A. Geophysical-Argentina) The Sigma-Delta A/D Converter is not new in electronic engineering since it has been previously used as part of many

More information

Lab 4 Digital Scope and Spectrum Analyzer

Lab 4 Digital Scope and Spectrum Analyzer Lab 4 Digital Scope and Spectrum Analyzer Page 4.1 Lab 4 Digital Scope and Spectrum Analyzer Goals Review Starter files Interface a microphone and record sounds, Design and implement an analog HPF, LPF

More information

Subra Ganesan DSP 1.

Subra Ganesan DSP 1. DSP 1 Subra Ganesan Professor, Computer Science and Engineering Associate Director, Product Development and Manufacturing Center, Oakland University, Rochester, MI 48309 Email: ganesan@oakland.edu Topics

More information

REAL TIME DIGITAL SIGNAL PROCESSING. Introduction

REAL TIME DIGITAL SIGNAL PROCESSING. Introduction REAL TIME DIGITAL SIGNAL Introduction Why Digital? A brief comparison with analog. PROCESSING Seminario de Electrónica: Sistemas Embebidos Advantages The BIG picture Flexibility. Easily modifiable and

More information

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE) Code: 13A04602 R13 B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 (Common to ECE and EIE) PART A (Compulsory Question) 1 Answer the following: (10 X 02 = 20 Marks)

More information

INTRODUCTION DIGITAL SIGNAL PROCESSING

INTRODUCTION DIGITAL SIGNAL PROCESSING INTRODUCTION TO DIGITAL SIGNAL PROCESSING by Dr. James Hahn Adjunct Professor Washington University St. Louis 1/22/11 11:28 AM INTRODUCTION Purpose/objective of the course: To provide sufficient background

More information

Digital Filters FIR and IIR Systems

Digital Filters FIR and IIR Systems Digital Filters FIR and IIR Systems ELEC 3004: Systems: Signals & Controls Dr. Surya Singh (Some material adapted from courses by Russ Tedrake and Elena Punskaya) Lecture 16 elec3004@itee.uq.edu.au http://robotics.itee.uq.edu.au/~elec3004/

More information

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals Analogue Interfacing What is a signal? Signal: Function of one or more independent variable(s) such as space or time Examples include images and speech Continuous vs. Discrete Time Continuous time signals

More information

SCUBA-2. Low Pass Filtering

SCUBA-2. Low Pass Filtering Physics and Astronomy Dept. MA UBC 07/07/2008 11:06:00 SCUBA-2 Project SC2-ELE-S582-211 Version 1.3 SCUBA-2 Low Pass Filtering Revision History: Rev. 1.0 MA July 28, 2006 Initial Release Rev. 1.1 MA Sept.

More information

AutoBench 1.1. software benchmark data book.

AutoBench 1.1. software benchmark data book. AutoBench 1.1 software benchmark data book Table of Contents Angle to Time Conversion...2 Basic Integer and Floating Point...4 Bit Manipulation...5 Cache Buster...6 CAN Remote Data Request...7 Fast Fourier

More information

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 SMS045 - DSP Systems in Practice Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 Lab Purpose This lab will introduce MATLAB as a tool for designing and evaluating digital

More information

Multirate DSP, part 3: ADC oversampling

Multirate DSP, part 3: ADC oversampling Multirate DSP, part 3: ADC oversampling Li Tan - May 04, 2008 Order this book today at www.elsevierdirect.com or by calling 1-800-545-2522 and receive an additional 20% discount. Use promotion code 92562

More information

EE 422G - Signals and Systems Laboratory

EE 422G - Signals and Systems Laboratory EE 422G - Signals and Systems Laboratory Lab 3 FIR Filters Written by Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 September 19, 2015 Objectives:

More information

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10 Digital Signal Processing VO Embedded Systems Engineering Armin Wasicek WS 2009/10 Overview Signals and Systems Processing of Signals Display of Signals Digital Signal Processors Common Signal Processing

More information

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters Date: 19. Jul 2018 Pre-Lab: You should read the Pre-Lab section of

More information

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters (ii) Ability to design lowpass IIR filters according to predefined specifications based on analog

More information

Advanced Digital Signal Processing Part 5: Digital Filters

Advanced Digital Signal Processing Part 5: Digital Filters Advanced Digital Signal Processing Part 5: Digital Filters Gerhard Schmidt Christian-Albrechts-Universität zu Kiel Faculty of Engineering Institute of Electrical and Information Engineering Digital Signal

More information

EE 470 Signals and Systems

EE 470 Signals and Systems EE 470 Signals and Systems 9. Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah Textbook Luis Chapparo, Signals and Systems Using Matlab, 2 nd ed., Academic Press, 2015. Filters

More information

Multirate Digital Signal Processing

Multirate Digital Signal Processing Multirate Digital Signal Processing Basic Sampling Rate Alteration Devices Up-sampler - Used to increase the sampling rate by an integer factor Down-sampler - Used to increase the sampling rate by an integer

More information

ECE 429 / 529 Digital Signal Processing

ECE 429 / 529 Digital Signal Processing ECE 429 / 529 Course Policy & Syllabus R. N. Strickland SYLLABUS ECE 429 / 529 Digital Signal Processing SPRING 2009 I. Introduction DSP is concerned with the digital representation of signals and the

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1 The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1 Date: October 18, 2013 Course: EE 445S Evans Name: Last, First The exam is scheduled to last 50 minutes. Open books

More information

Introduction to Real-Time Digital Signal Processing

Introduction to Real-Time Digital Signal Processing Real-Time Digital Signal Processing. Sen M Kuo, Bob H Lee Copyright # 2001 John Wiley & Sons Ltd ISBNs: 0-470-84137-0 Hardback); 0-470-84534-1 Electronic) 1 Introduction to Real-Time Digital Signal Processing

More information

Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design

Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design SMJE3163 DSP2016_Week1-04 Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design 1) Signals, Systems, and DSP 2) DSP system configuration 3)

More information

Experiment 2 Effects of Filtering

Experiment 2 Effects of Filtering Experiment 2 Effects of Filtering INTRODUCTION This experiment demonstrates the relationship between the time and frequency domains. A basic rule of thumb is that the wider the bandwidth allowed for the

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2 Signal Processing for Speech Applications - Part 2-1 Signal Processing For Speech Applications - Part 2 May 14, 2013 Signal Processing for Speech Applications - Part 2-2 References Huang et al., Chapter

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

MULTIRATE IIR LINEAR DIGITAL FILTER DESIGN FOR POWER SYSTEM SUBSTATION

MULTIRATE IIR LINEAR DIGITAL FILTER DESIGN FOR POWER SYSTEM SUBSTATION MULTIRATE IIR LINEAR DIGITAL FILTER DESIGN FOR POWER SYSTEM SUBSTATION Riyaz Khan 1, Mohammed Zakir Hussain 2 1 Department of Electronics and Communication Engineering, AHTCE, Hyderabad (India) 2 Department

More information

DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS

DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS Item Type text; Proceedings Authors Hicks, William T. Publisher International Foundation for Telemetering Journal International Telemetering Conference Proceedings

More information

Performance Analysis of FIR Digital Filter Design Technique and Implementation

Performance Analysis of FIR Digital Filter Design Technique and Implementation Performance Analysis of FIR Digital Filter Design Technique and Implementation. ohd. Sayeeduddin Habeeb and Zeeshan Ahmad Department of Electrical Engineering, King Khalid University, Abha, Kingdom of

More information

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b Exam 1 February 3, 006 Each subquestion is worth 10 points. 1. Consider a periodic sawtooth waveform x(t) with period T 0 = 1 sec shown below: (c) x(n)= u(n). In this case, show that the output has the

More information

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR 22 CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR 2.1 INTRODUCTION A CI is a device that can provide a sense of sound to people who are deaf or profoundly hearing-impaired. Filters

More information

Digital Filters Using the TMS320C6000

Digital Filters Using the TMS320C6000 HUNT ENGINEERING Chestnut Court, Burton Row, Brent Knoll, Somerset, TA9 4BP, UK Tel: (+44) (0)278 76088, Fax: (+44) (0)278 76099, Email: sales@hunteng.demon.co.uk URL: http://www.hunteng.co.uk Digital

More information

Advanced AD/DA converters. ΔΣ DACs. Overview. Motivations. System overview. Why ΔΣ DACs

Advanced AD/DA converters. ΔΣ DACs. Overview. Motivations. System overview. Why ΔΣ DACs Advanced AD/DA converters Overview Why ΔΣ DACs ΔΣ DACs Architectures for ΔΣ DACs filters Smoothing filters Pietro Andreani Dept. of Electrical and Information Technology Lund University, Sweden Advanced

More information

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100 The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1 Date: March 8, 2013 Course: EE 445S Evans Name: Last, First The exam is scheduled to last 50 minutes. Open books

More information

Microcomputer Systems 1. Introduction to DSP S

Microcomputer Systems 1. Introduction to DSP S Microcomputer Systems 1 Introduction to DSP S Introduction to DSP s Definition: DSP Digital Signal Processing/Processor It refers to: Theoretical signal processing by digital means (subject of ECE3222,

More information

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems. PROBLEM SET 6 Issued: 2/32/19 Due: 3/1/19 Reading: During the past week we discussed change of discrete-time sampling rate, introducing the techniques of decimation and interpolation, which is covered

More information

Keywords: Adaptive filtering, LMS algorithm, Noise cancellation, VHDL Design, Signal to noise ratio (SNR), Convergence Speed.

Keywords: Adaptive filtering, LMS algorithm, Noise cancellation, VHDL Design, Signal to noise ratio (SNR), Convergence Speed. Implementation of Efficient Adaptive Noise Canceller using Least Mean Square Algorithm Mr.A.R. Bokey, Dr M.M.Khanapurkar (Electronics and Telecommunication Department, G.H.Raisoni Autonomous College, India)

More information

Performance Analysis of FIR Filter Design Using Reconfigurable Mac Unit

Performance Analysis of FIR Filter Design Using Reconfigurable Mac Unit Volume 4 Issue 4 December 2016 ISSN: 2320-9984 (Online) International Journal of Modern Engineering & Management Research Website: www.ijmemr.org Performance Analysis of FIR Filter Design Using Reconfigurable

More information

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1) Lecture 5 1.8.1 FIR Filters FIR filters have impulse responses of finite lengths. In FIR filters the present output depends only on the past and present values of the input sequence but not on the previous

More information

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal. 1 2.1 BASIC CONCEPTS 2.1.1 Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal. 2 Time Scaling. Figure 2.4 Time scaling of a signal. 2.1.2 Classification of Signals

More information

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback PURPOSE This lab will introduce you to the laboratory equipment and the software that allows you to link your computer to the hardware.

More information

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu Concordia University Discrete-Time Signal Processing Lab Manual (ELEC442) Course Instructor: Dr. Wei-Ping Zhu Fall 2012 Lab 1: Linear Constant Coefficient Difference Equations (LCCDE) Objective In this

More information

Mel Spectrum Analysis of Speech Recognition using Single Microphone

Mel Spectrum Analysis of Speech Recognition using Single Microphone International Journal of Engineering Research in Electronics and Communication Mel Spectrum Analysis of Speech Recognition using Single Microphone [1] Lakshmi S.A, [2] Cholavendan M [1] PG Scholar, Sree

More information

CHAPTER. delta-sigma modulators 1.0

CHAPTER. delta-sigma modulators 1.0 CHAPTER 1 CHAPTER Conventional delta-sigma modulators 1.0 This Chapter presents the traditional first- and second-order DSM. The main sources for non-ideal operation are described together with some commonly

More information

Experiment 6: Multirate Signal Processing

Experiment 6: Multirate Signal Processing ECE431, Experiment 6, 2018 Communications Lab, University of Toronto Experiment 6: Multirate Signal Processing Bruno Korst - bkf@comm.utoronto.ca Abstract In this experiment, you will use decimation and

More information

Discrete-Time Signal Processing (DTSP) v14

Discrete-Time Signal Processing (DTSP) v14 EE 392 Laboratory 5-1 Discrete-Time Signal Processing (DTSP) v14 Safety - Voltages used here are less than 15 V and normally do not present a risk of shock. Objective: To study impulse response and the

More information

Coming to Grips with the Frequency Domain

Coming to Grips with the Frequency Domain XPLANATION: FPGA 101 Coming to Grips with the Frequency Domain by Adam P. Taylor Chief Engineer e2v aptaylor@theiet.org 48 Xcell Journal Second Quarter 2015 The ability to work within the frequency domain

More information

Multirate DSP, part 1: Upsampling and downsampling

Multirate DSP, part 1: Upsampling and downsampling Multirate DSP, part 1: Upsampling and downsampling Li Tan - April 21, 2008 Order this book today at www.elsevierdirect.com or by calling 1-800-545-2522 and receive an additional 20% discount. Use promotion

More information

Lecture Schedule: Week Date Lecture Title

Lecture Schedule: Week Date Lecture Title http://elec3004.org Sampling & More 2014 School of Information Technology and Electrical Engineering at The University of Queensland Lecture Schedule: Week Date Lecture Title 1 2-Mar Introduction 3-Mar

More information

SAMPLING AND RECONSTRUCTING SIGNALS

SAMPLING AND RECONSTRUCTING SIGNALS CHAPTER 3 SAMPLING AND RECONSTRUCTING SIGNALS Many DSP applications begin with analog signals. In order to process these analog signals, the signals must first be sampled and converted to digital signals.

More information

Design Implementation Description for the Digital Frequency Oscillator

Design Implementation Description for the Digital Frequency Oscillator Appendix A Design Implementation Description for the Frequency Oscillator A.1 Input Front End The input data front end accepts either analog single ended or differential inputs (figure A-1). The input

More information

DIGITAL SIGNAL PROCESSING WITH VHDL

DIGITAL SIGNAL PROCESSING WITH VHDL DIGITAL SIGNAL PROCESSING WITH VHDL GET HANDS-ON FROM THEORY TO PRACTICE IN 6 DAYS MODEL WITH SCILAB, BUILD WITH VHDL NUMEROUS MODELLING & SIMULATIONS DIRECTLY DESIGN DSP HARDWARE Brought to you by: Copyright(c)

More information

LLRF4 Evaluation Board

LLRF4 Evaluation Board LLRF4 Evaluation Board USPAS Lab Reference Author: Dmitry Teytelman Revision: 1.1 June 11, 2009 Copyright Dimtel, Inc., 2009. All rights reserved. Dimtel, Inc. 2059 Camden Avenue, Suite 136 San Jose, CA

More information

FIR Filter for Audio Signals Based on FPGA: Design and Implementation

FIR Filter for Audio Signals Based on FPGA: Design and Implementation American Scientific Research Journal for Engineering, Technology, and Sciences (ASRJETS) ISSN (Print) 2313-4410, ISSN (Online) 2313-4402 Global Society of Scientific Research and Researchers http://asrjetsjournal.org/

More information

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011 Islamic University of Gaza Faculty of Engineering Electrical Engineering Department Spring-2011 DSP Laboratory (EELE 4110) Lab#4 Sampling and Quantization OBJECTIVES: When you have completed this assignment,

More information

Signal Processing Summary

Signal Processing Summary Signal Processing Summary Jan Černocký, Valentina Hubeika {cernocky,ihubeika}@fit.vutbr.cz DCGM FIT BUT Brno, ihubeika@fit.vutbr.cz FIT BUT Brno Signal Processing Summary Jan Černocký, Valentina Hubeika,

More information

Digital Signal Processing of Speech for the Hearing Impaired

Digital Signal Processing of Speech for the Hearing Impaired Digital Signal Processing of Speech for the Hearing Impaired N. Magotra, F. Livingston, S. Savadatti, S. Kamath Texas Instruments Incorporated 12203 Southwest Freeway Stafford TX 77477 Abstract This paper

More information

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS. Lecture 8 Today: Announcements: References: FIR filter design IIR filter design Filter roundoff and overflow sensitivity Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations

More information

F I R Filter (Finite Impulse Response)

F I R Filter (Finite Impulse Response) F I R Filter (Finite Impulse Response) Ir. Dadang Gunawan, Ph.D Electrical Engineering University of Indonesia The Outline 7.1 State-of-the-art 7.2 Type of Linear Phase Filter 7.3 Summary of 4 Types FIR

More information

DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0

DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0 (Digital Signal Processing Tools) Indian Institute of Technology Roorkee, Roorkee DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0 A Guide that will help you to perform various DSP functions, for a course in

More information

System on a Chip. Prof. Dr. Michael Kraft

System on a Chip. Prof. Dr. Michael Kraft System on a Chip Prof. Dr. Michael Kraft Lecture 5: Data Conversion ADC Background/Theory Examples Background Physical systems are typically analogue To apply digital signal processing, the analogue signal

More information

Signals and Systems Lecture 6: Fourier Applications

Signals and Systems Lecture 6: Fourier Applications Signals and Systems Lecture 6: Fourier Applications Farzaneh Abdollahi Department of Electrical Engineering Amirkabir University of Technology Winter 2012 arzaneh Abdollahi Signal and Systems Lecture 6

More information

Signal Processing Toolbox

Signal Processing Toolbox Signal Processing Toolbox Perform signal processing, analysis, and algorithm development Signal Processing Toolbox provides industry-standard algorithms for analog and digital signal processing (DSP).

More information

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 16, 2006 1 Continuous vs. Discrete

More information

ELEC3104: Digital Signal Processing Session 1, 2013

ELEC3104: Digital Signal Processing Session 1, 2013 ELEC3104: Digital Signal Processing Session 1, 2013 The University of New South Wales School of Electrical Engineering and Telecommunications LABORATORY 4: DIGITAL FILTERS INTRODUCTION In this laboratory,

More information

Laboratory Assignment 1 Sampling Phenomena

Laboratory Assignment 1 Sampling Phenomena 1 Main Topics Signal Acquisition Audio Processing Aliasing, Anti-Aliasing Filters Laboratory Assignment 1 Sampling Phenomena 2.171 Analysis and Design of Digital Control Systems Digital Filter Design and

More information

Lesson 7. Digital Signal Processors

Lesson 7. Digital Signal Processors Lesson 7 Digital Signal Processors Instructional Objectives After going through this lesson the student would learn o Architecture of a Real time Signal Processing Platform o Different Errors introduced

More information

The Design and Simulation of Embedded FIR Filter based on FPGA and DSP Builder

The Design and Simulation of Embedded FIR Filter based on FPGA and DSP Builder Research Journal of Applied Sciences, Engineering and Technology 6(19): 3489-3494, 2013 ISSN: 2040-7459; e-issn: 2040-7467 Maxwell Scientific Organization, 2013 Submitted: August 09, 2012 Accepted: September

More information

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals Gerhard Schmidt Christian-Albrechts-Universität zu Kiel Faculty of Engineering Institute of Electrical Engineering

More information

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Continuous vs. Discrete signals CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 22,

More information

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling Note: Printed Manuals 6 are not in Color Objectives This chapter explains the following: The principles of sampling, especially the benefits of coherent sampling How to apply sampling principles in a test

More information

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Tamara Smyth, trsmyth@ucsd.edu Department of Music, University of California, San Diego October 3, 2016 1 Continuous vs. Discrete signals

More information

Laboratory Assignment 4. Fourier Sound Synthesis

Laboratory Assignment 4. Fourier Sound Synthesis Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series

More information

Digital Signal Processing

Digital Signal Processing Digital Signal Processing System Analysis and Design Paulo S. R. Diniz Eduardo A. B. da Silva and Sergio L. Netto Federal University of Rio de Janeiro CAMBRIDGE UNIVERSITY PRESS Preface page xv Introduction

More information

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM Item Type text; Proceedings Authors Rosenthal, Glenn K. Publisher International Foundation for Telemetering Journal International Telemetering Conference

More information

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar Biomedical Signals Signals and Images in Medicine Dr Nabeel Anwar Noise Removal: Time Domain Techniques 1. Synchronized Averaging (covered in lecture 1) 2. Moving Average Filters (today s topic) 3. Derivative

More information

Developer Techniques Sessions

Developer Techniques Sessions 1 Developer Techniques Sessions Physical Measurements and Signal Processing Control Systems Logging and Networking 2 Abstract This session covers the technologies and configuration of a physical measurement

More information