Lecture 4: Sampling and Reconstruction

Slides:



Advertisements
Similar presentations
The Sound Card By Scott Anderson. Definition of Sound Card A sound card, or audio card, is the computer software that controls the input and output of.
Advertisements

3. Systems and Transfer function
EC3400: Introduction to Digital Signal Processing
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Digital Filters. A/DComputerD/A x(t)x[n]y[n]y(t) Example:
4-Integrating Peripherals in Embedded Systems (cont.)
DAC (Digital-to-Analog Converter) Example circuit diagram of a device that uses a DAC.
Interfacing Analog and Digital Circuits
ADC AND DAC Sub-topics: Analog-to-Digital Converter -. Sampling
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
Modern Control Systems (MCS) Dr. Imtiaz Hussain Assistant Professor URL :
Digital to Analog (D/A) Converter Discussion D2.2.
1 Figure 9.36 The process of periodically sampling an analog signal. (a) Sample-and-hold (S/H) circuit. The switch closes for a small part (  seconds)
President UniversityErwin SitompulSMI 7/1 Dr.-Ing. Erwin Sitompul President University Lecture 7 System Modeling and Identification
1 Data-Converter Circuits Because digital integrated circuits are economical and accurate, it is convenient to process signals in digital form, for example,
Analog-to-Digital Converters
EECS 20 Chapter 10 Part 11 Sampling and Reconstruction Last time we Viewed aperiodic functions in terms of frequency components via Fourier transform Gained.
1 ECEN5807 Intro to Converter Sampled-Data Modeling Introduction to Converter Sampled-Data Modeling ECEN 5807 Dragan Maksimović.
Digital to Analog (D/A) Converter Discussion D2.2.
Week 12. Chapter 11, Sampling and Reconstruction 1.Sampling and aliasing 2.Reconstruction 3.The Shannon-Nyquist theorem.
Chapter 1 - Introduction to Electronics Introduction Microelectronics Integrated Circuits (IC) Technology Silicon Chip Microcomputer / Microprocessor Discrete.
Science is organized knowledge. Wisdom is organized life.
C H A P T E R 1 Signals and Amplifiers Microelectronic Circuits, Sixth Edition Sedra/Smith Copyright © 2010 by Oxford University Press, Inc. Figure P1.14.
Digital Control Systems
Leo Lam © Signals and Systems EE235. Transformers Leo Lam ©
Lecture 4: Sampling [2] XILIANG LUO 2014/10. Periodic Sampling  A continuous time signal is sampled periodically to obtain a discrete- time signal as:
1.4 The Unit Impulse and Unit Step Functions The Discrete-Time Unit Impulse and Unit Step Sequences The Discrete-Time Unit Impulse Sequence.
11 Lecture Slides ME 3222 Kinematics and Control Lab Lab 2 AD DA and Sampling Theory By Dr. Debao Zhou.
… Representation of a CT Signal Using Impulse Functions
The sampling of continuous-time signals is an important topic It is required by many important technologies such as: Digital Communication Systems ( Wireless.
Signal ProcessingES & BM MUET1 Lecture 2. Signal ProcessingES & BM MUET2 This lecture Concept of Signal Processing Introduction to Signals Classification.
Chapter 2 Discrete System Analysis – Discrete Signals
Random signals. Histogram of the random signal Continuous Time Sinusoidal signals.
Side 1 af Digital Control Systems Sampling, Z-transform, transfer function Reg1_slide4 Chap ,4,(5) J.Nybo Rev.:
1 4-Integrating Peripherals in Embedded Systems (cont.)
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Digital-to-Analog Analog-to-Digital Microprocessor Interface.
Robotics Research Laboratory 1 Chapter 3 Discrete System Analysis - Sampled Data Systems.
Interconnections Blocks can be thought of as subsystems that make up a system described by a signal flow graph. We can reduce such graphs to a transfer.
Chapter 5 On-Line Computer Control – The z Transform.
1.1 Introduction Comparison between ACS and CCS. ACS CCS Process Actuator Measure Controller (correcting network) Structure: Process Actuator Measure.
Notice  HW problems for Z-transform at available on the course website  due this Friday (9/26/2014) 
Chapter 6: Sampled Data Systems and the z-Transform 1.
Analog-To-Digital convertor Sampler Quantization Coding.
數位控制(二).
Control Systems Engineering, Fourth Edition by Norman S. Nise Copyright © 2004 by John Wiley & Sons. All rights reserved. Figure 13.1 Conversion of antenna.
Digital Signal Processing
Digital Control CSE 421.
Figure Analog-to-digital conversion.. Figure The DAC output is a staircase approximation to the original signal. Filtering removes the sharp.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Discrete-Time Processing of Continuous-Time Signals Quote of the Day Do not worry about your difficulties in Mathematics. I can assure you mine are still.
ECE 483. Digital Control Systems Analysis and Design TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A AAA A A.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
PAM Modulation Lab#3. Introduction An analog signal is characterized by the fact that its amplitude can take any value over a continuous range. On the.
z-Plane Analysis of Discrete-Time Control Systems
Lecture 4 Outline: Analog-to-Digital and Back Bridging the analog and digital divide Announcements: Discussion today: Monday 7-8 PM, Hewlett 102 Clarifications.
Real time DSP Professors: Eng. Diego Barral Eng. Mariano Llamedo Soria Julian Bruno.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
Lecture 3: System Representation
Lecture 9: Time-Response Characteristics (II) TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A AAA A A A A A A A.
Sampling and DSP Instructor: Dr. Mike Turi Department of Computer Science & Computer Engineering Pacific Lutheran University.
Introduction to Converter Sampled-Data Modeling
Digital Control Systems (DCS)
ECET 350 Education for Service/tutorialrank.com
Lecture 9: Sampling & PAM 1st semester By: Elham Sunbu.
數位控制理論簡介.
Chapter 3 Sampling.
Digital Signal Processing
Presentation transcript:

Lecture 4: Sampling and Reconstruction Data Reconstruction (Hold) Reading: Chapter 3 of the textbook TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAAAA

A Typical Digital Control System Sampling Reconstruction continuous-time signal discrete-time system continuous-time system 𝑇 𝑟(𝑡) A/D Computer D/A Data Hold Plant 𝑦(𝑡) _ 𝑒(𝑡) discrete-time signal digital signal discrete-time signal continuous-time signal Sensor Sampling and data reconstruction needed to interface the digital computer with the physical world Sampling Continuous-time Signals Discrete-time Signals Data reconstruction

Sampler A sampler obtains from a continuous-time signal a discrete-time signal by sampling every 𝑇 seconds Input is a continuous-time signal 𝑒 𝑡 , 𝑡≥0 Output is a discrete-time signal 𝑒(𝑘𝑇), 𝑘=0,1,… Both signals have identical values at sampling moments Not a lossless procedure Not a time-invariant procedure 𝑒(𝑡) 𝑒(𝑘𝑇) 𝑇 𝑒(𝑡) 𝑒(𝑘𝑇) ⋯ 𝑇 2𝑇 3𝑇 4𝑇 𝑡

A/D Converter (ADC) (From Wikipedia: 4-channel stereo multiplexed analog-to-digital converter WM8775SEDS made by Wolfson Microelectronics placed on a X-Fi Fatal1ty) Pro sound card.

Reconstruction: Zero-Order Hold Data reconstruction needed to convert digital controller output into a continuous-time signal to drive the plant Ideally both signals should agree at the sampling moment: 0, 𝑇, 2𝑇, … The simplest data reconstruction is zero-order hold Given a discrete time signal 𝑒(𝑘𝑇), 𝑘=0,1,… A continuous-time signal 𝑒 𝑡 , 𝑡≥0, is reconstructed whose value at any time 𝑡 is equal to the value of 𝑒(𝑘𝑇) in the closest sampling moment preceding 𝑡:

D/A Converter (DAC) AK4396 DAC for Headphone Output (from www.ikalogic.com) An 8-Digit DAC implemented by R/2R resistor network From Wikipedia: 8-channel digital-to-analog converter Cirrus Logic CS4382 as used in a soundcard.

Sampled-Data Control System 𝑒(𝑘𝑇) 𝑢(𝑘𝑇) 𝑢(𝑡) 𝑒(𝑡) Digital controller Plant 𝑦(𝑡) Sampler Data hold _ Does there exist a transfer function from 𝑒(𝑡) to 𝑢(𝑡)? What about from 𝑒(𝑘𝑇) to 𝑢(𝑘𝑇)? Let us start from the simplest case: digital controller does nothing 𝑒(𝑡) 𝑒 (𝑡) 𝑒(𝑘𝑇) Sampler Data hold sampler and hold

Sampler and Zero-Order Hold What is the effect of sampler and hold in frequency domain? 𝑒(𝑡) 𝑒 (𝑡) 𝑒(𝑘𝑇) Sampler Data hold 𝐸(𝑠) 𝐸(𝑧) 𝐸 (𝑠) 𝑒 (𝑡) 𝑒(𝑡) ⋯ 𝑇 2𝑇 3𝑇 4𝑇

Sampler and Zero-Order Hold Laplace transform of 𝑒(𝑡): 𝐸 𝑠 =ℒ[𝑒 𝑡 ] 𝑧-transform of 𝑒(𝑘𝑇): 𝐸 𝑧 = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑧 −𝑘 Laplace transform of 𝑒 𝑡 : 𝑒 𝑡 =𝑒 0 1 𝑡 −1 𝑡−𝑇 +𝑒 𝑇 1 𝑡−𝑇 −1 1−2𝑇 +⋯ = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑒 −𝑘𝑇𝑠 ⋅ 1− 𝑒 −𝑇𝑠 𝑠 Independent of signal 𝑒(𝑡) 𝐸 ∗ 𝑠 =𝐸 𝑧 ​ 𝑧= 𝑒 𝑇𝑠 𝑒 (𝑡) 𝑒(𝑘𝑇) ⋯ 𝑇 2𝑇 3𝑇 4𝑇

Sampler and Zero-Order Hold (cont.) Sampler and zero-order hold can be broken up in two steps: 𝐸 𝑠 𝑇 𝐸 ∗ 𝑠 𝐸 𝑠 𝐺 ℎ0 𝑠 = 1− 𝑒 −𝑇𝑠 𝑠 Ideal sampler 0-th order data hold 𝐸 ∗ 𝑠 =𝑒 0 +𝑒 𝑇 𝑒 −𝑇𝑠 +𝑒 2𝑇 𝑒 −2𝑇𝑠 +⋯ In time domain: 𝑇 𝑒 𝑡 𝑒 ∗ 𝑡 𝑒 𝑡 𝑇 where 𝑒 ∗ 𝑡 is a string of impulses whose amplitudes are modulated by 𝑒(𝑡): 𝑒 ∗ 𝑡 =𝑒 0 𝛿 𝑡 +𝑒 𝑇 𝛿 𝑡−𝑇 +𝑒 2𝑇 𝛿 𝑡−2𝑇 +⋯

Ideal Sampler 𝑒 ∗ 𝑡 =𝑒 0 𝛿 𝑡 +𝑒 𝑇 𝛿 𝑡−𝑇 +𝑒 2𝑇 𝛿 𝑡−2𝑇 +⋯ 𝑒 𝑡 𝑒 ∗ 𝑡 𝑒 ∗ 𝑡 =𝑒 0 𝛿 𝑡 +𝑒 𝑇 𝛿 𝑡−𝑇 +𝑒 2𝑇 𝛿 𝑡−2𝑇 +⋯ =𝑒 𝑡 ⋅[𝛿 𝑡 +𝛿 𝑡−𝑇 +𝛿 𝑡−2𝑇 +⋯] 𝛿 𝑇 𝑡 𝛿 𝑇 𝑡 𝛿 𝑇 𝑡 is a string of unit impulses T seconds apart: 𝛿 𝑇 𝑡 𝑇 2𝑇 3𝑇 4𝑇 𝑒 𝑡 𝑒 ∗ 𝑡 Impulse Modulator

Remarks on Ideal Sampler Not a physical entity (introduced for theoretical convenience) Linear but not time-invariant, cannot be modeled by a transfer function Can map different 𝑒(𝑡) to the same 𝑒 ∗ (𝑡) If 𝑒(𝑡) is discontinuous at a sampling time 𝑘𝑇, choose If 𝑒(𝑡) has impulses at sampling times, then 𝑒 ∗ 𝑡 is not well defined 𝑒 ∗ 𝑡 =𝑒 0 + 𝛿 𝑡 +𝑒 𝑇 + 𝛿 𝑡−𝑇 +⋯

Sampler and Hold: First Perspective In the time domain: 𝑇 𝑒(𝑡) 𝑒(𝑘𝑇) 𝑒 (𝑡) Zero-Order Hold Sampler In the frequency domain (a mixture of z- and Laplace transforms): 𝑇 𝐸 𝑠 𝐸 𝑧 𝐸 𝑠 Zero-Order Hold Sampler 𝐸 𝑧 = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑧 −𝑘 is called the z-transform of 𝐸(𝑠)

Sampler and Hold: Second Perspective In the time domain: 𝑇 𝑒(𝑡) 𝑒 ∗ (𝑡) 𝑒 (𝑡) Ideal sampler Data hold In the frequency domain: 𝑇 𝐸 𝑠 𝐸 ∗ 𝑠 𝐸 𝑠 𝐺 ℎ0 𝑠 = 1− 𝑒 −𝑇𝑠 𝑠 𝐸 ∗ 𝑠 = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑒 −𝑘𝑇𝑠 is called the star-transform of 𝐸(𝑠)

Relating the Two Perspectives 𝐸(𝑧) sampler z-transform 𝐸 ∗ 𝑠 =𝐸 𝑧 ​ 𝑧= 𝑒 𝑇𝑠 𝐸(𝑠) 𝐸 (𝑠) Ideal sampler Zero-order hold star transform 𝐺 ℎ0 𝑠 = 1− 𝑒 −𝑇𝑠 𝑠 𝐸 ∗ (𝑠)

Finding Star-Transform of 𝐸(𝑠) Given E(s), find Approach I: If 𝐸 𝑠 is a rational function (and …), then where the summation is over all poles of E(¸) Approach II: (see Appendix III) where 𝜔 𝑠 = 2𝜋 𝑇 is called radian sampling frequency 𝐸 ∗ 𝑠 = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑒 −𝑘𝑇𝑠 𝐸 ∗ 𝑠 = [𝑟𝑒𝑠𝑖𝑑𝑢𝑒 𝑜𝑓 𝐸 𝜆 1 1− 𝑒 −𝑇(𝑠−𝜆) ] 𝐸 ∗ 𝑠 = 1 𝑇 𝑘=−∞ ∞ 𝐸 𝑠+𝑗𝑘 𝜔 𝑠 + 𝑒(0) 2

Finding 𝑧-Transform of 𝐸(𝑠) Given E(s), find Approach I: If 𝐸 𝑠 is a rational function (and …), then Approach II: find 𝐸 ∗ (𝑠) first, then Approach III: consult the 𝑧-transform table on pp. 676 𝐸 𝑧 = 𝑘=0 ∞ 𝑒 𝑘𝑇 𝑧 −𝑘 𝐸 𝑧 = [𝑟𝑒𝑠𝑖𝑑𝑢𝑒 𝑜𝑓 𝐸 𝜆 1 1− 𝑧 −1 𝑒 𝑇𝜆 ] 𝐸 𝑧 = 𝐸 ∗ 𝑠 ​ 𝑒 𝑇𝑠 →𝑧

Examples 𝐸 𝑠 = 1 𝑠 𝐸 𝑠 = 1 𝑠+2

Example 𝐸 𝑠 = 1 𝑠+𝑎 2 𝐸 𝑧 = 𝑇𝑧 𝑒 −𝑎𝑇 𝑧− 𝑒 −𝑎𝑇 2 𝐸 𝑠 = 1 (𝑠+1)(𝑠+2) 𝐸 𝑠 = 1 𝑠+𝑎 2 𝐸 𝑧 = 𝑇𝑧 𝑒 −𝑎𝑇 𝑧− 𝑒 −𝑎𝑇 2 𝐸 𝑠 = 1 (𝑠+1)(𝑠+2) 𝐸 𝑠 = 𝜔 2 𝑠 2 + 𝜔 2 𝐸 ∗ 𝑠 = 𝑒 −𝑇𝑠 sin 𝜔𝑇 1−2 𝑒 −𝑇𝑠 cos 𝜔𝑇 + 𝑒 −2𝑇𝑠

Effect of Time Delay on Star-Transform If 𝑡0=𝑛𝑇 is an integer multiple of the sampling period 𝑇, then For general 𝑡0, the above is not true 𝐸 ∗ 𝑠 = 𝑒 −𝑛𝑇𝑠 𝐸 1 ∗ 𝑠

Periodicity Property of 𝐸 ∗ (𝑠) 𝐸 ∗ (𝑠) is periodic in 𝑠 with period 𝑗 𝜔 𝑠 =𝑗 2𝜋 𝑇 𝐸 ∗ 𝑠+𝑗𝑚 𝜔 𝑠 = 𝐸 ∗ (𝑠) for integer 𝑚

Strings of Poles of 𝐸 ∗ (𝑠) If 𝐸(𝑠) has a pole at 𝑝, then 𝐸 ∗ (𝑠) has poles at 𝑝±𝑗𝑚 𝜔 𝑠 𝐸 ∗ (𝑠) 𝐸(𝑠) 𝑗 𝜔 𝑠 2 × × × Primary strip − 𝑗 𝜔 𝑠 2 ×

Data Reconstruction

Sampler and Hold: Second Perspective In the time domain: 𝑇 𝑒(𝑡) 𝑒 ∗ (𝑡) 𝑒 (𝑡) Ideal sampler Data hold In the frequency domain: 𝑇 𝐸 𝑠 𝐸 ∗ 𝑠 𝐸 𝑠 𝐺 ℎ0 𝑠 = 1− 𝑒 −𝑇𝑠 𝑠

Data Reconstruction in Frequency Domain 𝑒(𝑡) 𝑒 ∗ (𝑡) 𝑒 (𝑡) 𝐸(𝑗𝜔) 𝐸 ∗ (𝑗𝜔) 𝐸 (𝑗𝜔) Ideal sampling Data reconstruction 𝐸 ∗ 𝑗𝜔 = 1 𝑇 𝑘=−∞ ∞ 𝐸 𝑗𝜔+𝑗𝑘 𝜔 𝑠 + 𝑒(0) 2 𝐸 𝑗𝜔 = 𝐺 ℎ0 𝑗𝜔 𝐸 ∗ (𝑗𝜔) (periodic extension in freq. domain) (data hold transfer function) Shannon’s Sampling Theorem: 𝑒(𝑡) can be uniquely reconstructed from 𝑒 ∗ (𝑡) if 𝐸(𝑗𝜔) has no frequency component greater than 𝜔 𝑠 2 = 𝜋 𝑇 Need to sample at least twice as fast as the highest frequency in 𝐸(𝑗𝜔) Perfect reconstruction by the ideal low pass filter (physically infeasible)

Zero-Order Hold A physically feasible (causal) data hold transfer function is Frequency (magnitude) response 𝐺 ℎ0 𝑠 = 1− 𝑒 −𝑇𝑠 𝑠 1 with impulse response 𝑇 |𝐺 ℎ0 𝑗𝜔 |= 1− 𝑒 −𝑗𝜔𝑇 𝑗𝜔 =𝑇 sin 𝜋𝜔 𝜔 𝑠 𝜋𝜔 𝜔 𝑠

First-Order Hold Idea: Given the sampled data 𝑒 𝑘𝑇 , 𝑘=0,1,…, reconstruct the signal between sampling times by extrapolating two previous data 𝑒 𝑡 =𝑒 𝑘𝑇 + 𝑒 𝑘𝑇 −𝑒 𝑘−1 𝑇 𝑇 𝑡−𝑘𝑇 , 𝑘𝑇≤𝑡< 𝑘+1 𝑇 First-order hold is causal

Transfer Function of First-Order Hold Impulse response 2 1 2𝑇 𝑇 −1 ℎ 𝑡 =1 𝑡 + 𝑡 𝑇 ⋅1 𝑡 −2⋅1 𝑡−𝑇 − 2 𝑡−𝑇 𝑇 1 𝑡−𝑇 +1 𝑡−2𝑇 + 𝑡−2𝑇 𝑇 ⋅1 𝑡−2𝑇 ⇒ 𝐺 ℎ1 𝑠 = 1+𝑇𝑠 𝑇 1− 𝑒 −𝑇𝑠 𝑠 2

Fractional-Order Holds 𝑒 𝑡 =𝑒 𝑘𝑇 +𝜂 𝑒 𝑘𝑇 −𝑒 𝑘−1 𝑇 𝑇 𝑡−𝑘𝑇 , 𝑘𝑇≤𝑡< 𝑘+1 𝑇 where the parameter 𝜂∈[0,1] Impulse response 2 1 2𝑇 𝑇 −1 𝐺 ℎ𝜂 𝑠 = 1−𝜂 𝑒 −𝑇𝑠 1− 𝑒 −𝑇𝑠 𝑠 + 𝜂 𝑇 𝑠 2 1− 𝑒 −𝑇𝑠 2