Principles of Communications

Similar documents
7.1 Sampling and Reconstruction

Pulse-Code Modulation (PCM) :

Principles of Communications

EE 5345 Biomedical Instrumentation Lecture 12: slides

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

ETSF15 Analog/Digital. Stefan Höst

Gaussian source Assumptions d = (x-y) 2, given D, find lower bound of I(X;Y)

Finite Word Length Effects and Quantisation Noise. Professors A G Constantinides & L R Arnaut

Chapter 10 Applications in Communications

The information loss in quantization

Multimedia Systems Giorgio Leonardi A.A Lecture 4 -> 6 : Quantization

CODING SAMPLE DIFFERENCES ATTEMPT 1: NAIVE DIFFERENTIAL CODING

Digital Signal Processing

The Secrets of Quantization. Nimrod Peleg Update: Sept. 2009

VID3: Sampling and Quantization

CS578- Speech Signal Processing

Class of waveform coders can be represented in this manner

Compression methods: the 1 st generation

Scalar and Vector Quantization. National Chiao Tung University Chun-Jen Tsai 11/06/2014

Chapter 2: Problem Solutions

Weiyao Lin. Shanghai Jiao Tong University. Chapter 5: Digital Transmission through Baseband slchannels Textbook: Ch

Multimedia Communications. Scalar Quantization

PCM Reference Chapter 12.1, Communication Systems, Carlson. PCM.1

Various signal sampling and reconstruction methods

EE4512 Analog and Digital Communications Chapter 4. Chapter 4 Receiver Design

FACULTY OF ENGINEERING MULTIMEDIA UNIVERSITY LAB SHEET

at Some sort of quantization is necessary to represent continuous signals in digital form

Digital Communications III (ECE 154C) Introduction to Coding and Information Theory

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

Principles of Communications Lecture 8: Baseband Communication Systems. Chih-Wei Liu 劉志尉 National Chiao Tung University

EE123 Digital Signal Processing

E303: Communication Systems

C.M. Liu Perceptual Signal Processing Lab College of Computer Science National Chiao-Tung University

1. Probability density function for speech samples. Gamma. Laplacian. 2. Coding paradigms. =(2X max /2 B ) for a B-bit quantizer Δ Δ Δ Δ Δ

Coding for Discrete Source

Multimedia Communications. Differential Coding

Square Root Raised Cosine Filter

FROM ANALOGUE TO DIGITAL

Digital Baseband Systems. Reference: Digital Communications John G. Proakis

Introduction to digital systems. Juan P Bello

Chapter 3. Quantization. 3.1 Scalar Quantizers

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Multimedia Networking ECE 599

EE5356 Digital Image Processing

Example: for source

This examination consists of 11 pages. Please check that you have a complete copy. Time: 2.5 hrs INSTRUCTIONS

arxiv: v1 [cs.it] 20 Jan 2018

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

Module 3. Quantization and Coding. Version 2, ECE IIT, Kharagpur

Signal Design for Band-Limited Channels

Random Signal Transformations and Quantization

Signals & Systems. Chapter 7: Sampling. Adapted from: Lecture notes from MIT, Binghamton University, and Purdue. Dr. Hamid R.

2A1H Time-Frequency Analysis II

Example: Bipolar NRZ (non-return-to-zero) signaling

Quantization 2.1 QUANTIZATION AND THE SOURCE ENCODER

ECE6604 PERSONAL & MOBILE COMMUNICATIONS. Week 3. Flat Fading Channels Envelope Distribution Autocorrelation of a Random Process

Communication constraints and latency in Networked Control Systems

Lecture 7 Predictive Coding & Quantization

EE5713 : Advanced Digital Communications

Objectives of Image Coding

Source Coding. Scalar Quantization

Lab 4: Quantization, Oversampling, and Noise Shaping

Review of Quantization. Quantization. Bring in Probability Distribution. L-level Quantization. Uniform partition

Analog to Digital Conversion

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 3, SNR, non-linear Quantisation Gerald Schuller, TU Ilmenau

Data Converter Fundamentals

Lecture 20: Quantization and Rate-Distortion

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Aula 4, 10th October

encoding without prediction) (Server) Quantization: Initial Data 0, 1, 2, Quantized Data 0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256

ELECTRONICS & COMMUNICATIONS DIGITAL COMMUNICATIONS

Experimental Fourier Transforms

EE5356 Digital Image Processing. Final Exam. 5/11/06 Thursday 1 1 :00 AM-1 :00 PM

6.003: Signals and Systems. Sampling and Quantization

Discrete-Time Signals and Systems. Efficient Computation of the DFT: FFT Algorithms. Analog-to-Digital Conversion. Sampling Process.

EE 224 Signals and Systems I Review 1/10

Chapter 5 Frequency Domain Analysis of Systems

Vector Quantization. Institut Mines-Telecom. Marco Cagnazzo, MN910 Advanced Compression

a) Find the compact (i.e. smallest) basis set required to ensure sufficient statistics.

EEO 401 Digital Signal Processing Prof. Mark Fowler

EE 521: Instrumentation and Measurements

Periodic (Uniform) Sampling ELEC364 & ELEC442

Seminar: D. Jeon, Energy-efficient Digital Signal Processing Hardware Design Mon Sept 22, 9:30-11:30am in 3316 EECS

Communication Theory II

Image Compression. Fundamentals: Coding redundancy. The gray level histogram of an image can reveal a great deal of information about the image

Image Acquisition and Sampling Theory

NORWEGIAN UNIVERSITY OF SCIENCE AND TECHNOLOGY DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATIONS

BASICS OF COMPRESSION THEORY

Revision of Lecture 5

Digital Signal Processing

Principles of Communications

Time-domain representations

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Quantisation. Uniform Quantisation. Tcom 370: Principles of Data Communications University of Pennsylvania. Handout 5 c Santosh S.

EE123 Digital Signal Processing

Chapter 5 Frequency Domain Analysis of Systems

Analysis of Finite Wordlength Effects

Design of a CELP coder and analysis of various quantization techniques

EE-597 Notes Quantization

that efficiently utilizes the total available channel bandwidth W.

Sampling. Alejandro Ribeiro. February 8, 2018

Transcription:

Principles of Communications Weiyao Lin, PhD Shanghai Jiao Tong University Chapter 4: Analog-to-Digital Conversion Textbook: 7.1 7.4 2010/2011 Meixia Tao @ SJTU 1

Outline Analog signal Sampling Quantization Encoding Discrete-time time continuous-valued signal Discrete-time discrete-valued signal Bit mapping Pulse Code Modulation Digital transmission 2010/2011 Meixia Tao @ SJTU 2

Sampling Sampling Theorem: Let the signal x() t have a bandwidth W, i.e., let X ( f) 0, for f W. Let xt () be sampled at time 1 interval T to yield the sequence { xnt ( s )} s n=. 2W Then it is possible to reconstruct t the original i signal x() t from the sampled values. 2010/2011 Meixia Tao @ SJTU 3

Sampling Process xt () xs() t 0 (a) t x () t xs( () t st () 0 (c) t st () Ts 0 1 2 3 4 5 6 The sampling process can be regarded a modulation process with carrier given by periodic impulses. It s also called pulse modulation (b) t 2010/2011 Meixia Tao @ SJTU 4

The result of sampling can be written as xδ () t = x( nts) δ( t nts) = x() t δ( t nts) n= Taking Fourier transform n= 1 n 1 n Xδ ( f ) = X ( f ) δ f = X f Ts n= Ts Ts n= Ts 1 1 X ( f ) s > f s = < 2W 2 W T If or T s then the replicated spectrum of x(t) () overlaps and reconstruction is not possible, known as aliasing error The minimum sampling rate fs = 2 is known as Nyquist sampling rate s -1/Ts W 2010/2011 Meixia Tao @ SJTU -W W f X δ ( f ) 1/Ts 5 f

Reconstruction To get the original signal back, it is sufficient to filter the sampled signal through a LPF with frequency response 1 f < W H( f) = 1 0 f Ts The reconstruction is W [ ] x() t = 2 W ' Tsx( nts)sinc2 W '( t nts) for n= 1 W W ' W T s 2010/2011 Meixia Tao @ SJTU 6

Quantization Quantization is a rounding process, each sampled signal point is rounded to the nearest value from a finite set of possible quantization levels. Scalar quantization Each sample is quantized individually Vector quantization Blocks of samples are quantized at a time 2010/2011 Meixia Tao @ SJTU 7

Scalar Quantization The set of real numbers R is partitioned into N disjoint subsets, denoted as Rk, each called quantization region For each region Rk, a representation point, called quantization level xk is chosen If the sampled signal belongs to region Rk, then it is represented by xk, i.e. Q ( x ) = x, for all x R, k = 1,..., N k k Quantization error exqx (, ( )) = x Qx ( ) 2010/2011 Meixia Tao @ SJTU 8

Performance Measure of Quantization Signal-to-quantization noise ratio (SQNR) is defined by SQNR = EX 2 ( ) ([ ( )] 2 ) E X Q x For random variable X SQNR = 1 T /2 2 lim x ( t) dt T T T /2 1 T /2 2 lim ( x( t) Q( x( t)) ) dt T T T /2 For signal x(t) 2010/2011 Meixia Tao @ SJTU 9

Example The source X(t) is stationary Gaussian source with mean zero and power spectral density S x ( f) 2 f < 100 Hz = 0 otherwise It is sampled at the Nyquist rate and each sample is quantized using the 8-level quantizer with a =, a = 60, a = 40, a = 20, a = 0, a = 20, a = 40, a = 60 0 1 2 3 4 5 6 7 x = 70, x = 50, x = 30, x = 10, x = 10, x = 30, x = 50, x = 70 1 2 3 4 5 6 7 8 What is the resulting distortion and rate? What is the SQNR? 2010/2011 Meixia Tao @ SJTU 10

Uniform Quantizer Let the range of the input samples is [-a, a] and the number of quantization levels is N = 2^v. Then the length of each quantization region is given by 2a a Δ= = 1 2 v N Quantized values are the midpoints of quantization regions. Assuming that the quantization error is uniformly Δ Δ distributed on. Then (, ) Δ/2 2 2 2 2 2 2 1 2 Δ a a Ee [ ] = xdx= = = /2 2 Δ 12 2 N 3 4 v Δ /2 v P 34 db X PX PX SQNR = = = 10log 2 2 10 + 6v + 4.8 One extra bit increases 2 Ee [ ] a a the SQNR by 6 db! 2010/2011 Meixia Tao @ SJTU 11

Nonuniform Quantizer If we relax the condition that the quantization regions be of equal length, then we can minimize the distortion with less constraints; therefore, the resulting quantizer will perform better than a uniform quantizer The usual method of nonuniform quantization is to first pass the samples through a nonlinear filter and then perform a uniform quantization => Companding For speech coding, higher probability for smaller amplitude and lower probability for larger amplitude μ law compander A-law compander 2010/2011 Meixia Tao @ SJTU 12

Compander μ law compander ( + μ x ) log 1 g ( x ) = sgn( x ), x 1 log(1 + μ) μ = 255 2010/2011 Meixia Tao @ SJTU 13

A law compander 1 6 8 Compander 1+ log A x gx ( ) = sgn( x), x 1 y 1+ log A 4 A = 87. 6 8 1 1 1 1 8 1 x 8 4 2 2010/2011 Meixia Tao @ SJTU 14

Lloyd-Max Conditions Optimal Quantizer The boundaries of the quantization regions are the midpoints of the corresponding quantized values The quantized values are the centroids of the quantization regions. 2010/2011 Meixia Tao @ SJTU 15

Vector Quantization The idea of vector quantization is to take blocks of source outputs of length n, and design the quantizer in the n-dim Euclidean space, rather than doing the quantization based on single samples in a one-dim space Optimal vector quantizer to minimize distortion Region Ri is the set of all points in the n-dim space that are closer to xi than any other xj, for all j\= I; i.e. { n x : x x x x, } R = R < j i i i j xi is the centroid of the region Ri, i.e. 1 xi = xf x( x) dx P ( x R i ) Ri R 2010/2011 Meixia Tao @ SJTU 16

4.3 Encoding The encoding process is to assign v bits to N=2^v quantization levels. Since there are v bits for each sample and fs samples/second, we have a bit rate of R= vf s Natural binary coding bits/second Assign the values of 0 to N-1 1to different quantization levels l in order of increasing level value. Gray coding Adjacent levels differ only in one bit 2010/2011 Meixia Tao @ SJTU 17

Examples Natural binary code (NBC), folded binary code (FBC), 2- complement code (2-C), 1-complement code (1-C), and Gray code Level no NBC FBC 2-C Gray code Amplitude level 7 111 011 011 100 35 3.5 6 110 010 010 101 2.5 5 101 001 001 111 1.5 4 100 000 000 110 0.5 3 011 100 100 010-0.5 2 010 101 111 011-1.5 1 001 110 110 001-2.5 0 000 111 101 000-3.5 35 2010/2011 Meixia Tao @ SJTU 18

Pulse Code Modulation (PCM) Systems Block diagram of a PCM system x() t { x n } { x ˆ n } { K 0110 K } Sampler Quantizer Encoder Bandwidth requirement: If a signal has a bandwidth of W and v bits are used for each sampled signal, then BW req R = = 2 vw Hz 2010/2011 Meixia Tao @ SJTU 19

Differential PCM (DPCM) For a bandlimited random process, the sampled values are usually correlated random variables This correlation can be employed to improve the performance Differential PCM: quantize the difference between two adjacent samples. As the difference has small variation, to achieve a certain level of performance, fewer bits are required 2010/2011 Meixia Tao @ SJTU 20

DPCM Quantizer encoder delay decoder delay 2010/2011 Meixia Tao @ SJTU 21

Delta Modulation (DM) DM is a simplified version of DPCM, where the quantizer is a two-level quantizer with magnitude ±Δ In DM, only 1-bit per symbol is employed. So adjacent samples must have high correlation. m(t) m (t) m ( t ( ) i ) m t 1 m t ) i ( i The step size Δ is critical in designing a DM system. 2010/2011 Meixia Tao @ SJTU 22