SlideShare a Scribd company logo
1 of 30
Download to read offline
‫ر‬َ‫ـد‬ْ‫ق‬‫ِـ‬‫ن‬،،،‫لما‬‫اننا‬ ‫نصدق‬ْْ‫ق‬ِ‫ن‬‫ر‬َ‫د‬
LECTURE (2)
Sampling of Continuous-Time
Signals
Amr E. Mohamed
Faculty of Engineering - Helwan University
Signal Types
 Analog signals: continuous in time and amplitude
 Example: voltage, current, temperature,…
 Digital signals: discrete both in time and amplitude
 Example: attendance of this class, digitizes analog signals,…
 Discrete-time signal: discrete in time, continuous in amplitude
 Example: hourly change of temperature in Austin
 Theory is based on discrete-time continuous-amplitude signals
 Most convenient to develop theory
 Good enough approximation to practice with some care
2
Why digital?
 Digital techniques need to distinguish between discrete symbols
allowing regeneration versus amplification
 Good processing techniques are available for digital signals, such as
medium.
 Data compression (or source coding)
 Error Correction (or channel coding)
 Equalization
 Security
 Easy to mix signals and data using digital techniques (Time Division
Multiplexing)
3
4
Analog to Digital Conversion
5
Analog to Digital Conversion
 Analog-to-digital conversion is (basically) a 2 step process:
 Sampling
• Convert from continuous-time analog signal xa(t) to discrete-time continuous
value signal x(n).
• Is obtained by taking the “samples” of xa(t) at discrete-time intervals, Ts
 Quantization
• Convert from discrete-time continuous valued signal to discrete time discrete
valued signal
6
Definition
 Bit Rate
 Actual rate at which information is transmitted per second
 Baud Rate
 Refers to the rate at which the signaling elements are transmitted,
i.e. number of signaling elements per second.
 Bit Error Rate
 The probability that one of the bits is in error or simply the
probability of error
7
Sampling
8
Sampling
 Sampling is the processes of converting continuous-time analog signal,
xa(t), into a discrete-time signal by taking the “samples” at discrete-time
intervals
 Sampling analog signals makes them discrete in time but still continuous valued.
 If done properly (Nyquist theorem is satisfied), sampling does not introduce
distortion
 Sampled values:
 The value of the function at the sampling points
 Sampling interval:
 The time that separates sampling points (interval b/w samples), Ts
 If the signal is slowly varying, then fewer samples per second will be required than
if the waveform is rapidly varying
 So, the optimum sampling rate depends on the maximum frequency component
present in the signal
9
First step toward Digital Signal Processing
 Main question:
Can a finite number of samples of a continuous wave be enough to
represent the information?
OR
Can you tell what the original signal was below?
10
Sampling Types
 Ideal Sampling
 Natural Sampling (Exact Sampling)
 Flat-Top Sampling
11
Ideal Sampling
 Sampling Rate (or sampling frequency fs):
 The rate at which the signal is sampled, expressed as the number of samples
per second (reciprocal of the sampling interval), 1/Ts = fs
 Nyquist Sampling Theorem (or Nyquist Criterion):
 If the sampling is performed at a proper rate, no info is lost about the
original signal and it can be properly reconstructed later on
 Statement:
“If a signal is sampled at a rate at least, but not exactly equal to twice
the max frequency component of the waveform, then the waveform can
be exactly reconstructed from the samples without any distortion”
12
max2sf f
Ideal Sampling ( or Impulse Sampling)
 Is accomplished by the multiplication of the signal x(t) by the uniform
train of impulses (comb function)
 Consider the instantaneous sampling of the analog signal x(t)
 Train of impulse functions select sample values at regular intervals
 Fourier Series representation:
13
1 2
( ) ,sjn t
s s
n ns s
t nT e
T T
 
 
 
 
   
         





n
ss
n
ss nTtnTxnTttxtx 
Ideal Sampling ( or Impulse Sampling)
 Therefore, we have:
 Take Fourier Transform (frequency convolution)
14
𝑋𝑠 𝜔 =
1
2𝜋
. 𝑋 𝜔 ∗ ℱ
1
𝑇𝑠
𝑛=−∞
∞
𝑒 𝑗𝑛𝜔 𝑠 𝑡 =
1
2𝜋
𝑋 𝜔 ∗
1
𝑇𝑠
𝑛=−∞
∞
ℱ 𝑒 𝑗𝑛𝜔 𝑠 𝑡
𝑋𝑠 𝜔 =
1
2𝜋
𝑋 𝜔 ∗
2𝜋
𝑇𝑠
𝑛=−∞
∞
𝛿(𝜔 − 𝑛𝜔𝑠)
𝑋𝑠 𝜔 =
1
𝑇𝑠
𝑛=−∞
∞
𝑋(𝜔 − 𝑛𝜔𝑠)
𝑥 𝑠 𝑡 = 𝑥 𝑡 . 𝛿 𝑇 𝑡 = 𝑥 𝑡 .
1
𝑇𝑠
𝑛=−∞
∞
𝑒 𝑗𝑛𝜔 𝑠 𝑡
Ideal Sampling ( or Impulse Sampling)
 This shows that the Fourier Transform of the sampled signal is the
Fourier Transform of the original signal at rate of 1/Ts
15
Ideal Sampling ( or Impulse Sampling)
16
 As long as fs> 2fm, no overlap of repeated replicas
X(f - n/Ts) will occur in Xs(f)
 Minimum Sampling Condition:
2s m m s mf f f f f   
Ideal Sampling ( or Impulse Sampling)
 Under-Sampling and Aliasing
 If the waveform is undersampled (i.e. fs < 2B) then there will be spectral
overlap in the sampled signal
 The signal at the output of the filter will be different from the original
signal spectrum. [This is the outcome of aliasing!]
 This implies that whenever the sampling condition is not met, an
irreversible overlap of the spectral replicas is produced
17
18
 Ts is called the Nyquist interval: It is the longest time interval that can be used for sampling a
bandlimited signal and still allow reconstruction of the signal at the receiver without distortion
Ideal Sampling ( or Impulse Sampling)
 Sampling Theorem: A finite energy function x(t) can be completely
reconstructed from its sampled value x(nTs) with
19
provided that =>
2 ( )
sin
2
( ) ( )
( )
s
s
s s
n s
f t nT
T
x t T x nT
t nT




  
  
    
 
 
 
 ( ) sin (2 ( ))s s s s
n
T x nT c f t nT


 
1 1
2
s
s m
T
f f
 
Practical Sampling
 In practice we cannot perform ideal sampling
 It is practically difficult to create a train of impulses
 Thus a non-ideal approach to sampling must be used
 We can approximate a train of impulses using a train of very thin rectangular
pulses:
 Note:
 Fourier Transform of impulse train is another impulse train
 Convolution with an impulse train is a shifting operation
20
( ) s
p
n
t nT
x t



 
  
 

Natural Sampling
 If we multiply x(t) by a train of
rectangular pulses xp(t), we obtain
a gated waveform that
approximates the ideal sampled
waveform, known as natural
sampling or gating (see Figure 2.8)
21
( ) ( ) ( )s px t x t x t
2
( ) sj nf t
n
n
x t c e 


 
( ) [ ( ) ( )]s pX f x t x t 
2
[ ( ) ]sj nf t
n
n
c x t e 


 
[ ]n s
n
c X f nf


 
Natural Sampling
 Each pulse in xp(t) has width Ts and amplitude 1/Ts
 The top of each pulse follows the variation of the signal being sampled
 Xs (f) is the replication of X(f) periodically every fs Hz
 Xs (f) is weighted by Cn  Fourier Series Coefficient
 The problem with a natural sampled waveform is that the tops of the
sample pulses are not flat
 It is not compatible with a digital system since the amplitude of each
sample has infinite number of possible values
 Another technique known as flat top sampling is used to alleviate this
problem
22
Flat-Top Sampling
 Here, the pulse is held to a constant height for the whole sample period
 Flat top sampling is obtained by the convolution of the signal obtained
after ideal sampling with a unity amplitude rectangular pulse, p(t)
 This technique is used to realize Sample-and-Hold (S/H) operation
 In S/H, input signal is continuously sampled and then the value is held
for as long as it takes to for the A/D to acquire its value
23
Flat-Top Sampling
Flat top sampling (Time Domain)
24
'( ) ( ) ( )x t x t t
( ) '( )* ( )sx t x t p t
( )* ( ) ( ) ( )* ( ) ( )s
n
p t x t t p t x t t nT 


 
   
 

Flat-Top Sampling
 Taking the Fourier Transform will result to
 where P(f) is a sinc function
25
( ) [ ( )]s sX f x t
( ) ( ) ( )s
n
P f x t t nT


 
   
 

