lecture 13 block diagrams and the inverse z transform
play

Lecture 13: Block Diagrams and the Inverse Z Transform Mark - PowerPoint PPT Presentation

Review Block Diagrams Inverse Z Summary Lecture 13: Block Diagrams and the Inverse Z Transform Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020 Review Block Diagrams Inverse Z Summary Review: FIR and IIR Filters, and


  1. Review Block Diagrams Inverse Z Summary Lecture 13: Block Diagrams and the Inverse Z Transform Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020

  2. Review Block Diagrams Inverse Z Summary Review: FIR and IIR Filters, and System Functions 1 The System Function and Block Diagrams 2 Inverse Z Transform 3 Summary 4

  3. Review Block Diagrams Inverse Z Summary Outline Review: FIR and IIR Filters, and System Functions 1 The System Function and Block Diagrams 2 Inverse Z Transform 3 Summary 4

  4. Review Block Diagrams Inverse Z Summary Review: FIR and IIR Filters An autoregressive filter is also called infinite impulse response (IIR) , because h [ n ] has infinite length. A filter with only feedforward coefficients, and no feedback coefficients, is called finite impulse response (FIR) , because h [ n ] has finite length (its length is just the number of feedforward terms in the difference equation).

  5. Review Block Diagrams Inverse Z Summary Summary: Poles and Zeros A first-order autoregressive filter, y [ n ] = x [ n ] + bx [ n − 1] + ay [ n − 1] , has the impulse response and transfer function h [ n ] = a n u [ n ] + ba n − 1 u [ n − 1] ↔ H ( z ) = 1 + bz − 1 1 − az − 1 , where a is called the pole of the filter, and − b is called its zero .

  6. Review Block Diagrams Inverse Z Summary Outline Review: FIR and IIR Filters, and System Functions 1 The System Function and Block Diagrams 2 Inverse Z Transform 3 Summary 4

  7. Review Block Diagrams Inverse Z Summary Why use block diagrams? A first-order difference equation looks like y [ n ] = b 0 x [ n ] + b 1 x [ n − 1] + ay [ n − 1] It’s pretty easy to understand what computation is taking place in a first-order difference equation. As we get to higher-order systems, though, the equations for implementing them will be kind of complicated. In order to make the complicated equations very easy, we represent the equations using block diagrams.

  8. Review Block Diagrams Inverse Z Summary Elements of a block diagram A block diagram has just three main element types: 1 Multiplier: the following element means y [ n ] = b 0 x [ n ]: b 0 x [ n ] y [ n ] 2 Unit Delay: the following element means y [ n ] = x [ n − 1] (i.e., Y ( z ) = z − 1 X ( z )): x [ n ] z − 1 y [ n ] 3 Adder: the following element means z [ n ] = x [ n ] + y [ n ]: x [ n ] y [ n ] z [ n ]

  9. Review Block Diagrams Inverse Z Summary Example: Time Domain Here’s an example of a complete block diagram: x [ n ] y [ n ] z − 1 a This block diagram is equivalent to the following equation: y [ n ] = x [ n ] + ay [ n − 1] Notice that we can read it, also, as 1 Y ( z ) = X ( z ) + az − 1 Y ( z ) H ( z ) = ⇒ 1 − az − 1

  10. Review Block Diagrams Inverse Z Summary A Complete First-Order IIR Filter Now consider how we can represent a complete first-order IIR filter, including both the pole and the zero. Here’s its system function: Y ( z ) = b 0 X ( z ) + b 1 z − 1 X ( z ) + a 1 z − 1 Y ( z ) . When we implement it, we would write a line of python that does this: y [ n ] = b 0 x [ n ] + b 1 x [ n − 1] + a 1 y [ n − 1] , which is exactly this block diagram: x [ n ] y [ n ] b 0 z − 1 z − 1 b 1 a 1

  11. Review Block Diagrams Inverse Z Summary Series and Parallel Combinations Now let’s talk about how to combine systems. Series combination : passing the signal through two systems in series is like multiplying the system functions: H ( z ) = H 2 ( z ) H 1 ( z ) Parallel combination : passing the signal through two systems in parallel , then adding the outputs, is like adding the system functions: H ( z ) = H 1 ( z ) + H 2 ( z )

  12. Review Block Diagrams Inverse Z Summary One Block for Each System Suppose that one of the two systems, H 1 ( z ), looks like this: x [ n ] y [ n ] z − 1 p 1 and has the system function 1 H 1 ( z ) = 1 − p 1 z − 1 Let’s represent the whole system using a single box: x [ n ] y [ n ] H 1 ( z )

  13. Review Block Diagrams Inverse Z Summary Series Combination The series combination, then, looks like this: y 1 [ n ] x [ n ] y 2 [ n ] H 1 ( z ) H 2 ( z ) This means that Y 2 ( z ) = H 2 ( z ) Y 1 ( z ) = H 2 ( z ) H 1 ( z ) X ( z ) and therefore H ( z ) = Y ( z ) X ( z ) = H 1 ( z ) H 2 ( z )

  14. Review Block Diagrams Inverse Z Summary Series Combination The series combination, then, looks like this: x [ n ] y 2 [ n ] H 1 ( z ) H 2 ( z ) Suppose that we know each of the systems separately: 1 1 H 1 ( z ) = 1 − p 1 z − 1 , H 2 ( z ) = 1 − p 2 z − 1 Then, to get H ( z ), we just have to multiply: 1 1 H ( z ) = (1 − p 1 z − 1 )(1 − p 2 z − 1 ) = 1 − ( p 1 + p 2 ) z − 1 + p 1 p 2 z − 2

  15. Review Block Diagrams Inverse Z Summary Parallel Combination Parallel combination of two systems looks like this: H 1 ( z ) x [ n ] y [ n ] H 2 ( z ) This means that Y ( z ) = H 1 ( z ) X ( z ) + H 2 ( z ) X ( z ) and therefore H ( z ) = Y ( z ) X ( z ) = H 1 ( z ) + H 2 ( z )

  16. Review Block Diagrams Inverse Z Summary Parallel Combination Parallel combination of two systems looks like this: H 1 ( z ) x [ n ] y [ n ] H 2 ( z ) Suppose that we know each of the systems separately: 1 1 H 1 ( z ) = H 2 ( z ) = 1 − p 1 z − 1 , 1 − p 2 z − 1 Then, to get H ( z ), we just have to add: 1 1 H ( z ) = 1 − p 1 z − 1 + 1 − p 2 z − 1

  17. Review Block Diagrams Inverse Z Summary Parallel Combination Parallel combination of two systems looks like this: H 1 ( z ) x [ n ] y [ n ] H 2 ( z ) 1 1 H ( z ) = 1 − p 1 z − 1 + 1 − p 2 z − 1 1 − p 2 z − 1 1 − p 1 z − 1 = (1 − p 1 z − 1 )(1 − p 2 z − 1 ) + (1 − p 1 z − 1 )(1 − p 2 z − 1 ) 2 − ( p 1 + p 2 ) z − 1 = 1 − ( p 1 + p 2 ) z − 1 + p 1 p 2 z − 2

  18. Review Block Diagrams Inverse Z Summary Outline Review: FIR and IIR Filters, and System Functions 1 The System Function and Block Diagrams 2 Inverse Z Transform 3 Summary 4

  19. Review Block Diagrams Inverse Z Summary Inverse Z transform Suppose you know H ( z ), and you want to find h [ n ]. How can you do that?

  20. Review Block Diagrams Inverse Z Summary How to find the inverse Z transform Any IIR filter H ( z ) can be written as. . . a sum of exponential terms, each with this form: 1 g ℓ [ n ] = a n u [ n ] , G ℓ ( z ) = ↔ 1 − az − 1 each possibly multiplied by a delay term, like this one: D k ( z ) = b k z − k d k [ n ] = b k δ [ n − k ] . ↔

  21. Review Block Diagrams Inverse Z Summary Step #1: The Products Consider one that you already know: H ( z ) = 1 + bz − 1 � 1 � � 1 � + bz − 1 1 − az − 1 = 1 − az − 1 1 − az − 1 and therefore h [ n ] = ( a n u [ n ]) + b a n − 1 u [ n − 1] � �

  22. Review Block Diagrams Inverse Z Summary Step #1: The Products So here is the inverse transform of H ( z ) = 1+0 . 5 z − 1 1 − 0 . 85 z − 1 :

  23. Review Block Diagrams Inverse Z Summary Step #1: The Products In general, if 1 G ( z ) = A ( z ) for any polynomial A ( z ), and � M k =0 b k z − k H ( z ) = A ( z ) then h [ n ] = b 0 g [ n ] + b 1 g [ n − 1] + · · · + b M g [ n − M ]

  24. Review Block Diagrams Inverse Z Summary Step #2: The Sum Now we need to figure out the inverse transform of 1 G ( z ) = A ( z )

  25. Review Block Diagrams Inverse Z Summary Step #2: The Sum The method is this: 1 Factor A ( z ): 1 G ( z ) = � N ℓ =1 (1 − p ℓ z − 1 ) 2 Assume that G ( z ) is the result of a parallel system combination: C 1 C 2 G ( z ) = 1 − p 1 z − 1 + 1 − p 2 z − 1 + · · · 3 Find the constants, C ℓ , that make the equation true.

  26. Review Block Diagrams Inverse Z Summary Example Step # 1: Factor it: 1 1 1 − 1 . 2 z − 1 + 0 . 72 z − 2 = (1 − (0 . 6 + j 0 . 6) z − 1 ) (1 − (0 . 6 − j 0 . 6) z − 1 ) Step #2: Express it as a sum: 1 C 1 C 2 1 − 1 . 2 z − 1 + 0 . 72 z − 2 = 1 − (0 . 6 + j 0 . 6) z − 1 + 1 − (0 . 6 − j 0 . 6) z − 1 Step #3: Find the constants. The algebra is annoying, but it turns out that: C 1 = 1 2 − j 1 C 2 = 1 2 + j 1 2 , 2

  27. Review Block Diagrams Inverse Z Summary Example: All Done! The system function is: 1 G ( z ) = 1 − 1 . 2 z − 1 + 0 . 72 z − 2 0 . 5 − 0 . 5 j 0 . 5 + 0 . 5 j = 1 − (0 . 6 + j 0 . 6) z − 1 + 1 − (0 . 6 − j 0 . 6) z − 1 and therefore the impulse response is: g [ n ] = (0 . 5 − 0 . 5 j )(0 . 6 + 0 . 6 j ) n u [ n ] + (0 . 5 + 0 . 5 j )(0 . 6 − j 0 . 6) n u [ n ] √ √ √ √ � n � n � � � � 2 e − j π 2 e j π 2 e j π 2 e − j π = 0 . 5 0 . 6 + 0 . 5 0 . 6 u [ n ] 4 4 4 4 √ √ � π 2) n cos � = 2(0 . 6 4 ( n − 1) u [ n ]

  28. Review Block Diagrams Inverse Z Summary

  29. Review Block Diagrams Inverse Z Summary How to find the inverse Z transform Any IIR filter H ( z ) can be written as. . . a sum of exponential terms, each with this form: 1 g ℓ [ n ] = a n u [ n ] , G ℓ ( z ) = ↔ 1 − az − 1 each possibly multiplied by a delay term, like this one: D k ( z ) = b k z − k d k [ n ] = b k δ [ n − k ] . ↔

  30. Review Block Diagrams Inverse Z Summary Outline Review: FIR and IIR Filters, and System Functions 1 The System Function and Block Diagrams 2 Inverse Z Transform 3 Summary 4

Recommend


More recommend