SlideShare a Scribd company logo
1 of 25
Download to read offline
Chapter 2
Signal Sampling
and Quantization
1
CEN352 Dr. Nassim Ammour King Saud University
Introduction1
β€’ Even most of signals are in continuous-time domain, they should be converted to a number at different discrete
time to be processed by a microprocessor.
β€’ The process of convertingthese signals into digital form is called analog-to-digital (A/D) conversion.
β€’ The reverse process of reconstructing an analog signal from its samples is known as digital-to-analog (D/A)
conversion.
Components of an analog-to-digital converter (ADC)
Sampler converts the
continuous-time signal into a
discrete-time sequence
maps the continuous
amplitude into a discrete
set of amplitudes
takes the digital signal
and produces a sequence
of binary code-words
2
CEN352 Dr. Nassim Ammour King Saud University
CEN352 Dr. Nassim Ammour King Saud University 3
8 Bit Code
Digital Processor
Introduction2
Sampling
β€’ The reciprocal 𝐹𝑠 is called sampling frequency (cycles per second or Hz) or sampling rate (samples per second).
β€’ Periodic or uniform sampling, a sequence of samples π‘₯[𝑛] is obtained from a continuous-time signal π‘₯𝑐 [𝑑] by
taking values at equally spaced points in time. T is the fixed time interval between samples, is known as the
the sampling period.
𝐹𝑠 = 1 𝑇
Sampling rate
Sample per second (Hz)
Sampling period
(second)
Sample and Hold
4
CEN352 Dr. Nassim Ammour King Saud University
Example sampling period: T = 125 Β΅s.
sampling rate: 𝐹𝑠 =1/125Β΅s = 8,000 samples per second (Hz).
Sampling Process
β€’ The sampling of a continuous-timesignal π‘₯[𝑛]
is equivalent to multiply the signal with pulse
train signal 𝑆(𝑑).
π‘₯ 𝑑 Input analog signal
𝑆(𝑑) Pulse train
π‘₯𝑠 𝑑 = π‘₯ 𝑑 βˆ™ 𝑆(𝑑) =
𝑛=βˆ’βˆž
∞
)
π‘₯π‘Ž 𝑛𝑇𝑠 𝛿(𝑑 βˆ’ 𝑛𝑇𝑠
Sampled signal
5
CEN352 Dr. Nassim Ammour King Saud University
Sampled
signal
input signal
Pulse Train
signal
CEN352 Dr. Nassim Ammour King Saud University 6
Sampling Process – frequency domain 1
β€’ The signal π‘₯𝑐 [𝑑] and its spectrum 𝑋𝑐 (𝑗Ω)
β€’ The sequence π‘₯[𝑛] and its periodic spectrum 𝑋 (π‘—πœ”)
β€’ Since π‘₯[𝑛] is related to π‘₯𝑐 𝑑 π‘€π‘–π‘‘β„Ž 𝑑 = 𝑛𝑇 =
𝑛
𝐹𝑠
(1)
(2)
(1)(2)
β€’ The desired relationship between sampled signal spectrum 𝑋𝑠 𝐹 and the continuoussignal spectrum 𝑋𝑐 (𝐹)
𝑋𝑠(𝐹): Sampled signal spectrum
𝑋𝑐 𝐹 : Original signal spectrum
𝑋 𝐹 Β± π‘˜πΉπ‘  : Replicaspectrum
𝑋𝑠(𝐹) =
1
𝑇
π‘˜=βˆ’βˆž
∞
𝑋𝑐 𝐹 βˆ’ π‘˜πΉπ‘ 
From spectral analysis , and after
some mathematical operations
Fourier Transform
Inverse Fourier Transform
Analog Frequency (Hz)
Sampling Frequency (Hz)
Normalized Frequency
(Cycles/ Sample)
Sampling Process – frequency domain 2
𝑋𝑠 𝑓 = β‹―+
1
𝑇
𝑋𝑐 𝐹 + 𝐹𝑠 +
1
𝑇
𝑋𝑐 𝐹 +
1
𝑇
𝑋𝑐 𝐹 βˆ’ 𝐹𝑠 + β‹―
7
CEN352 Dr. Nassim Ammour King Saud University
β€’ The spectrum of π‘₯[𝑛] can be readily sketched if π‘₯𝑐(𝑑)is assumed to be band-limited. 𝑋𝑐 𝐹 = 0 π‘“π‘œπ‘Ÿ 𝐹 > 𝐹𝐻
β€’ Spectrum of π‘₯[𝑛] is obtained by scaling the spectrum of π‘₯𝑐[𝑑], putting copies of the scaled spectrum
1
𝑇
𝑋𝑐(𝐹),
at all integer multiples of the sampling frequency 𝐹𝑠 =
1
𝑇
.
𝑋𝑠(𝐹) =
1
𝑇
π‘˜=βˆ’βˆž
∞
𝑋𝑐 𝐹 βˆ’ π‘˜πΉπ‘ 
β€’ Two conditions obviously are necessary to prevent
overlapping spectral bands:
1. The continuous-time signal must be band-limited.
2. The sampling frequency Ω𝑠 must be sufficientlylarge so that:
Spectrum of continuous-time band-limited signal π‘₯𝑐(𝑑)
CEN352 Dr. Nassim Ammour King Saud University 8
Sampling Process – frequency domain 3
β€’ The sampling operation leaves the input spectrum 𝑋𝑐(Ξ©) intact when Ω𝑠 > 2Ω𝐻, therefore, it should be possible
to recover or reconstruct π‘₯𝑐(𝑑) from the sequence π‘₯ 𝑛 .
β€’ Sampling at Ω𝑠 > 2Ω𝐻creates a guard band which simplifies the reconstruction process in practical applications.
spectrum of discrete-time signal π‘₯ 𝑛 = π‘₯𝑐 𝑛𝑇 with Ω𝑠 > 2Ω𝐻
Case 1: Ω𝑠 > 2Ω𝐻
CEN352 Dr. Nassim Ammour King Saud University 9
Sampling Process – frequency domain 4
spectrum of x[n], showing aliasing distortion, when s Ω𝑠 < 2Ω𝐻
β€’ If Ω𝑠 < 2Ω𝐻, the scaled copies of 𝑋𝑐(Ξ©) overlap, so that when they are added together, 𝑋𝑐(Ξ©) cannot be
recovered from 𝑋(Ξ©) .
β€’ This effect, in which individual terms overlap is known as aliasing distortion or simply aliasing.
Case2: Ω𝑠 < 2Ω𝐻
Sampling Theorem 1
10
CEN352 Dr. Nassim Ammour King Saud University
β€’ Question: Are the samples π‘₯[𝑛] sufficientto describe uniquely the original continuous-time signal and, if so, how
can π‘₯𝑐 [𝑑] be reconstructed from π‘₯[𝑛] ? An infinite number of signals can generate the same set of samples.
β€’ Answer: The response lies in the frequency domain, in the relation between the spectra of π‘₯𝑐 [𝑑] and π‘₯[𝑛] .
different continuous-time signals with the same set of sample values
Sampling Theorem 2
11
CEN352 Dr. Nassim Ammour King Saud University
One sample
each 0.01 s
The signal is under-sampled 2 fmax=180 > fs
𝑇 = 0.01 sec β†’ 𝐹𝑠 =
1
𝑇
=
1
0.01
= 100 𝐻𝑧
Sampling Theorem 3
β€’ An analog signal can be perfectly recovered (reconstruction filter) as long as the sampling rate is at least twice
as large as the highest-frequencycomponent of the analog signal to be sampled (Shannon sampling theorem).
β€’ Half of the sampling frequency
𝐹𝑠
2
is usually called the Nyquist frequency (Nyquist limit), or folding frequency.
12
CEN352 Dr. Nassim Ammour King Saud University
β€’ Let π‘₯𝑐(𝑑) be a continuous-time band-limited signal with Fourier transform:
Then π‘₯𝑐(𝑑) can be uniquely determinedby its samples π‘₯ 𝑛 = π‘₯𝑐(𝑛𝑇), where 𝑛 = 0, Β±1, Β±2, … if the sampling
frequency Ω𝑠 satisfies the condition:
𝐹𝑠 =
2πœ‹
𝑇𝑠
β‰₯ 2 πΉπ‘šπ‘Žπ‘₯
Example: To sample a speech signal containing frequencies up to 4 kHz, the minimum sampling rate is chosen
to be at least 8 kHz, or 8,000 samples per second.
Example 1
Problem:
Solution:
Using Euler’s identity,
Hence, the Fourier series coefficients are:
13
CEN352 Dr. Nassim Ammour King Saud University
Euler's
identity
Example 1 – Contd.
a.
b. After the analog signal is sampled at the rate of 8,000Hz, the
sampled signal spectrum and its replicas centered at the
frequencies Β±n𝑓
𝑠, each with the scaled amplitude being 2.5/T .
14
CEN352 Dr. Nassim Ammour King Saud University
Replicas,no
additional
information.
Scaled
amplitude
of 2.5/T
Signal Reconstruction
(Digital-to-Analog Conversion)
15
CEN352 Dr. Nassim Ammour King Saud University
β€’ The reconstructionprocess (recoveringthe analog signal from its sampled signal) involves two steps.
β€’ First: the samples π‘₯ 𝑛 (digitalsignal )are converted
into a sequence of ideal impulses π‘₯𝑠 𝑑 , in which
each impulse has its amplitude proportional to digital
output π‘₯ 𝑛 , and two consecutiveimpulses are
separated by a sampling period of T.
π‘₯𝑠 𝑑 =
𝑛=βˆ’βˆž
∞
)
π‘₯ 𝑛 𝛿(𝑑 βˆ’ 𝑛𝑇𝑠
β€’ Second: The analog reconstructionfilter (ideal
low-pass filter) is applied to the ideally recovered
signal π‘₯𝑠 𝑑 to obtain the recoveredanalog signal.
The impulse response of the reconstruction filter
is
β„Žπ‘Ÿ 𝑑 =
sin(
πœ‹π‘‘
𝑇𝑠
)
πœ‹π‘‘
𝑇𝑠
CEN352 Dr. Nassim Ammour King Saud University 16
Signal Reconstruction – Contd.
β€’ Before applying the reconstruction filter,
a zero-order hold is used to interpolate
between the samples in xs(t).
β€’ Reconstruction filter
Ideal low-pass
filter
An ideal low-pass reconstructionfilter is
required to recover the analog signal
Spectrum ( an impractical case).
A practical low-pass reconstruction
(anti-image)filter can be designed to reject
all the images and achieve the original signal
spectrum.
Practical low-pass
filter
CEN352 Dr. Nassim Ammour King Saud University 17
Signal Reconstruction – Contd.
 Perfect reconstruction is not possible, even if we use ideal low pass filter.
Aliasing
the conditionof the Shannon sampling theorem
is violated.We can see the spectral overlapping
between the original baseband spectrumand the
spectrum of the replica (add aliasing noise)
 if an analog signal with a frequency f is under-sampled, the aliasing frequency
component π‘“π‘Žπ‘™π‘–π‘Žπ‘  in the baseband is simply given by:
CEN352 Dr. Nassim Ammour King Saud University 18
Example 2
Problem:
Solution:
Using the Euler’s identity:
CEN352 Dr. Nassim Ammour King Saud University 19
a.
b.
The Shannon sampling theory condition is satisfied
CEN352 Dr. Nassim Ammour King Saud University 20
Example 3
Problem:
Solution:
a. b.
CEN352 Dr. Nassim Ammour King Saud University 21
8 Quantization
β€’ During the ADC process, amplitudes of the analog signal to be converted have infinite
precision.
β€’ Quantization : The quantizer converts the continuous amplitude signal discrete amplitude
signal.
β€’ Encoding: After quantization, each quantization level is assigned a unique binary code.
A block diagram for a DSP system
CEN352 Dr. Nassim Ammour King Saud University 22
8 Quantization – Contd.
β€’ A unipolar quantizer deals with analog signals ranging from 0 volt to a positive reference voltage
βˆ†=
π‘₯π‘šπ‘Žπ‘₯ βˆ’ π‘₯π‘šπ‘–π‘›
𝐿
π‘₯π‘šπ‘Žπ‘₯ : Max value of analog signal
π‘₯π‘šπ‘–π‘› : Min value of analog signal
𝐿: Number of quantizationlevel
𝐿 = 2π‘š
π‘š : Number of bits in ADC
βˆ† : Step size of quantizer (ADC resolution)
𝑖 = π‘Ÿπ‘œπ‘’π‘›π‘‘
π‘₯ βˆ’ π‘₯π‘šπ‘–π‘›
βˆ†
𝑖 : Index correspondingto binary code
𝒙𝒒: Quantizationlevel π‘₯π‘ž = π‘₯π‘šπ‘–π‘› + 𝑖 βˆ™ βˆ† 𝑖 = 0,1, …, 𝐿 βˆ’ 1
π‘’π‘ž: Quantizationerror π‘’π‘ž = π‘₯π‘ž βˆ’ π‘₯ π‘€π‘–π‘‘β„Ž βˆ’
βˆ†
2
≀ π‘’π‘ž ≀
βˆ†
2
CEN352 Dr. Nassim Ammour King Saud University 23
Example:3-bit ADC channel accepts analog input ranging from 0 to 5 volts,
8 Quantization – Contd.
β€’ bipolar quantizer deals with analog signals ranging from a negative reference to a positive
reference.
CEN352 Dr. Nassim Ammour King Saud University 24
9 Periodicity
β€’ In discrete-time case, a periodic sequence is a sequence for which
where the period N is necessarily an integer.
Example 1:
Period of N = 8
periodic sequence with N = 7 samples
π‘₯ 𝑛 = 𝐴 π‘π‘œπ‘ (πœ”π‘› + πœƒ)
Discrete sinusoidal:
Pulsation:πœ” (rad/sample)
Phase shift: πœƒ
Frequency: 𝑓 =
πœ”
2πœ‹
cycle/sample
Period: 𝑁 =
1
𝑓
πœ” =
πœ‹
4
β†’ 𝑓 =
πœ”
2πœ‹
=
πœ‹
4
2πœ‹
=
1
8
β†’ 𝑁 =
1
𝑓
= 8
CEN352 Dr. Nassim Ammour King Saud University 25
9 Periodicity – Contd.
Example 2: Not periodic with N = 8
But periodic with N = 16 (Must be integer)
πœ” =
3πœ‹
8
β†’ 𝑓 =
πœ”
2πœ‹
=
3 πœ‹
8
2πœ‹
=
3
16
β†’ 𝑁 =
1
𝑓
= 3 Γ—
16
3

More Related Content

Similar to Signal, Sampling and signal quantization

Digital communication
Digital communicationDigital communication
Digital communicationmeashi
Β 
Spectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate ConverterSpectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate ConverterCSCJournals
Β 
Unit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdfUnit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdfTejasAuti4
Β 
SignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxSignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxPriyankaDarshana
Β 
VISHAV snp.pptx
VISHAV snp.pptxVISHAV snp.pptx
VISHAV snp.pptxNeerajBhatt62
Β 
Communication engineering notes uniit ii
Communication engineering notes uniit iiCommunication engineering notes uniit ii
Communication engineering notes uniit iiManoj Kumar
Β 
Overview of sampling
Overview of samplingOverview of sampling
Overview of samplingSagar Kumar
Β 
lecture_25-26__modeling_digital_control_systems.pptx
lecture_25-26__modeling_digital_control_systems.pptxlecture_25-26__modeling_digital_control_systems.pptx
lecture_25-26__modeling_digital_control_systems.pptxAnshulShekhar3
Β 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with NotesLeon Nguyen
Β 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNALkaran sati
Β 
communication concepts on sampling process
communication concepts on sampling processcommunication concepts on sampling process
communication concepts on sampling processNatarajVijapur
Β 
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 DesignAmr E. Mohamed
Β 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmDEEPIKA KAMBOJ
Β 
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...CSCJournals
Β 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114IJRAT
Β 

Similar to Signal, Sampling and signal quantization (20)

Digital communication
Digital communicationDigital communication
Digital communication
Β 
Sampling
SamplingSampling
Sampling
Β 
Spectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate ConverterSpectral Analysis of Sample Rate Converter
Spectral Analysis of Sample Rate Converter
Β 
Unit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdfUnit 4 Pulse Modulation.pdf
Unit 4 Pulse Modulation.pdf
Β 
SignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxSignalDecompositionTheory.pptx
SignalDecompositionTheory.pptx
Β 
VISHAV snp.pptx
VISHAV snp.pptxVISHAV snp.pptx
VISHAV snp.pptx
Β 
EC6651 COMMUNICATION ENGINEERING UNIT 2
EC6651 COMMUNICATION ENGINEERING UNIT 2EC6651 COMMUNICATION ENGINEERING UNIT 2
EC6651 COMMUNICATION ENGINEERING UNIT 2
Β 
Communication engineering notes uniit ii
Communication engineering notes uniit iiCommunication engineering notes uniit ii
Communication engineering notes uniit ii
Β 
IARE_DSP_PPT.pptx
IARE_DSP_PPT.pptxIARE_DSP_PPT.pptx
IARE_DSP_PPT.pptx
Β 
Overview of sampling
Overview of samplingOverview of sampling
Overview of sampling
Β 
lecture_25-26__modeling_digital_control_systems.pptx
lecture_25-26__modeling_digital_control_systems.pptxlecture_25-26__modeling_digital_control_systems.pptx
lecture_25-26__modeling_digital_control_systems.pptx
Β 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with Notes
Β 
23 Sampling.pdf
23 Sampling.pdf23 Sampling.pdf
23 Sampling.pdf
Β 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
Β 
Digitization
DigitizationDigitization
Digitization
Β 
communication concepts on sampling process
communication concepts on sampling processcommunication concepts on sampling process
communication concepts on sampling process
Β 
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
Β 
L 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcmL 1 5 sampling quantizing encoding pcm
L 1 5 sampling quantizing encoding pcm
Β 
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...
Electrocardiogram Denoised Signal by Discrete Wavelet Transform and Continuou...
Β 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114
Β 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
Β 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
Β 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
Β 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
Β 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
Β 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
Β 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
Β 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
Β 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
Β 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
Β 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
Β 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
Β 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
Β 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
Β 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
Β 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Β 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Β 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
Β 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
Β 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
Β 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Β 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
Β 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
Β 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
Β 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Β 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Β 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
Β 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
Β 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
Β 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Β 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
Β 

Signal, Sampling and signal quantization

  • 1. Chapter 2 Signal Sampling and Quantization 1 CEN352 Dr. Nassim Ammour King Saud University
  • 2. Introduction1 β€’ Even most of signals are in continuous-time domain, they should be converted to a number at different discrete time to be processed by a microprocessor. β€’ The process of convertingthese signals into digital form is called analog-to-digital (A/D) conversion. β€’ The reverse process of reconstructing an analog signal from its samples is known as digital-to-analog (D/A) conversion. Components of an analog-to-digital converter (ADC) Sampler converts the continuous-time signal into a discrete-time sequence maps the continuous amplitude into a discrete set of amplitudes takes the digital signal and produces a sequence of binary code-words 2 CEN352 Dr. Nassim Ammour King Saud University
  • 3. CEN352 Dr. Nassim Ammour King Saud University 3 8 Bit Code Digital Processor Introduction2
  • 4. Sampling β€’ The reciprocal 𝐹𝑠 is called sampling frequency (cycles per second or Hz) or sampling rate (samples per second). β€’ Periodic or uniform sampling, a sequence of samples π‘₯[𝑛] is obtained from a continuous-time signal π‘₯𝑐 [𝑑] by taking values at equally spaced points in time. T is the fixed time interval between samples, is known as the the sampling period. 𝐹𝑠 = 1 𝑇 Sampling rate Sample per second (Hz) Sampling period (second) Sample and Hold 4 CEN352 Dr. Nassim Ammour King Saud University Example sampling period: T = 125 Β΅s. sampling rate: 𝐹𝑠 =1/125Β΅s = 8,000 samples per second (Hz).
  • 5. Sampling Process β€’ The sampling of a continuous-timesignal π‘₯[𝑛] is equivalent to multiply the signal with pulse train signal 𝑆(𝑑). π‘₯ 𝑑 Input analog signal 𝑆(𝑑) Pulse train π‘₯𝑠 𝑑 = π‘₯ 𝑑 βˆ™ 𝑆(𝑑) = 𝑛=βˆ’βˆž ∞ ) π‘₯π‘Ž 𝑛𝑇𝑠 𝛿(𝑑 βˆ’ 𝑛𝑇𝑠 Sampled signal 5 CEN352 Dr. Nassim Ammour King Saud University Sampled signal input signal Pulse Train signal
  • 6. CEN352 Dr. Nassim Ammour King Saud University 6 Sampling Process – frequency domain 1 β€’ The signal π‘₯𝑐 [𝑑] and its spectrum 𝑋𝑐 (𝑗Ω) β€’ The sequence π‘₯[𝑛] and its periodic spectrum 𝑋 (π‘—πœ”) β€’ Since π‘₯[𝑛] is related to π‘₯𝑐 𝑑 π‘€π‘–π‘‘β„Ž 𝑑 = 𝑛𝑇 = 𝑛 𝐹𝑠 (1) (2) (1)(2) β€’ The desired relationship between sampled signal spectrum 𝑋𝑠 𝐹 and the continuoussignal spectrum 𝑋𝑐 (𝐹) 𝑋𝑠(𝐹): Sampled signal spectrum 𝑋𝑐 𝐹 : Original signal spectrum 𝑋 𝐹 Β± π‘˜πΉπ‘  : Replicaspectrum 𝑋𝑠(𝐹) = 1 𝑇 π‘˜=βˆ’βˆž ∞ 𝑋𝑐 𝐹 βˆ’ π‘˜πΉπ‘  From spectral analysis , and after some mathematical operations Fourier Transform Inverse Fourier Transform Analog Frequency (Hz) Sampling Frequency (Hz) Normalized Frequency (Cycles/ Sample)
  • 7. Sampling Process – frequency domain 2 𝑋𝑠 𝑓 = β‹―+ 1 𝑇 𝑋𝑐 𝐹 + 𝐹𝑠 + 1 𝑇 𝑋𝑐 𝐹 + 1 𝑇 𝑋𝑐 𝐹 βˆ’ 𝐹𝑠 + β‹― 7 CEN352 Dr. Nassim Ammour King Saud University β€’ The spectrum of π‘₯[𝑛] can be readily sketched if π‘₯𝑐(𝑑)is assumed to be band-limited. 𝑋𝑐 𝐹 = 0 π‘“π‘œπ‘Ÿ 𝐹 > 𝐹𝐻 β€’ Spectrum of π‘₯[𝑛] is obtained by scaling the spectrum of π‘₯𝑐[𝑑], putting copies of the scaled spectrum 1 𝑇 𝑋𝑐(𝐹), at all integer multiples of the sampling frequency 𝐹𝑠 = 1 𝑇 . 𝑋𝑠(𝐹) = 1 𝑇 π‘˜=βˆ’βˆž ∞ 𝑋𝑐 𝐹 βˆ’ π‘˜πΉπ‘  β€’ Two conditions obviously are necessary to prevent overlapping spectral bands: 1. The continuous-time signal must be band-limited. 2. The sampling frequency Ω𝑠 must be sufficientlylarge so that: Spectrum of continuous-time band-limited signal π‘₯𝑐(𝑑)
  • 8. CEN352 Dr. Nassim Ammour King Saud University 8 Sampling Process – frequency domain 3 β€’ The sampling operation leaves the input spectrum 𝑋𝑐(Ξ©) intact when Ω𝑠 > 2Ω𝐻, therefore, it should be possible to recover or reconstruct π‘₯𝑐(𝑑) from the sequence π‘₯ 𝑛 . β€’ Sampling at Ω𝑠 > 2Ω𝐻creates a guard band which simplifies the reconstruction process in practical applications. spectrum of discrete-time signal π‘₯ 𝑛 = π‘₯𝑐 𝑛𝑇 with Ω𝑠 > 2Ω𝐻 Case 1: Ω𝑠 > 2Ω𝐻
  • 9. CEN352 Dr. Nassim Ammour King Saud University 9 Sampling Process – frequency domain 4 spectrum of x[n], showing aliasing distortion, when s Ω𝑠 < 2Ω𝐻 β€’ If Ω𝑠 < 2Ω𝐻, the scaled copies of 𝑋𝑐(Ξ©) overlap, so that when they are added together, 𝑋𝑐(Ξ©) cannot be recovered from 𝑋(Ξ©) . β€’ This effect, in which individual terms overlap is known as aliasing distortion or simply aliasing. Case2: Ω𝑠 < 2Ω𝐻
  • 10. Sampling Theorem 1 10 CEN352 Dr. Nassim Ammour King Saud University β€’ Question: Are the samples π‘₯[𝑛] sufficientto describe uniquely the original continuous-time signal and, if so, how can π‘₯𝑐 [𝑑] be reconstructed from π‘₯[𝑛] ? An infinite number of signals can generate the same set of samples. β€’ Answer: The response lies in the frequency domain, in the relation between the spectra of π‘₯𝑐 [𝑑] and π‘₯[𝑛] . different continuous-time signals with the same set of sample values
  • 11. Sampling Theorem 2 11 CEN352 Dr. Nassim Ammour King Saud University One sample each 0.01 s The signal is under-sampled 2 fmax=180 > fs 𝑇 = 0.01 sec β†’ 𝐹𝑠 = 1 𝑇 = 1 0.01 = 100 𝐻𝑧
  • 12. Sampling Theorem 3 β€’ An analog signal can be perfectly recovered (reconstruction filter) as long as the sampling rate is at least twice as large as the highest-frequencycomponent of the analog signal to be sampled (Shannon sampling theorem). β€’ Half of the sampling frequency 𝐹𝑠 2 is usually called the Nyquist frequency (Nyquist limit), or folding frequency. 12 CEN352 Dr. Nassim Ammour King Saud University β€’ Let π‘₯𝑐(𝑑) be a continuous-time band-limited signal with Fourier transform: Then π‘₯𝑐(𝑑) can be uniquely determinedby its samples π‘₯ 𝑛 = π‘₯𝑐(𝑛𝑇), where 𝑛 = 0, Β±1, Β±2, … if the sampling frequency Ω𝑠 satisfies the condition: 𝐹𝑠 = 2πœ‹ 𝑇𝑠 β‰₯ 2 πΉπ‘šπ‘Žπ‘₯ Example: To sample a speech signal containing frequencies up to 4 kHz, the minimum sampling rate is chosen to be at least 8 kHz, or 8,000 samples per second.
  • 13. Example 1 Problem: Solution: Using Euler’s identity, Hence, the Fourier series coefficients are: 13 CEN352 Dr. Nassim Ammour King Saud University Euler's identity
  • 14. Example 1 – Contd. a. b. After the analog signal is sampled at the rate of 8,000Hz, the sampled signal spectrum and its replicas centered at the frequencies Β±n𝑓 𝑠, each with the scaled amplitude being 2.5/T . 14 CEN352 Dr. Nassim Ammour King Saud University Replicas,no additional information. Scaled amplitude of 2.5/T
  • 15. Signal Reconstruction (Digital-to-Analog Conversion) 15 CEN352 Dr. Nassim Ammour King Saud University β€’ The reconstructionprocess (recoveringthe analog signal from its sampled signal) involves two steps. β€’ First: the samples π‘₯ 𝑛 (digitalsignal )are converted into a sequence of ideal impulses π‘₯𝑠 𝑑 , in which each impulse has its amplitude proportional to digital output π‘₯ 𝑛 , and two consecutiveimpulses are separated by a sampling period of T. π‘₯𝑠 𝑑 = 𝑛=βˆ’βˆž ∞ ) π‘₯ 𝑛 𝛿(𝑑 βˆ’ 𝑛𝑇𝑠 β€’ Second: The analog reconstructionfilter (ideal low-pass filter) is applied to the ideally recovered signal π‘₯𝑠 𝑑 to obtain the recoveredanalog signal. The impulse response of the reconstruction filter is β„Žπ‘Ÿ 𝑑 = sin( πœ‹π‘‘ 𝑇𝑠 ) πœ‹π‘‘ 𝑇𝑠
  • 16. CEN352 Dr. Nassim Ammour King Saud University 16 Signal Reconstruction – Contd. β€’ Before applying the reconstruction filter, a zero-order hold is used to interpolate between the samples in xs(t). β€’ Reconstruction filter Ideal low-pass filter An ideal low-pass reconstructionfilter is required to recover the analog signal Spectrum ( an impractical case). A practical low-pass reconstruction (anti-image)filter can be designed to reject all the images and achieve the original signal spectrum. Practical low-pass filter
  • 17. CEN352 Dr. Nassim Ammour King Saud University 17 Signal Reconstruction – Contd.  Perfect reconstruction is not possible, even if we use ideal low pass filter. Aliasing the conditionof the Shannon sampling theorem is violated.We can see the spectral overlapping between the original baseband spectrumand the spectrum of the replica (add aliasing noise)  if an analog signal with a frequency f is under-sampled, the aliasing frequency component π‘“π‘Žπ‘™π‘–π‘Žπ‘  in the baseband is simply given by:
  • 18. CEN352 Dr. Nassim Ammour King Saud University 18 Example 2 Problem: Solution: Using the Euler’s identity:
  • 19. CEN352 Dr. Nassim Ammour King Saud University 19 a. b. The Shannon sampling theory condition is satisfied
  • 20. CEN352 Dr. Nassim Ammour King Saud University 20 Example 3 Problem: Solution: a. b.
  • 21. CEN352 Dr. Nassim Ammour King Saud University 21 8 Quantization β€’ During the ADC process, amplitudes of the analog signal to be converted have infinite precision. β€’ Quantization : The quantizer converts the continuous amplitude signal discrete amplitude signal. β€’ Encoding: After quantization, each quantization level is assigned a unique binary code. A block diagram for a DSP system
  • 22. CEN352 Dr. Nassim Ammour King Saud University 22 8 Quantization – Contd. β€’ A unipolar quantizer deals with analog signals ranging from 0 volt to a positive reference voltage βˆ†= π‘₯π‘šπ‘Žπ‘₯ βˆ’ π‘₯π‘šπ‘–π‘› 𝐿 π‘₯π‘šπ‘Žπ‘₯ : Max value of analog signal π‘₯π‘šπ‘–π‘› : Min value of analog signal 𝐿: Number of quantizationlevel 𝐿 = 2π‘š π‘š : Number of bits in ADC βˆ† : Step size of quantizer (ADC resolution) 𝑖 = π‘Ÿπ‘œπ‘’π‘›π‘‘ π‘₯ βˆ’ π‘₯π‘šπ‘–π‘› βˆ† 𝑖 : Index correspondingto binary code 𝒙𝒒: Quantizationlevel π‘₯π‘ž = π‘₯π‘šπ‘–π‘› + 𝑖 βˆ™ βˆ† 𝑖 = 0,1, …, 𝐿 βˆ’ 1 π‘’π‘ž: Quantizationerror π‘’π‘ž = π‘₯π‘ž βˆ’ π‘₯ π‘€π‘–π‘‘β„Ž βˆ’ βˆ† 2 ≀ π‘’π‘ž ≀ βˆ† 2
  • 23. CEN352 Dr. Nassim Ammour King Saud University 23 Example:3-bit ADC channel accepts analog input ranging from 0 to 5 volts, 8 Quantization – Contd. β€’ bipolar quantizer deals with analog signals ranging from a negative reference to a positive reference.
  • 24. CEN352 Dr. Nassim Ammour King Saud University 24 9 Periodicity β€’ In discrete-time case, a periodic sequence is a sequence for which where the period N is necessarily an integer. Example 1: Period of N = 8 periodic sequence with N = 7 samples π‘₯ 𝑛 = 𝐴 π‘π‘œπ‘ (πœ”π‘› + πœƒ) Discrete sinusoidal: Pulsation:πœ” (rad/sample) Phase shift: πœƒ Frequency: 𝑓 = πœ” 2πœ‹ cycle/sample Period: 𝑁 = 1 𝑓 πœ” = πœ‹ 4 β†’ 𝑓 = πœ” 2πœ‹ = πœ‹ 4 2πœ‹ = 1 8 β†’ 𝑁 = 1 𝑓 = 8
  • 25. CEN352 Dr. Nassim Ammour King Saud University 25 9 Periodicity – Contd. Example 2: Not periodic with N = 8 But periodic with N = 16 (Must be integer) πœ” = 3πœ‹ 8 β†’ 𝑓 = πœ” 2πœ‹ = 3 πœ‹ 8 2πœ‹ = 3 16 β†’ 𝑁 = 1 𝑓 = 3 Γ— 16 3