5a sampling and quantization - hawa.work sampling and quantization.pdf · title: microsoft...
TRANSCRIPT
2/8/2018
1
Lecture 5a: Sampling and Quantization
Dr. Mohammed HawaElectrical Engineering Department
University of Jordan
EE421: Communications I
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Digitization
2
2/8/2018
2
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Digital Systems Advantages
• Immunity to noise (threshold detection; regenerative repeaters).
• Multiplexing at the baseband level (e.g., TDM) and carrier level (e.g., FDM, CDMA and OFDMA).
• Spread spectrum techniques and orthogonality.• Channel coding (i.e., error correcting codes).• Source coding techniques (i.e., compression). Also
Encryption.• Exchanging SNR for bandwidth.• Using microprocessors and DSP.• Digital signal storage is relatively easy and
inexpensive.
3
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Digitization
• Sampling (discrete analog signal).• Quantization (quantized discrete signal)• Mapping (stream of 1’s and 0’s). • Encoding and Pulse Shaping (digital baseband signal).
4
2/8/2018
3
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Analog Signal
5
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Ideal Sampling
6
2/8/2018
4
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Practical Sampling
7
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Samlping
8
2/8/2018
5
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Ideal Sampling
9
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Aliasing
10
2/8/2018
6
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Anti-Aliasing Filter
11
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Natural Sampling
12
2/8/2018
7
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Practical Sampling: PAM
13
t0 V
m(t)
t0 V
ω0
γ|M(ω)|
2πB−2πB
x(t)
ω
|X(ω)|
LPFγ /Ts γ /Tsγ /Ts γ /Tsγ /Ts γ /Tsγ /Ts
0 ωs−ωs 2ωs−2ωs 3ωs−3ωs
t0 V
x(t)
Ts
t0 V
p(t)
ω0
|P(ω)|
2π/τ−2π/τ
|τ sinc(ωτ/2π)|1.0
τ
ω
|X(ω)|
LPFτ γ / Ts
0 2π/τ−2π/τ
Ts
∗
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
PAM: Wider Pulses (S/H)
14
t0 V
m(t)
t0 V
ω0
γ|M(ω)|
2πB−2πB
x(t)
ω
|X(ω)|
LPFγ /Ts γ /Tsγ /Ts γ /Tsγ /Ts γ /Tsγ /Ts
0 ωs−ωs 2ωs−2ωs 3ωs−3ωs
t0 V
x(t)
Ts
t0 V
p(t)
ω0
|P(ω)|
2π/τ−2π/τ
|τ sinc(ωτ/2π)|1.0
τ
ω
|X(ω)|
LPFτ γ / Ts
0 2π/τ−2π/τ
Ts
∗
2/8/2018
8
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Distortion solved by Equalizer
15
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Summary
16
2/8/2018
9
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
After Sampling!
17
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Quantization (L = 5)
18
2/8/2018
10
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Quantization (L = 10)
19
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Quantization (Approx.)
20
2/8/2018
11
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Quantization Error
21
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Quantization Error
���� = �2����������2�������� =
�2��������� ��23�2 �
= 3�2�2�����������2
= 3�2��2
22
2/8/2018
12
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Uniform Quantization
23
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Compander
24
2/8/2018
13
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Effect is Expansion/Compression
25
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Compading Improvement (dB)
26
2/8/2018
14
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Mapping
T0 = Ts / log2 (L)
f0 [bps] = fs [samples/s] × log2 (L) [bits/sample]
27
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Source Coding
28
2/8/2018
15
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Audio Compression
• Landline telephony (PCM, no compression)– 64 kbps
• Linear Prediction Coding (LPC) vocoder– e.g., RPE-LTP (regular pulse excitation, long-term
prediction) LPC codec (GSM cellular phones, Full Rate): 13 kbps.
• Code-Excited linear Prediction (CELP) vocoder– Algebraic CELP(ACELP) (GSM cellular phones,
Enhanced Full Rate): 12.2 kbps
– FS-1016 (United States Department of Defense): 4.8 kbps
29
Copyright © Dr. Mohammed Hawa Electrical Engineering Department, University of Jordan
Video Compression
• ITU-T: International Telecommunication Union - Telecommunication • MPEG: Moving Picture Experts Group
• MPEG-2: DVD, Digital TV Broadcasting.
• H.261: Videophone.
• H.263: Low bit rate Video Conferencing.
• H.264: Almost everything.
30
MPEG
MPEG-1
MPEG-2
ITU-T
H.261
H.263
H.264/MPEG-4 Part 10 or
AVC (Advanced Video Coding)
H.265/MPEG-H Part 2 or
HEVC (High Efficiency Video Coding)