1
( ) ( )* ( )s
ns
P f X f f nf
T



 
   
 

1
( ) ( )s
ns
P f X f nf
T


 
Flat top sampling (Frequency Domain)
 Flat top sampling becomes identical to ideal sampling as the width of
the pulses become shorter
26
Solution: Anti-Aliasing Analog Filter
 All physically realizable signals are not completely bandlimited
 If there is a significant amount of energy in frequencies above half the
sampling frequency (fs/2), aliasing will occur
 Aliasing can be prevented by first passing the analog signal through an
anti-aliasing filter (also called a prefilter) before sampling is performed
 The anti-aliasing filter is simply a LPF with cutoff frequency equal to
half the sample rate
27
Example:
 Example 1: Consider the analog signal x(t) given by
 What is the Nyquist rate for this signal?
 Example 2: Consider the analog signal xa(t) given by
 What is the Nyquist rate for this signal?
 What is the discrete time signal obtained after sampling, if fs=5000
samples/s.
 What is the analog signal x(t) that can be reconstructed from the sampled
values?
28
( ) 3cos(50 ) 100sin(300 ) cos(100 )x t t t t    
( ) 3cos2000 5sin6000 cos12000ax t t t t    
Practical Sampling Rates
 Speech
 Telephone quality speech has a bandwidth of 4 kHz (actually 300 to 3300Hz)
 Most digital telephone systems are sampled at 8000 samples/sec.
 Audio:
 The highest frequency the human ear can hear is approximately 15kHz.
 CD quality audio are sampled at rate of 44,000 samples/sec.
 Video
 The human eye requires samples at a rate of at east 20 frames/sec to
achieve smooth motion.
29
30

More Related Content

What's hot

Signal Filtering
Signal FilteringSignal Filtering
Signal Filtering
Imane Haf
 
Fir and iir filter_design
Fir and iir filter_designFir and iir filter_design
Fir and iir filter_design
shrinivasgnaik
 

What's hot (20)

SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 
Sns slide 1 2011
Sns slide 1 2011Sns slide 1 2011
Sns slide 1 2011
 
Solved problems
Solved problemsSolved problems
Solved problems
 
Ch1
Ch1Ch1
Ch1
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
 
Classification of signals
Classification of signalsClassification of signals
Classification of signals
 
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and SystemsDSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
DSP_2018_FOEHU - Lec 03 - Discrete-Time Signals and Systems
 
Signals & systems
Signals & systems Signals & systems
Signals & systems
 
Nec 602 unit ii Random Variables and Random process
Nec 602 unit ii Random Variables and Random processNec 602 unit ii Random Variables and Random process
Nec 602 unit ii Random Variables and Random process
 
Signal Filtering
Signal FilteringSignal Filtering
Signal Filtering
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
 
3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and Systems3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and Systems
 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
 
Signals and systems-1
Signals and systems-1Signals and systems-1
Signals and systems-1
 
Chapter1 - Signal and System
Chapter1 - Signal and SystemChapter1 - Signal and System
Chapter1 - Signal and System
 
Digital communication systems unit 1
Digital communication systems unit 1Digital communication systems unit 1
Digital communication systems unit 1
 
Fir and iir filter_design
Fir and iir filter_designFir and iir filter_design
Fir and iir filter_design
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Sampling
SamplingSampling
Sampling
 
Discrete Fourier Transform
Discrete Fourier TransformDiscrete Fourier Transform
Discrete Fourier Transform
 

Similar to DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals

Pulse modulation
Pulse modulationPulse modulation
Pulse modulation
avocado1111
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
HamzaJaved306957
 
Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representation
Nikolay Karpov
 
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
idescitation
 

Similar to DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals (20)

4.Sampling and Hilbert Transform
4.Sampling and Hilbert Transform4.Sampling and Hilbert Transform
4.Sampling and Hilbert Transform
 
pulse modulation technique (Pulse code modulation).pptx
pulse modulation technique (Pulse code modulation).pptxpulse modulation technique (Pulse code modulation).pptx
pulse modulation technique (Pulse code modulation).pptx
 
Lecture9
Lecture9Lecture9
Lecture9
 
Lecture9 Signal and Systems
Lecture9 Signal and SystemsLecture9 Signal and Systems
Lecture9 Signal and Systems
 
sampling.ppt
sampling.pptsampling.ppt
sampling.ppt
 
unit4 sampling.pptx
unit4 sampling.pptxunit4 sampling.pptx
unit4 sampling.pptx
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
 
Unit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdfUnit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdf
 
DSP Lab 1-6.pdf
DSP Lab 1-6.pdfDSP Lab 1-6.pdf
DSP Lab 1-6.pdf
 
UPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptxUPDATED Sampling Lecture (2).pptx
UPDATED Sampling Lecture (2).pptx
 
Pulse modulation
Pulse modulationPulse modulation
Pulse modulation
 
Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
 
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐCHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
CHƯƠNG 2 KỸ THUẬT TRUYỀN DẪN SỐ - THONG TIN SỐ
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
 
Signal, Sampling and signal quantization
Signal, Sampling and signal quantizationSignal, Sampling and signal quantization
Signal, Sampling and signal quantization
 
Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representation
 
unit 4,5 (1).docx
unit 4,5 (1).docxunit 4,5 (1).docx
unit 4,5 (1).docx
 
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
Accurate Evaluation of Interharmonics of a Six Pulse, Full Wave - Three Phase...
 
Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05Digital Signal Processing[ECEG-3171]-Ch1_L05
Digital Signal Processing[ECEG-3171]-Ch1_L05
 
Multrate dsp
Multrate dspMultrate dsp
Multrate dsp
 

More from Amr E. Mohamed

More from Amr E. Mohamed (20)

Dcs lec03 - z-analysis of discrete time control systems
Dcs   lec03 - z-analysis of discrete time control systemsDcs   lec03 - z-analysis of discrete time control systems
Dcs lec03 - z-analysis of discrete time control systems
 
Dcs lec02 - z-transform
Dcs   lec02 - z-transformDcs   lec02 - z-transform
Dcs lec02 - z-transform
 
Dcs lec01 - introduction to discrete-time control systems
Dcs   lec01 - introduction to discrete-time control systemsDcs   lec01 - introduction to discrete-time control systems
Dcs lec01 - introduction to discrete-time control systems
 
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing ApplicationsDDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
DDSP_2018_FOEHU - Lec 10 - Digital Signal Processing Applications
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
SE2018_Lec 17_ Coding
SE2018_Lec 17_ CodingSE2018_Lec 17_ Coding
SE2018_Lec 17_ Coding
 
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-Tools
 
SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)SE2018_Lec 21_ Software Configuration Management (SCM)
SE2018_Lec 21_ Software Configuration Management (SCM)
 
SE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design PatternsSE2018_Lec 18_ Design Principles and Design Patterns
SE2018_Lec 18_ Design Principles and Design Patterns
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)SE2018_Lec 20_ Test-Driven Development (TDD)
SE2018_Lec 20_ Test-Driven Development (TDD)
 
SE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingSE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software Testing
 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital Filters
 
DSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-TransformDSP_2018_FOEHU - Lec 04 - The z-Transform
DSP_2018_FOEHU - Lec 04 - The z-Transform
 
SE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software DesignSE2018_Lec 15_ Software Design
SE2018_Lec 15_ Software Design
 
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingDSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
 
DSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesDSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course Outlines
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
 
SE18_Lec 13_ Project Planning
SE18_Lec 13_ Project PlanningSE18_Lec 13_ Project Planning
SE18_Lec 13_ Project Planning
 
SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1SE18_SE_Lec 12_ Project Management 1
SE18_SE_Lec 12_ Project Management 1
 

Recently uploaded

Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (20)

Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 

DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals

  • 2. Signal Types  Analog signals: continuous in time and amplitude  Example: voltage, current, temperature,…  Digital signals: discrete both in time and amplitude  Example: attendance of this class, digitizes analog signals,…  Discrete-time signal: discrete in time, continuous in amplitude  Example: hourly change of temperature in Austin  Theory is based on discrete-time continuous-amplitude signals  Most convenient to develop theory  Good enough approximation to practice with some care 2
  • 3. Why digital?  Digital techniques need to distinguish between discrete symbols allowing regeneration versus amplification  Good processing techniques are available for digital signals, such as medium.  Data compression (or source coding)  Error Correction (or channel coding)  Equalization  Security  Easy to mix signals and data using digital techniques (Time Division Multiplexing) 3
  • 4. 4
  • 5. Analog to Digital Conversion 5
  • 6. Analog to Digital Conversion  Analog-to-digital conversion is (basically) a 2 step process:  Sampling • Convert from continuous-time analog signal xa(t) to discrete-time continuous value signal x(n). • Is obtained by taking the “samples” of xa(t) at discrete-time intervals, Ts  Quantization • Convert from discrete-time continuous valued signal to discrete time discrete valued signal 6
  • 7. Definition  Bit Rate  Actual rate at which information is transmitted per second  Baud Rate  Refers to the rate at which the signaling elements are transmitted, i.e. number of signaling elements per second.  Bit Error Rate  The probability that one of the bits is in error or simply the probability of error 7
  • 9. Sampling  Sampling is the processes of converting continuous-time analog signal, xa(t), into a discrete-time signal by taking the “samples” at discrete-time intervals  Sampling analog signals makes them discrete in time but still continuous valued.  If done properly (Nyquist theorem is satisfied), sampling does not introduce distortion  Sampled values:  The value of the function at the sampling points  Sampling interval:  The time that separates sampling points (interval b/w samples), Ts  If the signal is slowly varying, then fewer samples per second will be required than if the waveform is rapidly varying  So, the optimum sampling rate depends on the maximum frequency component present in the signal 9
  • 10. First step toward Digital Signal Processing  Main question: Can a finite number of samples of a continuous wave be enough to represent the information? OR Can you tell what the original signal was below? 10
  • 11. Sampling Types  Ideal Sampling  Natural Sampling (Exact Sampling)  Flat-Top Sampling 11
  • 12. Ideal Sampling  Sampling Rate (or sampling frequency fs):  The rate at which the signal is sampled, expressed as the number of samples per second (reciprocal of the sampling interval), 1/Ts = fs  Nyquist Sampling Theorem (or Nyquist Criterion):  If the sampling is performed at a proper rate, no info is lost about the original signal and it can be properly reconstructed later on  Statement: “If a signal is sampled at a rate at least, but not exactly equal to twice the max frequency component of the waveform, then the waveform can be exactly reconstructed from the samples without any distortion” 12 max2sf f
  • 13. Ideal Sampling ( or Impulse Sampling)  Is accomplished by the multiplication of the signal x(t) by the uniform train of impulses (comb function)  Consider the instantaneous sampling of the analog signal x(t)  Train of impulse functions select sample values at regular intervals  Fourier Series representation: 13 1 2 ( ) ,sjn t s s n ns s t nT e T T                            n ss n ss nTtnTxnTttxtx 
  • 14. Ideal Sampling ( or Impulse Sampling)  Therefore, we have:  Take Fourier Transform (frequency convolution) 14 𝑋𝑠 𝜔 = 1 2𝜋 . 𝑋 𝜔 ∗ ℱ 1 𝑇𝑠 𝑛=−∞ ∞ 𝑒 𝑗𝑛𝜔 𝑠 𝑡 = 1 2𝜋 𝑋 𝜔 ∗ 1 𝑇𝑠 𝑛=−∞ ∞ ℱ 𝑒 𝑗𝑛𝜔 𝑠 𝑡 𝑋𝑠 𝜔 = 1 2𝜋 𝑋 𝜔 ∗ 2𝜋 𝑇𝑠 𝑛=−∞ ∞ 𝛿(𝜔 − 𝑛𝜔𝑠) 𝑋𝑠 𝜔 = 1 𝑇𝑠 𝑛=−∞ ∞ 𝑋(𝜔 − 𝑛𝜔𝑠) 𝑥 𝑠 𝑡 = 𝑥 𝑡 . 𝛿 𝑇 𝑡 = 𝑥 𝑡 . 1 𝑇𝑠 𝑛=−∞ ∞ 𝑒 𝑗𝑛𝜔 𝑠 𝑡
  • 15. Ideal Sampling ( or Impulse Sampling)  This shows that the Fourier Transform of the sampled signal is the Fourier Transform of the original signal at rate of 1/Ts 15
  • 16. Ideal Sampling ( or Impulse Sampling) 16  As long as fs> 2fm, no overlap of repeated replicas X(f - n/Ts) will occur in Xs(f)  Minimum Sampling Condition: 2s m m s mf f f f f   
  • 17. Ideal Sampling ( or Impulse Sampling)  Under-Sampling and Aliasing  If the waveform is undersampled (i.e. fs < 2B) then there will be spectral overlap in the sampled signal  The signal at the output of the filter will be different from the original signal spectrum. [This is the outcome of aliasing!]  This implies that whenever the sampling condition is not met, an irreversible overlap of the spectral replicas is produced 17
  • 18. 18  Ts is called the Nyquist interval: It is the longest time interval that can be used for sampling a bandlimited signal and still allow reconstruction of the signal at the receiver without distortion
  • 19. Ideal Sampling ( or Impulse Sampling)  Sampling Theorem: A finite energy function x(t) can be completely reconstructed from its sampled value x(nTs) with 19 provided that => 2 ( ) sin 2 ( ) ( ) ( ) s s s s n s f t nT T x t T x nT t nT                       ( ) sin (2 ( ))s s s s n T x nT c f t nT     1 1 2 s s m T f f  
  • 20. Practical Sampling  In practice we cannot perform ideal sampling  It is practically difficult to create a train of impulses  Thus a non-ideal approach to sampling must be used  We can approximate a train of impulses using a train of very thin rectangular pulses:  Note:  Fourier Transform of impulse train is another impulse train  Convolution with an impulse train is a shifting operation 20 ( ) s p n t nT x t           
  • 21. Natural Sampling  If we multiply x(t) by a train of rectangular pulses xp(t), we obtain a gated waveform that approximates the ideal sampled waveform, known as natural sampling or gating (see Figure 2.8) 21 ( ) ( ) ( )s px t x t x t 2 ( ) sj nf t n n x t c e      ( ) [ ( ) ( )]s pX f x t x t  2 [ ( ) ]sj nf t n n c x t e      [ ]n s n c X f nf    
  • 22. Natural Sampling  Each pulse in xp(t) has width Ts and amplitude 1/Ts  The top of each pulse follows the variation of the signal being sampled  Xs (f) is the replication of X(f) periodically every fs Hz  Xs (f) is weighted by Cn  Fourier Series Coefficient  The problem with a natural sampled waveform is that the tops of the sample pulses are not flat  It is not compatible with a digital system since the amplitude of each sample has infinite number of possible values  Another technique known as flat top sampling is used to alleviate this problem 22
  • 23. Flat-Top Sampling  Here, the pulse is held to a constant height for the whole sample period  Flat top sampling is obtained by the convolution of the signal obtained after ideal sampling with a unity amplitude rectangular pulse, p(t)  This technique is used to realize Sample-and-Hold (S/H) operation  In S/H, input signal is continuously sampled and then the value is held for as long as it takes to for the A/D to acquire its value 23
  • 24. Flat-Top Sampling Flat top sampling (Time Domain) 24 '( ) ( ) ( )x t x t t ( ) '( )* ( )sx t x t p t ( )* ( ) ( ) ( )* ( ) ( )s n p t x t t p t x t t nT            
  • 25. Flat-Top Sampling  Taking the Fourier Transform will result to  where P(f) is a sinc function 25 ( ) [ ( )]s sX f x t ( ) ( ) ( )s n P f x t t nT            1 ( ) ( )* ( )s ns P f X f f nf T             1 ( ) ( )s ns P f X f nf T    
  • 26. Flat top sampling (Frequency Domain)  Flat top sampling becomes identical to ideal sampling as the width of the pulses become shorter 26
  • 27. Solution: Anti-Aliasing Analog Filter  All physically realizable signals are not completely bandlimited  If there is a significant amount of energy in frequencies above half the sampling frequency (fs/2), aliasing will occur  Aliasing can be prevented by first passing the analog signal through an anti-aliasing filter (also called a prefilter) before sampling is performed  The anti-aliasing filter is simply a LPF with cutoff frequency equal to half the sample rate 27
  • 28. Example:  Example 1: Consider the analog signal x(t) given by  What is the Nyquist rate for this signal?  Example 2: Consider the analog signal xa(t) given by  What is the Nyquist rate for this signal?  What is the discrete time signal obtained after sampling, if fs=5000 samples/s.  What is the analog signal x(t) that can be reconstructed from the sampled values? 28 ( ) 3cos(50 ) 100sin(300 ) cos(100 )x t t t t     ( ) 3cos2000 5sin6000 cos12000ax t t t t    
  • 29. Practical Sampling Rates  Speech  Telephone quality speech has a bandwidth of 4 kHz (actually 300 to 3300Hz)  Most digital telephone systems are sampled at 8000 samples/sec.  Audio:  The highest frequency the human ear can hear is approximately 15kHz.  CD quality audio are sampled at rate of 44,000 samples/sec.  Video  The human eye requires samples at a rate of at east 20 frames/sec to achieve smooth motion. 29
  • 30. 30