Digital Signal Processing for Embedded Systems: Simulink and Digital Filters Design

Slide Note
Embed
Share

Explore the world of Digital Signal Processing for Embedded Systems with an emphasis on Simulink and Digital Filters design. Discover tools, examples of Simulink models, basics of noise cancellation, and applications of active noise cancellation headphones. Dive into the realm of Embedded Systems through the lens of digital signal processing.


Uploaded on Dec 13, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. EEEB0765 Digital Signal Processing for Embedded Systems 2 Simulink and Digital Filters Design Assoc. Prof. Dr. Peerapol Yuvapoositanon Dept. of Electronic Engineering EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-1 CESdSP

  2. Outline Review of Digital Filters Filter Design Tool (FDATOOL) and Simulink EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon CESdSP DSPEB-2

  3. Examples of Simulink Models Acoustic Noise Canceller (dspanc.mdl) Abandoned Object Detection (vipabandonedobj.mdl) Staples Count (vipstaples_win.mdl) EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-3

  4. Basic of Noise Cancellation Noise n is modified by H(z) and gives n n can be estimated and reverse phase -n n Quiet Zone -n H(z) Loudspeaker n Pilot Mic Noise from Plane Engine DSP ANC EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-4

  5. Active Noise Cancellation Headphones ANC Headphones= An Embedded system LX-18 Active Noise Cancelling Headphones EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-5

  6. Diagram of Active Noise Cancellation Headphones Ext.Mic n Pilot Mic n DSP ANC H(z) algorithm y H(z) = Acoustic Model Quiet Zone EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-6

  7. ANC Pilot Mic n Model Loudspeaker H(z) Exterior Mic FIR n y y + e DSP Algorithm ANC EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-7

  8. Acoustice Noise Canceller in Simulink EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-8

  9. EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-9

  10. The FDATOOL Simulink EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-10

  11. Example of Creating Simulation Model EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-11

  12. EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-12

  13. Review of Digital Filters EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-13

  14. Digital Filter Structures FIR IIR Direct form Cascade form Linear-phase form Frequency-sampling Direct form I and II Cascade form Parallel form EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-14

  15. FIR Direct Form FIR q = ( ) b k z = k ( ) ( ) H z B z = 0 k q=3 z z z 1 1 1 ( ) x n 3 b 0 b 1 b 2 b ( ) y n

  16. FIR: Cascade Form = + + + + ( ) ... H z b b z b z 1 1 M 0 1 1 b M b b = + + + + b 1 1 M 1 .... z z 1 1 M b 0 0 0 K = 1 2 + + b z B z (1 ) B 0 ,2 k ,1 k = 1 k M = K 2 EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-16

  17. FIR: Cascade Form () M=5 0 b ( ) x n ( ) y n z z 1 1 B B 2,1 1,1 z z 1 1 B B 2,2 1,2 EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-17

  18. FIR: Linear-phase Form (length) N : = 1 (symmetric) 2. (Anti-symmetric) ( ) ( ) h n ( h N 1 ) n h n h N = n ( 1 ) EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-18

  19. ( ) x n ( ) y n n 0 1 2 3 4 5 1 N = ( ) y n ( ) ( h k x n k ) = 0 k h h h = = = + + + + + + + + + + (0) ( ) (0) ( ) (0) ( ) (1) ( (1) ( ( x n N 1) ... 1) ... 1) + ( (1) ( (1)[ ( 2) ( 2) (0) ( h + ( 1) ( + 1) x n x n x n h h x n x n h N h x n N + + h N x n N x n N 2) ( x n N 1) x n N x n + + 1) 2)]... h 50 % !! EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-19

  20. FIR: Linear-phase Form TYPE I ( N = ) N h(n) (1) N=7 = = = = (0) (1) (2) ((7 1) 0) ((7 1) 1) ((7 1) 2) h (6) (5) (4) h h h h h h h = h ( ) h n = n EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-20

  21. FIR: Linear-phase Form TYPE I ( N = ) z z 1 1 ... ( ) x n z 1 1 z ... z (1) h 1 z 1 (0) h h N (( 2)/2) ( ) N ( 1)/2 h ( ) y n 2 N 1 1 N N 2 = + + ( ) y n ( )[ ( h k x n k ) ( ( 1))] x n N k h x n 2 2 = 0 k EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-21

  22. FIR: Linear-phase Form TYPE II ( N= ) N h(n) (1) N=6 = = = = (0) (1) (2) ((6 1) 0) ((6 1) 1) ((6 1) 2) h (5) (4) (3) h h h h h h h = h ( ) h n = n EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-22

  23. FIR: Linear-phase Form TYPE II ( N= ) z z z 1 1 1 ... ( ) x n z 1 z 1 ... z (1) h z 1 1 (0) h ( ) /2 1) /2 2 ( h N h N ( ) y n /2 1 N = + ( ) y n ( )[ ( h k x n k ) ( ( 1))] x n N k = 0 k EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-23

  24. FIR: Frequency Sampling (1) DFT 1 N 1 N DFT nk N = 2 / j ( ) h n ( ) H k e = 0 k 1 N 1 1 1 N N N nk N = = 2 / n j n ( ) ( ) h n z ( ) H z H k e z = = = 0 0 0 n n k 1 N 1 1 N N nk N = 2 / j n ( ) H k e z = = 0 0 k n EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-24

  25. FIR: Frequency Sampling (2) 1 N ( ) k N 1 N H k e = N ( ) (1 ) H z z 2 / 1 j 1 z = 0 k 1 N = cascade N N ( ) (1 ) G z z ( ) k N H k e = ( ) H z k 2 / 1 j 1 z EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-25

  26. FIR: Frequency Sampling (3) (0) H z 1 1 N ( ) x n (1) H z 1 ( ) y n 1 2 / j N e M z N H N ( 1) z 2 ( 1 1)/ j N N e EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-26

  27. IIR: Direct Forms IIR q k ( ) b k z ( ) ( ) B z A z = = = ( ) 0 k H z p + k 1 ( ) a k z (difference eq.) = 1 k p = ( ) y n ( ) ( ) ( a k y n k ) w n = 1 k FIR nominator q = ( ) ( ) ( b k x n k ) w n FIR = 0 k IIR Direct form EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-27

  28. IIR: Direct Form I (0) b ( ) x n ( ) y n z z 1 1 (1) b (1) a z 1 z 1 M M b q ( 1) ( 1) a p z z 1 1 ( ) a p ( ) b q EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-28

  29. (0) b ( ) x n ( ) y n z- 1 z - 1 (1) b - (1) a z- 1 z - 1 M M b q - ( 1) - ( - 1) a p z- 1 z - 1 - ( ) a p ( ) b q EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-29

  30. IIR: Direct Form II (0) b ( ) x n ( ) y n z 1 (1) a (1) b z 1 M M b q ( 1) a p ( 1) z 1 ( ) a p ( ) b q EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-30

  31. IIR: Cascade cascade FIR IIR q k ( ) b k z 1 max( , ) p q 1 1 z z = = = ( ) 0 k k H z A p 1 + = k 1 k 1 ( ) a k z k = 1 k 1 + + + + 1 2 1 1 z z z z = ( ) 1 2 k k H z k 1 2 1 2 k k EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-31

  32. IIR: Cascade () ( ) x n ( ) y n z z 1 1 21 11 21 11 z z 1 1 22 21 22 21 EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-32

  33. IIR: Parallel Form q q 1 k 1 z ( ) b k z k = = = = ( ) 0 1 k k H z A p p + k 1 1 ( ) a k z 1 z k = = 1 k 1 k Partial Fraction Expansion factor + 1 N z s = ( ) 0 1 + k k H z + 1 2 1 z z = 1 k 1 2 k k k EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-33

  34. IIR: Parallel Form () N =4 ( Ns=2) 01 z 1 11 11 ( ) y n ( ) x n z 1 12 02 z 1 12 21 z 1 22 EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-34

  35. Simulink Test Filter Model Doc_filter_ex5_EB.mdl EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-35

  36. FDATOOL EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-36

  37. Parameter Setting EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-37

  38. Results EEEB0765 DSP fort Embedded Systems http://embedsigproc.wordpress.com/eeeb0765 Assoc. Prof. Dr. P.Yuvapoositanon DSPEB-38

Related


More Related Content