1 / 53

Digital Signal Processing

PALESTINE TECHNICAL COLLEGE. Digital Signal Processing. Eng. Akram Abu Garad. www.ptcdb.edu.ps. Digital Signal Processing. Chapter 2 - Discrete-Time Signals & Systems. (PART II). Discrete-Time Signals. Discrete-Time Systems. Analysis of DT Linear Invariant Systems.

Download Presentation

Digital Signal Processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PALESTINE TECHNICAL COLLEGE Digital Signal Processing Eng. Akram Abu Garad www.ptcdb.edu.ps

  2. Digital Signal Processing Chapter 2 - Discrete-Time Signals & Systems (PART II) • Discrete-Time Signals. • Discrete-Time Systems. • Analysis of DT Linear Invariant Systems. • Implementation of DT Systems.

  3. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems In this section we will analyze the Linear Time-Invariant (LTI) systems. 2.3.1. System Analysis Techniques: • Two methods are presented in for analyzing the response of a system to a given input: • Direct Solution of the Input-Output Equation (or difference equation). • Signal Decomposition (Convolution).

  4. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: • System Input output equation: The general input output equation for any system: where F[ ] denotes some functions of the quantities. We can rewrite the general input output equation as where ak and bk are constant parameters If the system is casual L = 0, so the equation: Note that both a and b vary with time This system is linear , time-variant system. This system called Adaptive Linear System.

  5. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: Linear Time-Invariant (LTI) Systems: If a and b are constant over time, then the previous equation further simplifies into the general equation for causal, Linear, Time-Invariant (LTI) Systems: Note: ak and bk are independent of time (n) or simply constant for all time n. Input, Output Equation is called Difference Equation. The order for the LTI system is N.

  6. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: System Interconnections: y1(n) = T1{x(n)} y(n) = T2{y1(n)} = T2{T1{x(n)}} Cascade Tc = T2T1 ≠ T1T2 Specifically, for LTI Systems: T2T1 = T1T2 y1(n) = T1{x(n)} y2(n) = T2{x(n)} y3(n) = y1(n)+y2(n) = T1{x(n)} + T2{x(n)} Parallel y(n) = (T2 + T1)x(n) Tp = (T2 + T1)

  7. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: Non-linear Difference Equation: Difference Equations can also describe non linear systems:

  8. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: • Signal Decomposition: Decompose input into weighted basis functions: Generally we choose the basis functions and compute Ck. Decomposition to Impulses: Decompose input sequence to sum of unit samples. Consider

  9. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems 2.3.1. System Analysis Techniques: Decomposition to Impulses: We can write the following equation for the previous expression: In general form where

  10. 2 T y(n) x(n) Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Convolution Summation: Consider the following system: Recall input can be decomposedas follows: Therefore: If Tsystem is Linear: Impulse Response: Useless, infinite set of responses:(dependent on both n and k)

  11. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Convolution Summation: Impulse Response Note – if system is time invariant and Therefore For LTI systems, the convolution sum is as follows:

  12. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Convolution Summation Calculation: • Graphical method: • To calculate y(n0) using the convolution summation, do the following steps: • Folding: Fold h(k) about k = 0 to obtain h(-k). • Shifting: Shift h(-k) by n0 to the right (left) if n0 is positive (negative), to obtain h(n0 –k) • Multiplication: Multiply x(k) by h(n0 –k) to obtain the product sequence x(k)h(n0 –k) • Summation: Sum all the values of the product sequence x(k)h(n0 –k) to obtain the value of the output at time n = n0

  13. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Graphical Convolution Example Consider the following input and impulse response Input Sequence Impulse Response

  14. Discrete-Time Signals & Systems 2 Digital Signal Processing 2.3. Analysis of DT Linear Invariant Systems Graphical Convolution Example Cont. Folded Impulse Shifted Impulse

  15. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Graphical Convolution Example Cont. Multiply input by folded shifted h(n): Product Sequence – x(k)h(n-k): Sum of Product Sequence:

  16. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Mathematical Convolution Example Consider the following input and impulse response x(n) = [5 ,2 , 4 , -1] h(n) = [5 , 2 , 4 , -1] y(n) = [25, 20 , 44 , 6 , 12 , -8 , 1] Note:The convolution of two FINITE-LENGTH sequences is that if x(n) is of length L1 and h(n) is of length L2 , y(n) = x(n)*h(n) will be of length : L = L1 + L2 -1

  17. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Convolution Properties Convolution Symbol: Convolution is Commutative: Convolution is Distributive: Convolution is Associative:

  18. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Useful Geometric Summation Formulas

  19. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Causal Linear Time-Invariant Systems • An LTI system is Causal IFF its impulse response is 0 for negative values of n. • Convolution sum for Causal, LTI system reduces to the following: • Also, for Causal LTI: • If the input is Causal, LTI system is Causal then the Convolution further simplifies to:

  20. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Causal Linear Time-Invariant Systems Another way of examining Causal LTI Difference Equation • If Future Inputs are not needed then Causal LTI system reduces as follows: For causality, the reference to future inputs must be equal to 0, or simply there must not be future inputs existent in the system’s difference equation. Then for the causal system the original equation can be rewritten: If k is negative then x(n-k) corresponds to future input references Therefore:

  21. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Non-Causal Systems Non Causal systems will produce an output BEFORE the input is applied. Consider the following non-causal equation: If the input is applied at n=0, then at n= -1, we already have an output (before the input is applied): The output of course is dependant on a future input (which does not make much sense in real time implementations).

  22. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Stability of Linear Time-Invariant Systems • BIBO Stable Defined as: • For all bounded inputs x(n), the outputs y(n) are bounded if the system is BIBO stable: • and • Where __ and __ are finite numbers • Reminder – Triangular or Schwartz Inequality:

  23. 2 T x(n) y(n)=T{x(n)} Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Stability of Linear Time-Invariant Systems • Consider the following system: • Note the output is defined as follows: • Assume the input is stable: • The above can then be rewritten as follows: • Therefore:

  24. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Stability of Linear Time-Invariant Systems • Now, if the system T is stable then the following holds true: • Multiplying both sides and further simplifying: • Defining new finite integer: • Therefore if the system T is stable and the input is bounded, then the following relation must be true:

  25. Discrete-Time Signals & Systems Therefore a stable system’s impulse response is absolutely summable: That summation may go to infinity (the system will be unstable) if any of the following occur: The Summation is Infinite and does not converge The Summation is finite but contains at least one term which is infinite If a system is FIR of length N then h(n) is absolutely summable (stable): assuming for all n 2 Digital Signal Processing 2.3. Analysis of DT Linear Invariant Systems Stability of Linear Time-Invariant Systems

  26. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems System with Finite Duration & Infinite Duration Impulse Response: If impulse response, h(n), is of finite length, then the system is categorized as finite impulse response – FIR • Causal FIR System If impulse response, h(n), is of infinite length, then the system is categorized as infinite impulse response – IIR

  27. Recursive systems use previous outputs to compute present output: 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems • Non-recursive systems do NOT use previous outputs to compute present output:

  28. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Difference Equations: LTI System is characterized by a linear Constant-Coefficient difference equation (LCCDE): Order of difference equation is N Example: n=0 Order: N=2 Mathematical Initial Conditions: and

  29. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Difference Equations: For a given difference equation, there exists as many initial conditions as the order of the difference equation (N initial conditions for a difference equation of order N). • Output sequence computed recursively: n = 1 n = 2 n = 3 etc.

  30. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Difference Equations: Linear Constant-Coefficient difference equation (LCCDE): Total Solution: The procedure for computing the solution of LCCDE is: yh(n) is the homogenous solution yp(n) is the particular solution

  31. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Difference Equations: The Homogenous Solution: Now set input x(n) = 0 where λis constant to be determined. Assume exponential solution: Make substitutions into D.E.: or

  32. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems The Homogenous Solution: • From the previous: • The polynomial in parenthesis is called characteristic polynomial Has N roots: • In practice, typically coefficients (a1,a2,…….aN) are real. The general form of the homogenous solution is:

  33. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Recursive Difference Equations Stability: Assuming N-distinct roots, the homogeneous solution is written as: If For as then all the roots must satisfy the following relation:

  34. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems • Consider: • Assume an exponential solution: • Where __ is a constant to be determined • Plug into difference equation: • Note above must = 0 (input = 0) • Factor: Recursive Difference Equations Stability Example:

  35. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems • Characteristic Equation: • Eliminate Fractions: • Quadratic Equation: • Solution: • Our Example: Recursive Difference Equations Stability Example:

  36. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems • Two Solutions: • The Solution is Linear Combination of two solutions: • Note C1 and C2 are arbitrary constants computed from initial conditions Recursive Difference Equations Stability Example:

  37. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems • homogeneous solution • If • If • For  • System is stable Recursive Difference Equations Stability Example:

  38. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems The Particular Solution: The particular solution yp(n) is required to satisfy the DE for the specificinput signal x(n), n>0: For example if x(n) = anu(n) the particular solution will be in the form:

  39. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems The Particular Solution: The particular solution to a DE for different several inputs:

  40. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Example: Determine the total solution for n ≥ 0 of a DT system characterized by the following difference equation: For x(n) = u(n) assuming the initial conditions of y(-1) = 1 and y(-2) = 0. Solution: Particular solution: For x(n) = u(n) Substitute this solution into the DE

  41. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Example: (cont.) Homogenous solution: set substitute then The homogenous solution

  42. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Example: (cont.) Total Solution: The total solution is: at n = 0 and n = 1 The solution is:

  43. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Difference Equations: Zero-Input & Zero-State Response: An alternate approach to determining the total solution of DE. yzi(n) : zero-input response yzs(n) : zero-state response • yzi(n) is obtained by solving DE by setting the input x(n) = 0. • yzs(n) is obtained by solving DE by applying the specified input with all initial conditions set to zero (0).

  44. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Determining Impulse Response: • Given a LTI system in the form of a difference equation, • For LTI Systems: • For input:

  45. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Case 1 – Non Recursive Systems • For unit impulse input, output: • For non recursive system: • Expanding above: • Impulse Response: • Impulse Response: • Length = M+L+1 (FIR) Impulse response is same as coefficients in difference equation

  46. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.3. Analysis of DT Linear Invariant Systems Case 2 – Recursive Systems • Procedure for finding Impulse Response given recursive difference equation: • Find Homogeneous Solution: and compute let

  47. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.4. implementation of DT Systems Structure for the Realization of LTI Systems: Here, the LCCDE structure for the realization of systems is described, additional structures for these system will introduce in later chapters. Consider the first-order system: Direct Form I Structure

  48. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.4. implementation of DT Systems Structure for the Realization of LTI Systems: The previous system can be viewed as 2 LTI systems in cascade, the first is a non-recursive system described by the equation: Whereas the second is a recursive system described by the equation:

  49. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.4. implementation of DT Systems Structure for the Realization of LTI Systems: If we interchange the order of the recursive and non-recursive systems, we obtain an alternative structure for the realization of the system described previously:

  50. 2 Digital Signal Processing Discrete-Time Signals & Systems 2.4. implementation of DT Systems Structure for the Realization of LTI Systems: Minimizing the 2 delay in the structure form I to 1 delay in structure form II. Direct Form II Structure

More Related