Presentation is loading. Please wait.

Presentation is loading. Please wait.

Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.

Similar presentations


Presentation on theme: "Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of."— Presentation transcript:

1 Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of Technology, Surat-395007.

2 Outline Analog To Digital Converter Review of sampling –Nyquist sampling theory: frequency and time domain –Alliasing –Bandpass sampling theory –Natural Sampling –Aperture Effect Quantization –Quantization. –Quantization Error. –Companding. –Two optimal rules –A law/u law Coding Differential PCM

3 Claude Elwood Shannon, Harry Nyquist

4 Sampling Theory In many applications it is useful to represent a signal in terms of sample values taken at appropriately spaced intervals. The signal can be reconstructed from the sampled waveform by passing it through an ideal low pass filter. In order to ensure a faithful reconstruction, the original signal must be sampled at an appropriate rate as described in the sampling theorem. –A real-valued band-limited signal having no spectral components above a frequency of F M Hz is determined uniquely by its values at uniform intervals spaced no greater than (1/2F M ) seconds apart.

5 Sampling Block Diagram Consider a band-limited signal f(t) having no spectral component above B Hz. Let each rectangular sampling pulse have unit amplitudes, seconds in width and occurring at interval of T seconds. A/D conversion f(t) T f s (t) Sampling

6

7 Impulse Sampling with increasing sampling time T

8 EE 541/451 Fall 2006 Introduction

9 Math

10 Math, cont.

11 Interpolation Formula

12 Interpolation If the sampling is at exactly the Nyquist rate, then

13 Under Sampling, Aliasing

14 Avoid Aliasing Band-limiting signals (by filtering) before sampling. Sampling at a rate that is greater than the Nyquist rate. A/D conversion f(t)f(t) T f s (t) Sampling Anti-aliasing filter

15 Practical Interpolation Sinc-function interpolation is theoretically perfect but it can never be done in practice because it requires samples from the signal for all time. Therefore real interpolation must make some compromises. Probably the simplest realizable interpolation technique is what a DAC does.

16 Natural sampling (Sampling with rectangular waveform)

17 Bandpass Sampling A signal of bandwidth B, occupying the frequency range between fL and fL + B, can be uniquely reconstructed from the samples if sampled at a rate fS : fS >= 2 * (f2-f1)(1+M/N) where M=f2/(f2-f1))-N and N = floor(f2/(f2-f1)), B= f2-f1, f2=NB+MB.

18 Entire spectrum is allocated for a channel (user) for a limited time. The user must not transmit until its next turn. Used in 2nd generation Advantages: –Only one carrier in the medium at any given time –High throughput even for many users –Common TX component design, only one power amplifier –Flexible allocation of resources (multiple time slots). f t c k2k2 k3k3 k4k4 k5k5 k6k6 k1k1 Frequency Time Time Division Multiplexing

19 Quantization Scalar Quantizer Block Diagram

20 Quantization Procedure

21 Quantization Error

22 Quantization Type Mid-tread Mid-rise

23

24 Quantization Noise

25 What happens if no. of representation level increases? >64 distortion is significant Quantization error is uniformly distributed in interval (-∆/2 to ∆/2). The Avg. Power of Quantizing error q e

26 0 V K∆ K∆+ ∆/2 K∆- ∆/2 qeqe Sample of Amplitude K∆+ q e PqPq Math

27 Example A sinusoidal Signal of amplitude A m uses all Representation levels provided for Quantization in the case of full load condition. Calculate Signal to Noise ratio in db assuming the number of quantization levels to be 512. ANS: 55.8 db.

28 Example SNR for varying number of representation levels for sinusoidal modulation 1.8+6 X dB Number of representati on level L Number of Bits per Sample, R SNR (dB) 32531.8 64637.8 128743.8 256849.8

29 Companding Process of uniform Quantization is not possible. Example: Speech, Video. The variation in power from weak signal to powerful signal is 40 db. So Ratio 1000:1 Excursion in Large amplitude occurs less frequently. This Scenario is cared by Non- Uniform Quantization.

30 Non-uniform Quantizer x ^ Example F: y=log(x)F -1 : x=exp(x) F: nonlinear compressing function F -1 : nonlinear expanding function F and F -1 : nonlinear compander We will study nonuniform quantization by PCM example next A law and  law y ^ y X F QF -1 XXXQ y ^ y ^ y ^ y ^ y ^

31 Input-Output characteristic of Compressor

32  Law/A Law The -law algorithm (μ-law) is a companding algorithm, primarily used in the digital telecommunication systems of North America and Japan. Its purpose is to reduce the dynamic range of an audio signal. In the analog domain, this can increase the signal to noise ratio achieved during transmission, and in the digital domain, it can reduce the quantization error (hence increasing signal to quantization noise ratio). A-law algorithm used in the rest of worlds. A-law algorithm provides a slightly larger dynamic range than the mu-law at the cost of worse proportional distortion for small signals. By convention, A-law is used for an international connection if at least one country uses it.

33  Law

34 EE 541/451 Fall 2006 A Law

35 Implementation of Compander Diode equation Piece-wise linear Approach

36 Coding


Download ppt "Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of."

Similar presentations


Ads by Google