0% found this document useful (0 votes)
129 views36 pages

Digital Coding of Analog Signal Ut1

Here are the key steps to solve this problem: 1) SNR = 6 * log2(L) - 1.8 2) Given L = 512, R = log2(512) = 9 bits 3) Using the formula, SNR = 6 * 9 - 1.8 = 55.8 dB So the SNR for 512 quantization levels is 55.8 dB.

Uploaded by

Abhimanyu Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views36 pages

Digital Coding of Analog Signal Ut1

Here are the key steps to solve this problem: 1) SNR = 6 * log2(L) - 1.8 2) Given L = 512, R = log2(512) = 9 bits 3) Using the formula, SNR = 6 * 9 - 1.8 = 55.8 dB So the SNR for 512 quantization levels is 55.8 dB.

Uploaded by

Abhimanyu Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 36

Digital Coding of

Analog Signal

Electronics Engineering Department,


Sardar Vallabhbhai National Institute of Technology,
Surat-395007.

Prepared By:
Amit Degada
Teaching Assistant
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
Claude Elwood Shannon, Harry Nyquist
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 FM Hz is determined
uniquely by its values at uniform intervals spaced no
greater than (1/2FM) seconds apart.
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. fs(t)

A/D
f(t)
conversion

T
Sampling
Sampling
Signal waveform Sampled waveform

0
0
1 201
1 201

Impulse sampler

0
1 201
Impulse Sampling
with increasing sampling time T

Sampled waveform Sampled waveform

0 0
1 201 1 201

Sampled waveform Sampled waveform

0 0
1 201 1 201
Introduction
Let g (t ) denote the ideal sampled signal

g ( t )   g (nT )  (t  nT )
n  
s s (3.1)

where Ts : sampling period


f s  1 Ts : sampling rate

EE 541/451 Fall 2006


Math
From Table A6.3 we have

g(t )   (t  nTs ) 
n  

1 m
G( f ) 
Ts
 (f T )
m   s

  f G ( f  mf )
m  
s s


g (t )  f s  G ( f  mf )
m  
s (3.2)

or we may apply Fourier Transform on (3.1) to obtain



G ( f )   g (nT ) exp( j 2 nf T )
n  
s s (3.3)

or G ( f )  f s G ( f )  f s  G ( f  mf )
m  
s (3.5)
m0

If G ( f )  0 for f  W and Ts  1
2W

n j n f
G ( f )   g ( ) exp( ) (3.4)
n   2W W
Math,
With cont.
1.G ( f )  0 for f W
2. f s  2W
we find from Equation (3.5) that
1
G( f )  G ( f ) ,  W  f  W (3.6)
2W
Substituting (3.4) into (3.6) we may rewrite G ( f ) as
1 
n jnf
G( f ) 
2W

n  
g(
2W
) exp( 
W
) ,  W  f  W (3.7)

n
g (t ) is uniquely determined by g ( ) for    n  
2W
 n 
or  g ( )  contains all information of g (t )
 2W 
Interpolation Formula

To reconstruct g (t ) from  g (
n 
)  , we may have
 2W 

g (t )   G ( f ) exp( j 2ft )df


W 1 
n j n f

W 2W

n  
g(
2W
) exp(
W
) exp( j 2 f t )df

n 1 W n 
  g( ) W exp j 2 f (t  2W )df (3.8)
n   2W 2W

n sin(2 Wt  n )
  g( )
n   2W 2 Wt  n

n
 
n  
g(
2W
) sin c( 2Wt  n ) , -   t   (3.9)

(3.9) is an interpolation formula of g (t )


Interpolation

If the sampling is at exactly the Nyquist rate, then



 t  nTs 
g (t )   g (nTs ) sin c 
n    Ts 
Under Sampling, Aliasing
Avoid Aliasing
• Band-limiting signals (by filtering)
before sampling.
• Sampling at a rate that is greater
than the Nyquist rate.

Anti-aliasing A/D fs(t)


f(t)
filter conversion

Sampling
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.
Natural sampling
(Sampling with rectangular waveform)

Signal waveform Sampled waveform

0
0 1 201 401 601 801 1001 1201 1401 1601 1801 20
1 201 401 601 801 1001 1201 1401 1601 1801 2001

Natural sampler

0
1 201 401 601 801 1001 1201 1401 1601 1801 2001
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.
Time Division Multiplexing
• Entire spectrum is allocated for a channel (user) for a limited time.
• The user must not transmit until its
next turn. k1 k2 k3 k4 k5 k6
• Used in 2nd generation
c
Frequency
f

• Advantages:
– Only one carrier in the t medium at any given time
– High throughput even Time
for many users
– Common TX component design, only one power amplifier
– Flexible allocation of resources (multiple time slots).
Quantization
• Scalar Quantizer Block Diagram
Quantization Procedure
Quantization Error
Quantization Type

Mid-tread Mid-rise
Quantization Noise
Quantization Noise
• 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 qe
Math
K∆+ ∆/2
Pq

qe
K∆

K∆- ∆/2

Sample of
Amplitude
K∆+ qe
0V
Example
• A sinusoidal Signal of amplitude Am
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.
Example
• SNR for varying number of representation
levels for sinusoidal modulation 1.8+6 X
dB

Number of Number of SNR (dB)


representati Bits per
on level L Sample, R
32 5 31.8
64 6 37.8
128 7 43.8
256 8 49.8
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.
Non-uniform Quantizer
F: nonlinear compressing function
F-1: nonlinear expanding function
F and F-1: nonlinear compander

^
y y ^
X F Q F-1 x

Example
F: y=log(x) F-1: x=exp(x)

We will study nonuniform quantization by PCM example next

A law and  law


Input-Output characteristic
of Compressor
 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.
 Law
A Law

EE 541/451 Fall 2006


Implementation of
Compander
• Diode equation

• Piece-wise linear Approach


Coding

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy