Sampling rate conversion by a rational factor

Slides:



Advertisements
Similar presentations
FINITE WORD LENGTH EFFECTS
Advertisements

Chapter 4 sampling of continous-time signals 4.5 changing the sampling rate using discrete-time processing 4.1 periodic sampling 4.2 discrete-time processing.
Sampling and Pulse Code Modulation
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Husheng Li, UTK-EECS, Fall  An ideal low pass filter can be used to obtain the exact original signal.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
So far We have introduced the Z transform
Sampling and quantization Seminary 2. Problem 2.1 Typical errors in reconstruction: Leaking and aliasing We have a transmission system with f s =8 kHz.
Quantization Prof. Siripong Potisuk.
Introduction to D/A and A/D conversion Professor: Dr. Miguel Alonso Jr.
Sampling Theorem 主講者:虞台文. Content Periodic Sampling Sampling of Band-Limited Signals Aliasing --- Nyquist rate CFT vs. DFT Reconstruction of Band-limited.
Science is organized knowledge. Wisdom is organized life.
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
SAMPLING & ALIASING. OVERVIEW Periodic sampling, the process of representing a continuous signal with a sequence of discrete data values, pervades the.
Lecture 4: Sampling [2] XILIANG LUO 2014/10. Periodic Sampling  A continuous time signal is sampled periodically to obtain a discrete- time signal as:
Over-Sampling and Multi-Rate DSP Systems
Digital Signals and Systems
Random Processes and LSI Systems What happedns when a random signal is processed by an LSI system? This is illustrated below, where x(n) and y(n) are random.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Chapter 4: Sampling of Continuous-Time Signals
FT Representation of DT Signals:
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Formatting and Baseband Modulation
Lecture 41 Practical sampling and reconstruction.
DTFT And Fourier Transform
Signals and Systems Prof. H. Sameti Chapter 7: The Concept and Representation of Periodic Sampling of a CT Signal Analysis of Sampling in the Frequency.
Lecture 1 Signals in the Time and Frequency Domains
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
ECE 4710: Lecture #9 1 PCM Noise  Decoded PCM signal at Rx output is analog signal corrupted by “noise”  Many sources of noise:  Quantizing noise »Four.
Digital Signal Processing
Notice  HW problems for Z-transform at available on the course website  due this Friday (9/26/2014) 
1 Quantization Error Analysis Author: Anil Pothireddy 12/10/ /10/2002.
Introduction to Digital Signals
Discrete-time Random Signals
Filters filters. Filters A filter removes a signal’s unwanted frequency components. Figure 6.18.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
DEPARTMENTT OF ECE TECHNICAL QUIZ-1 AY Sub Code/Name: EC6502/Principles of digital Signal Processing Topic: Unit 1 & Unit 3 Sem/year: V/III.
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Continuous-time Signal Sampling
Unit IV Finite Word Length Effects
In summary If x[n] is a finite-length sequence (n0 only when |n|
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
Principios de Comunicaciones EL4005
Analog to digital conversion
Outline Introduction Signal, random variable, random process and spectra Analog modulation Analog to digital conversion Digital transmission through baseband.
EC 2314 Digital Signal Processing
Chapter 3 Sampling.
SAMPLING & ALIASING.
7.0 Sampling 7.1 The Sampling Theorem
Quantization and Encoding
Zhongguo Liu Biomedical Engineering
لجنة الهندسة الكهربائية
Changing the Sampling Rate
Sampling and the Discrete Fourier Transform
Quantization in Implementing Systems
Chapter 3: PCM Noise and Companding
Signals and Systems Chapter 7: Sampling
Finite Wordlength Effects
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Conceptual Representation of A/D Conversion
Quadrature-Mirror Filter Bank
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Chapter 9 Advanced Topics in DSP
Sampling Theorem 主講者:虞台文.
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
State Space approach State Variables of a Dynamical System
Presentation transcript:

Sampling rate conversion by a rational factor

Changing the Sampling rate using discrete-time processing downsampling; sampling rate compressor;

Frequency domain of downsampling Since this is a ‘re-sampling’ process. Remember that, from continuous-time sampling of x[n]=xc(nT), we have Similarly, for the down-sampled signal xd[m]=xc(mT’), (where T’ = MT), we have

Frequency domain of downsampling We are interested in the relation between X(ejw) and Xd(ejw). Let’s represent r as r = i + kM, where 0  i  M1, (i.e., r  i (mod M)). Then

Frequency domain of downsampling Therefore, the downsampling can be treated as a ‘re-sampling’ process. It s frequency domain relationship is similar to that of the D/C converter as: This is equivalent to compositing M copies of the of X(ejw), frequency scaled by M and shifted by inter multiples of 2. The aliasing can be avoided by ensuring that X(ejw) is bandlimited as

Example of downsampling in the Frequency domain (without aliasing) Sampling with a sufficiently large rate which avoids aliasing

Example of downsampling in the Frequency domain (without aliasing) Downsampling by 2 (M=2)

Downsampling with prefiltering to avoid aliasing (decimation) From the above, the DTFT of the down-sampled signal is the superposition of M shifted/scaled versions of the DTFT of the original signal. To avoid aliasing, we need wN</M, where wN is the highest frequency of the discrete-time signal x[n]. Hence, downsampling is usually accompanied with a pre-low-pass filtering, and a low-pass filter followed by down-sampling is usually called a decimator, and termed the process as decimation.

Up-sampling : Upsampling; sampling rate expander. or equivalently, In frequency domain: :

Example of up-sampling Upsampling in the frequency domain

Up-sampling with post low-pass filtering Similar to the case of D/C converter, upsampoling is usually companied with a post low-pass filter with cutoff frequency /L and gain L, to reconstruct the sequence. A low-pass filter followed by up-sampling is called an interpolator, and the whole process is called interpolation.

Example of up-sampling followed by low-pass filtering Applying low-pass filtering

Interpolation Similar to the ideal D/C converter, If we choose an ideal lowpass filter with cutoff frequency /L and gain L, its impulse response is Hence Its an interpolation of the discrete sequence x[k]

Sampling rate conversion by a non-integer rational factor By combining the decimation and interpolation, we can change the sampling rate of a sequence. Changing the sampling rate by a non-integer factor T’ = TM/L. Eg., L=100 and M=101, then T’ = 1.01T.

Changing the Sampling rate using discrete-time processing Since the interpolation and decimation filters are in cascade, they can be combined as shown above.

Digital Processing of Analog Signals Pre-filtering to avoid aliasing It is generally desirable to minimize the sampling rate. Eg., in processing speech signals, where often only the low-frequency band up to about 3-4k Hz is required, even though the speech signal may have significant frequency content in the 4k to 20k Hz range. Also, even if the signal is naturally bandlimited, wideband additive noise may fll in the higher frequency range, and as a result of sampling. These noise components would be aliased into the low frequency band.

Over-sampled A/D conversion The anti-aliasing filter is an analog filter. However, in applications involving powerful, but inexpensive, digital processors, these continuous-time filters may account for a major part of the cost of a system. Instead, we first apply a very simple anti-aliasing filter that has a gradual cutoff (instead of a sharp cutoff) with significant attenuation at MN. Next, implement the C/D conversion at the sampling rate higher than 2MN. After that, sampling rate reduction by a factor of M that includes sharp anti-aliasing filtering is implemented in the discrete-time domain.

Using over-sampled A/D conversion to simplify a continuous-time anti-aliasing filter

Example of over-sampled A/D conversion

Example of over-sampled A/D conversion

Sample and hold

Example of sample and hold

Quantizer (Quantization) The real-valued signal has to be stored as a code for digital processing. This step is called quantization. The quantizer is a nonlinear system. Typically, we apply two’s complement code for representation.

Quantizer (Quantization)

Quantizer (Quantization) In general, if we have a (B+1)-bit binary two’s complement fraction of the form: then its value is The step size of the quantizer is where Xm is the full scale level of the A/D converter. The numerical relationship beween the code words and the quantizer samples is

Example of quantization

Analysis of quantization errors In general, for a (B+1)-bit quantizer with step size , the quantization error satisfies that when If x[n] is outside this range, then the quantization error is larger in magnitude than /2, and such samples are saided to be clipped.

Analysis of quantization errors Analyzing the quantization by introducing an error source and linearizing the system: The model is equivalent to quantizer if we know e[n].

Assumptions about e[n] e[n] is a sample sequence of a stationary random process. e[n] is uncorrelated with the sequence x[n]. The random variables of the error process e[n] are uncorrelated; i.e., the error is a white-noise process. The probability distribution of the error process is uniform over the range of quantization error (i.e., without being clipped). The assumptions would not be justified. However, when the signal is a complicated signal (such as speech or music), the assumptions are more realistic. Experiments have shown that, as the signal becomes more complicated, the measured correlation between the signal and the quantization error decreases, and the error also becomes uncorrelated.

Example of quantization error original signal 3-bit quantization result 3-bit quantization error

Example of quantization error 8-bit quantization error In a heuristic sense, the assumptions of the statistical model appear to be valid if the signal is sufficiently complex and the quantization steps are sufficiently small, so that the amplitude of the signal is likely to traverse many quantization steps from sample to sample.

Quantization error analysis e[n] is a white noise sequence. The probability density function of e[n] is

Quantization error analysis The mean value of e[n] is zero, and its variance is Since For a (B+1)-bit quantizer with full-scale value Xm, the noise variance, or power, is

Quantization error analysis A common measure of the amount of degradation of a signal by additive noise is the signal-to-noise ratio (SNR), defined as the ratio of signal variance (power) to noise variance. Expressed in decibels (dB), the SNR of a (B+1)-bit quantizer is Hence, the SNR increases approximately 6dB for each bit added to the world length of the quantized samples.

Quantization error analysis The equation can be further simplified for analysis. For example, if the signal amplitude has a Gaussian distribution, only 0.064 percent of the samples would have an amplitude greater than 4x. Thus to avoid clipping the peaks of the signal (as is assumed in our statistical model), we might set the gain of filters and amplifiers preceding the A/D converter so that x = Xm/4. Using this value of x gives For example, obtaining a SNR about 90-96 dB in high-quality music recording and playback requires 16-bit quantization. But it should be remembered that such performance is obtained only if the input signal is carefully matched to the full-scale of the A/D converter.