dsp_2554_1
DESCRIPTION
Digital Signal Processing 1TRANSCRIPT
1
EEET0485
Digital Signal Processing
การประมวลผลสัญญาณดจิติอล การประมวลผลสัญญาณดจิติอล
รศ. ดร. พรีะพล ยวุภษูิตานนท์
ภาควชิาวศิวกรรมอเิล็กทรอนกิส์
DSP1-1CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Course Outline
1 Introduction and Applications of DSP
2 Discrete-time signals and systems
3 Discrete-time Fourier Transform (DTFT)
4 Z-transform
5 Discrete Fourier Transform (DFT)5 Discrete Fourier Transform (DFT)
6 Fast Fourier Transform (FFT)
7 Digital Filter Structure
8 Finite Impulse Response (FIR) filter
9 Infinite Impulse Response (IIR) filter
10 Multi-rate signal processing
DSP1-2CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
ตาํรา
• ตาํราหลกั • ตาํราประกอบ
DSP1-3CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
การวดัผล
•คะแนนอภปิราย 5%,
•คะแนนปฏบิตั ิ20 %,
• 25%, •คะแนนสอบกลางภาค 25%,
•คะแนนสอบปลายภาค 50%
DSP1-4CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Course Website
• http://embedsigproc.wordpress.com/dsp-lecture-page/
DSP1-5CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
INTRODUCTION AND
APPLICATIONS OF DSPAPPLICATIONS OF DSP
DSP1-6CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Digital Signal Processing
• Digital Signal Processing กระบวนการทางดจิติอล (บวก ลบ คณู หาร) ทีช่วยหาความหมายของสญัญาณ (signals) ทีไ่มสามารถเขาใจไดดวย ตา หูจมกู ลิน้ สมัผสัจมกู ลิน้ สมัผสั
• สญัญาณสญัญาณสญัญาณสญัญาณ (Signals) : คอื การแปรรูปของพลงังานทีท่ ัง้มองเห็น และ มองไมเห็น ไดยนิและไมไดยนิ สมัผสัไดและสมัผสัไมได ใหเป็นปรมิาณทางไฟฟ า– สญัญาณเรดาร เสยีงพูด เสยีงเพลง เสยีงปลาวาฬ
อนิฟราเรด คลืน่สญัญาณโทรศพัท คลืน่สนึามิ etcDSP1-7CESdSP EEET0485 Digital Signal Processing
http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP Timeline
Analog Systems and Mechanical Devices
Digital Computers Simulate Signal Before implementation
Cooley and Tukey rediscovered Fast Fourier Transform
IC Technology advancements led to fast fixed-point DSP
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-8
1950
implementation
1965
DSP
1980
DSP Applications
• Communications
• Biomedical Imaging
• Robotics
• Industry• Industry
• Entertainment
• Military
DSP1-9CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Radar
• ระบบเรดาร ใชในการหาระยะทางของวตัถุ จากการนบัการหนวงเวลา (delay) ของสญัญาณทีร่บัไดเทยีบกบัที่สงออกไปสัญญาณที่สงออกไปสัญญาณที่สงออกไป
สัญญาณทีร่บัเขามาสัญญาณทีร่บัเขามา
DSP1-10CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Transmitted and Received Sine Radar
Signal
• สญัญาณสงไป 1 รูปคลืน่ • สญัญาณทีร่บัไดโดยไมม ีNoise
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-11
กรณีนี้ กรณีนี้ งาย งาย เพราะ ดูดวย เพราะ ดูดวย ตาเปลาตาเปลา ((จากเครื่องมือวัดเชน สโคปจากเครื่องมือวัดเชน สโคป))ก็เห็นชัดวาคาการหนวง เปนเทาใดก็เห็นชัดวาคาการหนวง เปนเทาใด
Correlation
• การทาํ Correlation คอืการหา ความคลายกนั ของสองสญัญาณ
• สญัลกัษณ ของการ Correlation คอื
• การกระทาํ คอื การคณูและบวก (หรือ Integration) • การกระทาํ คอื การคณูและบวก (หรือ Integration)
BB
CCAA
BB
AA
X ∑=
DSP1-12CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Detected Radar Signal
No Noise
• เราใช Correlation ในการกาํหนดระยะทางจากการสะทอนของสญัญาณเรดาร กรณีไมม ีNoise
AA
BBDSP1-13CESdSP EEET0485 Digital Signal Processing
http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Received Radar with Noise
• หากสญัญาณทีร่บัไดถกูหนวง และ ปนดวย Noise จะดยูาก
++==
• สญัญาณขางบนนี้ มคีวามหมาย ทีม่องไมไดดวยตาเปลา
• แตเราดงึความหมายของสญัญาณออกมาไดจากการกระทาํ(Operation) ตางๆ ในการประมวลผลสญัญาณดจิติอล
++Noise Noise
==
DSP1-14CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Detected Radar Signal
With Noise
• ผลลพัธของการทาํ Correlation คอื การทราบวาตาํแหนงสงูสดุ คอื ตาํแหนง delay กรณีไมม ีNoise
AA CCAA
BBDSP1-15CESdSP EEET0485 Digital Signal Processing
http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
CT Scanner Development
Computed Tomography, Thorsten M. Buzug
DSP1-16CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Magnetic Resonance Imaging (MRI)
• เป็นเครือ่งมอืสาํหรบัถายภาพอวยัวะภายในของมนุษยโดยไมตองอาศยัการผาตดั
DSP1-17CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
2-D Ultrasound Imaging
DSP1-18CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
3-D Ultrasound Imaging
DSP1-19CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Image Processing: Restoration
DSP1-20CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Image Processing: Resampling
DSP1-21CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Pattern recognition
DSP1-22CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Image Processing: Fault Detection
DSP1-23CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Classification
Classification, Parameter Estimation andState Estimation, F. van der Heijden Et al.DSP1-24CESdSP EEET0485 Digital Signal Processing
http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Quality Inspection
DSP1-25CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
เซนเซอร์แบบอาร์เรย์แบบลากจูง (Towed array sensor)
เป็นระบบตรวจจบัสญัญาณ ทีCเรยีกวา่ระบบ SONAR (Sound navigation and ranging) เพืCอตรวจจบัวา่ มวีตัถุ หรอื ยานพาหนะใดๆของฝา่ยตรงขา้มอยูใ่นรศัมทีาํการหรอืไมแ่ละอยูใ่นทศิทางไหน
DSP1-26CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
A mid-frequency cylindrical array on the
bow of a surface ship
DSP1-27CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP in Robotics
DSP1-28CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
Probabilistics RobotsSebastian THRUNWolfram BURGARDDieter FOX
DSP1-29CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=0t=0
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-30CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=1t=1
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-31CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=2t=2
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-32CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=3t=3
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-33CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=4t=4
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-34CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Robot Localisation
t=5t=5
Excerpted from “A brief Introduction to Particle Filters”, Michael Pfeiffer, http:// www.igi.tugraz.at/pfeiffer/documents/particlefilters.pdf
DSP1-35CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Rhino: Guide Tour Robot
Probabilistics RobotsSebastian THRUNWolfram BURGARDDieter FOX
DSP1-36CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Mobile Communications
• ระบบโทรศพัทเ์คลื�อนที�
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-37
• สญัญาณวิ�งผา่น Channel
• เรียก channel แบบมีหลายๆ เส้นทางวา่Multipath channel
11 22
โมเดลของช่องการสื"อสารสัญญาณ
• เราโมเดลชองทางสือ่สารดวยระบบ FIR
Multipath Channel
(FIR)
DSP1-38CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Equalisation
• ตวัปรบัแตงสญัญาณทาํหนาที ่“ดดั”สญัญาณกลบัคนื
Multipath
Channel Equaliser
DSP1-39CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
วงจรปรับแต่งสัญญาณ (Equaliser)
DSP1-40CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Training bits for GSM
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-41
การปรับตวัของอีควอไลเซอร์
DSP1-42CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Seismographic Earthquake
DSP1-43CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP PROCESSORS
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-44
DSP Processors
Analog Devices Texas Instruments
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-45
Analog Devices Texas Instruments
FreescaleARM
Application Specific DSP
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-46
Inside there is ….. A dsp processor
DSP Processor Application
http://www.analog.com/en/embedded-processing-dsp/blackfin/processors/customer-case-studies/lifesaving_spider_robots_on_the_move/resources/fca.html
DSP1-47CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP Processor Application II
• That's why now, when Fishman has a digital product, we are using Blackfin. No other processor we compared processor we compared could match the power efficiency." – David Fournier,Director of Product Development, Fishman
DSP1-48CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP Processor Application III
• "...This high-level approach with ready-to-use mathematical analysis blocks and graphical blocks and graphical multitasking enabled the designers to deal with high levels of system complexity, and move to the next level of digital embedded design"
• - Marco Schmid Schmid Engineering
http://www.analog.com/en/embedded-processing-dsp/blackfin/processors/customer-case-studies/Schmid_Engineering_Rail_Monitor/resources/fca.html
DSP1-49CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
LabVIEW for DSP
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-50
Scorpion Robot Lego Mindstorm
• See Video
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-51
LabVIEW Start Page
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-52
Front Panel (FP)
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-53
Block Diagram (BD)
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-54
Numeric
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-55
BD and FP
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-56
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-57
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-58
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-59
While Loop
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-60
While Loop
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-61
Timer
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-62
Case
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-63
Result
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-64
Finalised
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-65
Powered by LabVIEW
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-66
BRIEF INTRODUCTION TO
SIGNALS AND SYSTEMS SIGNALS AND SYSTEMS
CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
DSP1-67
Continuous-Time vs. Discrete-Time Signals
Continuous time,
Continuous Amplitude
1( )x t
t
0 T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T 12T 13T 14T 15T 16T 17T
Discrete time ,
Continuous Amplitude
t
2( )x t
t
DSP1-68CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
Sampled Signal
1( )x t 2( )x t
t nT=0 T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T 12T 13T 14T 15T 16T 17T t
InputInput Sampled Sampled
OutputOutput
DSP1-69CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
สัญญาณแบบอื"นๆ
001
010
011100101
0 T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T 12T 13T 14T 15T 16T 17T
Discrete time,
Discrete Amplitude
3( )x t
t
4( )x t
001
010
011100101
0 T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T 12T 13T 14T 15T 16T 17T
0 T 2T 3T 4T 5T 6T 7T 8T 9T 10T 11T 12T 13T 14T 15T 16T 17T
Continuous time,
Continuous Amplitude,
Uniform time steps
Continuous time,
Discrete Amplitude
Uniform time steps
t
5( )x t
t
DSP1-70CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
ขอ้ดี ขอ้เสีย
1. ความแมนยาํสงู (Accuracy)2. ความสามารถในการทาํซํา้
(Reproducibility)
1. ความเร็วในการทาํงานตํา่ (< 10 MHZ)
2. ราคาสงู
ข้อด ีข้อเสีย ของ Digital Signal Processing
(Reproducibility)3. ความทนทานตอการเปลีย่นแปลง
อณุหภูม ิและ อายใุชงาน มีความเชือ่ถือได
4. มีความยดืหยุน (Flexibility) ในการเปลีย่นแปลงพารามเิตอร ดดัแปลงใหใชงานไดหลากหลาย
2. ราคาสงู3. เวลาทีใ่ชในการออกแบบมาก4. มีปญัหาของความยาวการเก็บ
ขอมูลทีจ่าํกดั (Finite word length)
DSP1-71CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon
สรุป
• Digital Signal Processing คอื กระบวนการทางดจิติอล บวก ลบ คณู หาร สญัญาณดจิติอล ทีช่วยหาความหมายของสญัญาณ (signals) ทีไ่มสามารถเขาใจไดดวย ตา หู จมกู ลิน้ สมัผสัไดดวย ตา หู จมกู ลิน้ สมัผสั
• เราสามารถใชคอมพวิเตอร หรือ DSP processor ในการสรางอลักอรธิมึได
DSP1-72CESdSP EEET0485 Digital Signal Processing http://embedsigproc.wordpress.com Assoc. Prof. Dr. P.Yuvapoositanon