Digital Communication Lecture-1
Digital Communication Lecture-1
Lecture-1
INTRODUCTION
Course Books
Text: Digital Communications: Fundamentals and Applications,
By “Bernard Sklar”, Prentice Hall, 2nd ed, 2001.
Digital Communication
R.N. Mutagi ( Oxford Press )
Probability and Random Signals for Electrical Engineers, Neon Garcia
References:
Digital Communications, Fourth Edition, J.G. Proakis, McGraw Hill, 2000.
Course Outline
Review of Probability
Signal and Spectra (Chapter 1)
Formatting and Base band Modulation (Chapter 2)
Base band Demodulation/Detection (Chapter 3)
Channel Coding (Chapter 6, 7 and 8)
Band pass Modulation and Demod./Detect.
(Chapter 4)
Spread Spectrum Techniques (Chapter 12)
Synchronization (Chapter 10)
Source Coding (Chapter 13)
Fading Channels (Chapter 15)
Today’s Goal
5
Communication
Recipient
Brief Description
Source: analog or digital
Transmitter: transducer, amplifier, modulator, oscillator, power
amp., antenna
Channel: e.g. cable, optical fibre, free space
Receiver: antenna, amplifier, demodulator, oscillator, power
amplifier, transducer
Recipient: e.g. person, (loud) speaker, computer
Types of information
Voice, data, video, music, email etc.
10
Why digital?
Digital techniques need to distinguish between discrete symbols
allowing regeneration versus amplification
13
Basic Digital Communication Transformations
Formatting/Source Coding
Transforms source info into digital symbols (digitization)
Selects compatible waveforms (matching function)
Introduces redundancy which facilitates accurate decoding
despite errors
It is essential for reliable communication
Modulation/Demodulation
Modulation is the process of modifying the info signal to
facilitate transmission
Demodulation reverses the process of modulation. It
involves the detection and retrieval of the info signal
Types
Coherent: Requires a reference info for detection
Noncoherent: Does not require reference phase information
Basic Digital Communication Transformations
Coding/Decoding
Translating info bits to transmitter data symbols
Techniques used to enhance info signal so that they are
less vulnerable to channel impairment (e.g. noise, fading,
jamming, interference)
Two Categories
Waveform Coding
Produces new waveforms with better performance
Structured Sequences
Involves the use of redundant bits to determine the
occurrence of error (and sometimes correct it)
Multiplexing/Multiple Access Is synonymous with resource
sharing with other users
Frequency Division Multiplexing/Multiple Access
(FDM/FDMA
Q -4 Which are the basic performance metrics for digital communication
system ? ( Advantages )
19
Performance Metrics
Analog Communication Systems
Metric is fidelity: want
mˆ (t ) m(t )
SNR typically used as performance metric
22
Why Digital Communications?
Easy to regenerate the distorted signal
Regenerative repeaters along the transmission path can
detect a digital signal and retransmit a new, clean (noise
free) signal
These repeaters prevent accumulation of noise along the
path
This is not possible with analog communication
systems
Two-state signal representation
The input to a digital system is in the form of a
sequence of bits (binary or M_ary)
Immunity to distortion and interference
Digital communication is rugged in the sense that it is more
immune to channel noise and distortion
Why Digital Communications?
Hardware is more flexible
Digital hardware implementation is flexible and permits
signals
Digital multiplexing techniques – Time & Code Division
26
Why Digital Communications?
Disadvantages
Requires reliable “synchronization”
Requires A/D conversions at high rate
Requires larger bandwidth
Nongraceful degradation
Performance Criteria
Probability of error or Bit Error Rate
Q-7 Why designing digital communication system what care we must take ?
28
Goals in Communication System Design
To maximize transmission rate, R
To maximize system utilization, U
To minimize bit error rate, Pe
To minimize required systems bandwidth, W
To minimize system complexity, Cx
To minimize required power, Eb/No
Q-8 Compare Digital and analog communication systems.
Information Source
Discrete output values e.g. Keyboard
Analog signal source e.g. output of a microphone
Character
Member of an alphanumeric/symbol (A to Z, 0 to 9)
Characters can be mapped into a sequence of binary digits
using one of the standardized codes such as
ASCII: American Standard Code for Information Interchange
EBCDIC: Extended Binary Coded Decimal Interchange Code
Digital Signal Nomenclature
Digital Message
Messages constructed from a finite number of symbols; e.g., printed
language consists of 26 letters, 10 numbers, “space” and several
punctuation marks. Hence a text is a digital message constructed from
about 50 symbols
Morse-coded telegraph message is a digital message constructed from
two symbols “Mark” and “Space”
M - ary
A digital message constructed with M symbols
Digital Waveform
Current or voltage waveform that represents a digital symbol
Bit Rate
Actual rate at which information is transmitted per second
Digital Signal Nomenclature
Baud Rate
Refers to the rate at which the signaling elements are
34
1.2 Classification Of Signals
1. Deterministic and Random Signals
A signal is deterministic means that there is no uncertainty with
respect to its value at any time.
t denotes time
T0 is the period of x(t).
3. Analog and Discrete Signals
x(t) is classified as an energy signal if, and only if, it has nonzero
but finite energy (0 < Ex < ∞) for all time, where:
T/2
lim
2
Ex = (1.7)
x (t) dt = x 2 (t) dt
T T / 2
An energy signal has finite energy but zero average power.
A signal is defined as a power signal if, and only if, it has finite
but nonzero power (0 < Px < ∞) for all time, where
T/2
1
(1.8) x (t) dt
Px = lim 2
T T T / 2
(t) dt =(1.9)
1
(1.10)
(t) = 0 for t 0
(1.11)
(t) is bounded at t 0
Sifting or Sampling Property
(1.12)
x ( t ) (t-t 0 )dt = x(t 0 )
Q -11 Define Spectral Density
41
1.3 Spectral Density
Ex =
-
(f) df
x(1.15)
The Energy spectral density is symmetrical in frequency about
origin and total energy of the signal x(t) can be expressed as:
(1.16)
E x = 2 x (f) df
0
2. Power Spectral Density (PSD)
The power spectral density (PSD) function Gx(f ) of the periodic
signal x(t) is a real, even, and nonnegative function of frequency
that gives the distribution of the power of x(t) in the frequency
domain.
PSD is represented as:
G x (f ) =(1.18)|C n |2 ( f nf 0 )
n=-
Whereas the average power of a periodic signal x(t) is
represented as: 1 0
T /2
Px
T0 (1.17) x 2 (t) dt |C
n=-
n | 2
T0 / 2
Using PSD, the average normalized power of a real-valued
signal is represented as:
Px G x(1.19)
(f) df 2 G x (f) df
0
Q-12 Explain Autocorrelation
45
1.4 Autocorrelation
1. Autocorrelation of an Energy Signal
Correlation is a matching process; autocorrelation refers to the
matching of a signal with a delayed version of itself.
Autocorrelation function of a real-valued energy signal x(t) is
defined as:
R x ( ) =
x(t) x (t + ) dt (1.21)
for - < <
R x ( ) =R symmetrical
x (- ) in about zero
R x ( ) R x (0)maximum
for all value occurs at the origin
R x ( ) autocorrelation
x (f)
and ESD form a
Fourier transform pair, as designated by the double-
headed arrows
value at the origin is equal to
the energy of the signal
R x (0)
x 2 (t) dt
2. Autocorrelation of a Power Signal
When the power signal x(t) is periodic with period T0, the
autocorrelation function can be expressed as
T0 / 2
1
R x ( )
T0
T0 / 2
x(t) x (t + (1.23)
) dt for - < <
2. Autocorrelation of a Power Signal
R x ( ) =R x (-symmetrical
) in about zero
R x ( ) R x (0)maximum
for all value occurs at the origin
R x ( ) Gx autocorrelation
(f) and PSD form a
Fourier transform pair
T0 / 2
1 value2 at the origin is equal to the
average
T0
R x (0) power of the x (t)
T0 / 2
dt
signal
Digital Communication
Systems
Lecture-2
PULSE MODULATION AND DIGITAL
TRANSMISSION OF ANALOG SIGNAL
50
Q-13 What is formatting ?
51
Formatting
52
Example 1:
In ASCII alphabets, numbers, and symbols are encoded using a 7-
bit code
53
Formatting
Transmit and Receive Formatting
Transition from information source digital symbols
information sink
54
Character Coding (Textual Information)
A textual information is a sequence of alphanumeric characters
55
Q-13 Explain process of sampling with neat sketches.
56
Transmission of Analog Signals
57
Sampling
Sampling is the processes of converting continuous-time analog
signal, xa(t), into a discrete-time signal by taking the “samples” at
discrete-time intervals
Sampling analog signals makes them discrete in time but still
continuous valued
If done properly (Nyquist theorem is satisfied), sampling does not
introduce distortion
Sampled values:
The value of the function at the sampling points
Sampling interval:
The time that separates sampling points (interval b/w samples), T
s
If the signal is slowly varying, then fewer samples per second will
58
Analog-to-digital conversion is (basically) a 2 step process:
Sampling
Quantization
Convert from discrete-time continuous valued signal to discrete
59
Sampling
60
Sampling
Natural Sampling
Flat-Top Sampling
61
Q-14 Describe different sampling techniques with neat sketches.
62
Ideal Sampling ( or Impulse Sampling)
63
Ideal Sampling ( or Impulse Sampling)
1 jn st
Therefore, we have: xs (t ) x (t ) e
Ts n
Take Fourier Transform (frequency convolution)
1 jn s t 1
Xs( f ) X ( f )* e
Ts
X ( f ) * e jn s t
n Ts n
1
s
X s ( f ) X ( f ) * ( f nf s ), f s
Ref :
next
Ts n 2 slide
1 1 n
Xs( f )
Ts
n
X ( f nf s )
Ts
n
X(f )
Ts
64
65
Ideal Sampling ( or Impulse Sampling)
This shows that the Fourier Transform of the sampled signal is the
Fourier Transform of the original signal at rate of 1/Ts
66
Ideal Sampling ( or Impulse Sampling)
This shows that the Fourier Transform of the sampled signal is the
Fourier Transform of the original signal at rate of 1/Ts
69
Ideal Sampling ( or Impulse Sampling)
This means that the output is simply the replication of the original
signal at discrete intervals, e.g
70
Ideal Sampling ( or Impulse Sampling)
71
Ts is called the Nyquist interval: It is the longest time interval that can
be used for sampling a bandlimited signal and still allow
reconstruction of the signal at the receiver without distortion
72
Practical Sampling
t nTs
x p (t )
n
Note:
Fourier Transform of impulse train is another impulse train
Convolution with an impulse train is a shifting operation
73
Natural Sampling
If we multiply x(t) by a train
of rectangular pulses xp(t),
we obtain a gated waveform
that approximates the ideal
sampled waveform, known
as natural sampling or
gating (see Figure 2.8)
x s (t ) x (t ) x p (t )
x (t )
n
c n e j 2 nf s t
X s ( f ) [ x ( t ) x p ( t )]
n
c n [ x ( t ) e j 2 nf s t ]
n
cn X [ f nf s ]
74
Each pulse in xp(t) has width Ts and amplitude 1/Ts
The top of each pulse follows the variation of the signal being
sampled
Xs (f) is the replication of X(f) periodically every fs Hz
Xs (f) is weighted by Cn Fourier Series Coeffiecient
The problem with a natural sampled waveform is that the tops of the
sample pulses are not flat
It is not compatible with a digital system since the amplitude of each
sample has infinite number of possible values
Another technique known as flat top sampling is used to alleviate
this problem
75
Flat-Top Sampling
Here, the pulse is held to a constant height for the whole
sample period
Flat top sampling is obtained by the convolution of the signal
obtained after ideal sampling with a unity amplitude
rectangular pulse, p(t)
This technique is used to realize Sample-and-Hold (S/H)
operation
In S/H, input signal is continuously sampled and then the
value is held for as long as it takes to for the A/D to acquire
its value
Effect of the hold operation is the significant attenuation of
the higher frequency spectral replicates.
76
Flat top sampling (Time Domain)
x '(t ) x(t ) (t )
xs (t ) x '(t ) * p(t )
p (t ) * x(t ) (t ) p(t ) * x(t ) (t nTs )
n
77
Taking the Fourier Transform will result to
X s ( f ) [ x s ( t )]
P ( f ) x (t ) ( t nTs )
n
1
P( f ) X ( f ) *
Ts
( f nf s )
n
1
P( f )
Ts
n
X ( f nf s )
78
Flat top sampling (Frequency Domain)
79
Q –15 Explain the method of reconstruction of signal from sampled signal.
80
Recovering the Analog Signal
One way of recovering the original signal from sampled signal Xs(f)
is to pass it through a Low Pass Filter (LPF) as shown below
81
Undersampling and Aliasing
If the waveform is undersampled (i.e. fs < 2B) then there will be
82
This could be due to:
1. x(t) containing higher frequency than were
expected
2. An error in calculating the sampling rate
Under normal conditions, undersampling of signals causing
aliasing is not recommended
83
Solution 1: Anti-Aliasing Analog Filter
84
Case 2
Case 1 85
Solution 2: Over Sampling and Filtering in the Digital
Domain
The signal is passed through a low performance (less costly)
fa = fs / 2 – ( f – fs / 2 ) = fs - f
86
Example : A 5.5 kHz tone is sampled at 8 KHz . Find the alias frequency
generated.
Solution :
Here,
From
f a = fs / 2 – ( f – fs / 2 ) = fs – f
87
Q-17 Explain the method of sampling band pass signals.
88
Sampling of Bandpass Signals
X(f) (a)
X(f) f
(b)
fs 2fs f
X(f)
(c)
X(f)
(d)
f
(a) band-pass signal (b) signal sampled at fs>2f2
(c) Signal sampled at fs>2(f2-f1) (d) Band-pass filter required for signal recovery
89
• A band-pass signal occupies a frequency band from f1 to f2.
• It has one sided spectrum as shown in figure (a).
• Sampling a band-pass signal at Nyquist rate spectrum is shown in fig (b).
• Clearly there are gaps in this spectrum.
• To avoid the spectrum overlap we can reduce the sampling frequency.
• Sampling frequency so arranged avoid overlapping of the spectrum fig(c).
• Minimum sampling frequency rate for a band-pass signal from the f1 to f2 ,
with bandwidth B=f2-f1 is given by
• FDM signals and sub-band signals used in speech coding are examples of
band-pass signals.
90
Example : a FM signal at 10.7 MHz IF needs to be digitized for demodulation
in a digital domain. If the bandwidth of the signal is 200 kHz, find the
minimum usable sampling frequency
Solution :
91
Example : A triangular waveform with 10 ms period is to be digitized. If the
waveform fidelity is to be maintained up to its 10th harmonic, what should be
the sampling frequency ?
Solution :
fm = 10 * f0 = 10 x 100 = 1000 Hz
fs = 2 x 1000 = 2000 Hz
92
Summary Of Sampling
Ideal Sampling x s (t ) x (t ) x (t ) x (t ) (t nTs )
(or Impulse Sampling) n
n
x ( nTs ) (t nTs )
Natural Sampling
x s (t ) x (t ) x p (t ) x (t ) c n e
(or Gating) j 2 nf s t
n
Flat-Top Sampling
xs (t ) x '(t ) * p(t ) x(t ) (t nTs ) * p(t )
For all sampling techniques
n
If fs > 2B then we can recover x(t) exactly
If fs < 2B) spectral overlapping known as aliasing will occur
93
Example 1:
Consider the analog signal x(t) given by
x(t ) 3cos(50 t ) 100sin(300 t ) cos(100 t )
What is the Nyquist rate for this signal?
Example 2:
Consider the analog signal xa(t) given by
xa (t ) 3cos 2000 t 5sin 6000 t cos12000 t
What is the Nyquist rate for this signal?
What is the discrete time signal obtained after sampling, if
fs=5000 samples/s.
What is the analog signal x(t) that can be reconstructed from the
sampled values?
94
Practical Sampling Rates
Speech
- Telephone quality speech has a bandwidth of 4 kHz
(actually 300 to 3300Hz)
- Most digital telephone systems are sampled at
8000 samples/sec
Audio:
- The highest frequency the human ear can hear is
approximately 15kHz
- CD quality audio are sampled at rate of 44,000
samples/sec
Video
- The human eye requires samples at a rate of at
least 20 frames/sec to achieve smooth motion
95
Q-18 Explain PCM communication system with necessary blocks.
96
Pulse Code Modulation (PCM)
97
Q-19 What is quantization ?
98
See Figure 2.16 (Page 80)
Natural samples, quantized samples and pulse code modulation 99
100
Each quantized sample is represented by a word
consisting of three bits in the example. Space between
words (i.e. samples) allow multiplexing.
101
Q-20 Explain PCM system and mention its advantage
102
Pulse Code Modulation
satellite communication)
Efficient codes are readily available
Disadvantage:
Requires wider bandwidth than analog signals
104
Q- 21 Mention different source of corruption in sampling and quantization
process.
105
2.5 Sources of Corruption in the sampled,
quantized and transmitted pulses
Sampling and Quantization Effects
Quantization (Granularity) Noise: Results when quantization
levels are not finely spaced apart enough to accurately
approximate input signal resulting in truncation or rounding error.
106
Channel Noise : Thermal noise , interference from other users and
interference from circuit switching transients can cause errors in detecting
the pulses carrying the digitized samples.
Rapid degradation of output signal quality with channel induced error is called
threshold effect.
This is called Inter symbol interference , ISI which degrades the system
performance
Rising the signal power can not overcome the error performance
107
Signal to Quantization Noise Ratio
The level of quantization noise is dependent on how close any
particular sample is to one of the L levels in the converter
108
Q- 22 Explain uniform quantization
109
Uniform Quantization
A Quantizer with equal quantization level is a Uniform Quantizer
Each sample is approximated within a quantile interval
Uniform Quantizer are optimal when the input distribution is
uniform
i.e. when all values within the range are equally
likely
111
• Figure illustrates L- level
quantizer for a signal having
peak to peak voltage range
Vpp = Vp – (- Vp) = 2Vp volts.
112
Signal to Quantization Noise Ratio
q/2
2 e 2 p(e)de e 2 1 q/2
1 q/2
q de e 2
de
q / 2 q / 2 q q / 2
q/2
q 2
1q e
3
3 q / 2 12
Where p(e) =1/q is the uniform probability density function of the quantization
error.
113
Q-28 Derive the equation for signal to quantization noise ratio or SQNR
114
The variance σ2 , corresponds to the average quantization noise
power.
The peak power of the analog signal (normalized to 1 Ω )can be
expressed as:
L x q = 2 Vp= Vpp
2 2
Vp V pp L2 q 2
P Vp = L x q / 2
1 2 4
Therefore the Signal to Quantization Noise Ratio is given by:
L2 q 2 / 4
S N Rq 2 3 L2 L=2n
q /12
L is no of quantization levels.
V p
1
S i m (t ) m (t )
2 2
dm
V p
2V p
1 m 3 V
1
p
V p3 Vp
2
2 (1)
2V p 3 V 2V p 3 3
p
L2
NQ (2)
12
The number of quantization levels is L then L x q = 2Vp
So that (3)
Vp = L x q / 2
116
Q-29 Derive the equation for signal to quantization noise ratio or SQNR
117
Using (1) , (2) and (3)
Vp
2
Lq
2
L q
2 2
2 4 4
Si 4V p 2 4
32 2 L2
NQ q q q2 q2
12
Since L = 2n Si
2 2n
NQ
Si
in dB 10 log 10 2 2n
6n
N Q dB
118
If q is the step size, then the maximum quantization error that can
occur in the sampled output of an A/D converter is q
V
q pp Vpp= 2V= qL
L
where L = 2n is the number of quantization levels for the converter.
(n is the number of bits).
S 10 log (2 2 n ) 6 n dB
N dB 10
log10 2 0.3
119
Q-30 Explain PWM and PPM modulation and demodulation with necessary
sketches.
120
Pulse Modulation
Recall that analog signals can be represented by a sequence of discrete
samples (output of sampler)
Pulse Modulation results when some characteristic of the pulse (amplitude,
width or position) is varied in correspondence with the data signal
Two Types:
Pulse Amplitude Modulation (PAM)
The amplitude of the periodic pulse train is varied in proportion to the
sample values of the analog signal
Pulse Time Modulation
Encodes the sample values into the time axis of the digital signal
Pulse Width Modulation (PWM)
Constant amplitude, width varied in proportion to the signal
Pulse Duration Modulation (PDM)
sample values of the analog waveform are used in determining the
width of the pulse signal
121
122
Pulse Width Modulation (PWM) and
Pulse Position Modulation (PPM) - 1
In PWM, message modulates the width of the pulse and in
PPM, message modulates position of the fixed width pulse.
These are not suitable for TDM.
Pulse Width Modulation (PWM) and
Pulse Position Modulation (PPM) - 2
Pulse Width Modulation (PWM) and Pulse Position Modulation (PPM)
• PPM the position of the arrival of a fixed width pulse in each sample
period is modulated by the message signal.
• Together PWM and PPM are known as Pulse Time Modulation or PTM.
125
Pulse Width Modulation (PWM)
• We have a comparator , one input of which is fed by input message signal and
the other by a sawtooth signal which operated at a carrier frequency.
• The maximum of the input signal ( both +ve and –ve side) should be less than
that of sawtooth signal.
126
• Output of comparator will be PWM wave
• PWM pulses occur at regular interval, its rising edge coinciding with the falling
edge sawtooth signal.
127
When sawtooth signal as its minimum, which is always less than
the minimum of input signal the +Ve input of the comparator is at
higher potential and the comparator output is positive.
When the sawtooth signal rises with a fixed slope and crosses input
signal value the –Ve input of comparator is at higher potential and
the comparator output will be –Ve.
128
Pulse Position Modulation (PPM)
129
these spikes are then fed to a +Ve edge triggered fixed width
pulse generator which generates pulses of fixed width when a +Ve
spike appeared , coinciding with the falling edge of original PWM
signal.
130
the occurrence of these falling edges were dependent
( proportional to amplitude of message) on input message and
hence the delay in occurrence of these fixed width pulses are
proportional to the amplitude of the message at that instant.
Demodulation of PWM
For PWM demodulation , start a ramp at the positive edge and stop it
when the negative edge comes.
Since the widths are different these ramps will reach different heights in
each cycle which is directly proportional to pulse width and in turn the
amplitude of the modulating signal.
131
This when passed through a low pass filter will follow the envelope i.e.
message signal and the demodulation is done.
PPM Demodulation
Similar scheme is employed , now the ramp starts at one positive edge of
the pulse and stops at the positive edge of the next pulse.
Thus the delay between the pulses decides the height of the ramp
generated and in turn closely follows the modulating message amplitude.
Low pass filter after that filters out the envelope information as
demodulated signal.
Transistor and RC combination can be used both for ramp generation and
filtering to implement a demodulator circuit.
Between PWM and PPM , the latter gives better performance in a noisy
system
132
SR edge triggered flip-flop is set by +Ve edge of the clock.
It remains set so that output Q is High, till a +ve edge from PPM resets it.
The more the delay in arrival , the longer the duration Q remains high.
It is again set in the next clock period by the rising edge of clock pulse.
Thus the output of the flip-flop is a train of pulses , the width of which is
decided by how late PPM pulses arrive in a particular clock period in
which again the message information is contained.
133
Pulse Width Modulation (PWM) and
Pulse Position Modulation (PPM) - 3
Q-32 Explain quantization and quantization error. Derive the necessary
question for quantization error. ( Ref : Taub and Schilling )
135
Quantization for Digital Representation-1
Understanding of quantization from Taub and Schilling
Quantization error : the quantized signal and the original signal from which it was
derived differ from one another in a random manner.
This difference or error may be viewed as a noise due to the quantization process
and is called QUANTIZATION ERROR.
2
Calculation of Quantization error : e where e is the difference between
original and quantized signal voltage.
Let us divide total peak-to-peak range of the message signal m(t) into M equal
voltage intervals, each of magnitude S volts.
At the center of the each voltage interval we locate a quantization level m1,m2,m3,
…., mM as shown in figure (a) ( next slide).
-- m(t) happens to be closest o the level mk , the quantizer output will be mk, the
voltage corresponding to that level.
Quantization error :
f(m) is pdf and considered
constant for each quantization
level
Substituting x=(m-mk)
140
COMPANDING
The dynamic range can be improved by companding i.e.
by first compressing and then expanding. A small
amplitude signal will range through more quantization
region.
141
Nonuniform Quantization
Nonuniform quantizers have unequally spaced levels
The spacing can be chosen to optimize the Signal-to-Noise Ratio
142
Many signals such as speech have a nonuniform distribution
See Figure on next page (Fig. 2.17)
Basic principle is to use more levels at regions with large
probability density function (pdf)
Concentrate quantization levels in areas of largest pdf
Or use fine quantization (small step size) for weak signals and
coarse quantization (large step size) for strong signals
143
Statistics of speech Signal Amplitudes
146
The signal below shows the effect of compression, where the
amplitude of one of the signals is compressed
After compression, input to the quantizer will have a more uniform
distribution after sampling
147
Basically, companding introduces a nonlinearity into the signal
This maps a nonuniform distribution into something that more
148
Input/Output Relationship of Compander
149
Types of Companding
-Law Companding Standard (North & South America,
and Japan)
log e 1 (| x | / xmax
y y max sgn( x )
log e (1 )
where
x and y represent the input and output voltages
is a constant number determined by experiment
In the U.S., telephone lines uses companding with = 255
Samples 4 kHz speech waveform at 8,000 sample/sec
Encodes each sample with 8 bits, L = 256 quantizer levels
Hence data rate R = 64 kbit/sec ( 8,000 x 8 = 64,000)
= 0 corresponds to uniform quantization
150
A-Law Companding Standard (Europe, China, Russia,
Asia, Africa)
| x|
A
xmax |x| 1
ymax sgn( x ), 0
(1 A) xmax A
y ( x)
| x|
1 log e A
xmax 1 | x|
ymax sgn( x), 1
(1 log e A) A xmax
where
x and y represent the input and output voltages
A = 87.6
151
152
153
154
Q- Explain different line codes
155
PCM Waveform Types
The output of the A/D converter is a set of binary bits
But binary bits are just abstract entities that have no physical definition
We use pulses to convey a bit of information, e.g.,
156
There are many types of waveforms. Why? performance criteria!
Each line code type have merits and demerits
The choice of waveform depends on operating characteristics of a
system such as:
Modulation-demodulation requirements
Bandwidth requirement
Synchronization requirement
157
Goals of Line Coding (qualities to look for)
A line code is designed to meet one or more of the following goals:
Self-synchronization
158
Spectrum Suitable for the channel
Spectrum matching of the channel
Transparency
The property that any arbitrary symbol or bit pattern can be
159
Line Coder
The input to the line encoder is
the output of the A/D converter
or a sequence of values an that
is a function of the data bit
The output of the line encoder
is a waveform:
s (t ) a
n
n f (t nTb )
where f(t) is the pulse shape and Tb is the bit period (Tb=Ts/n for n
bit quantizer)
This means that each line code is described by a symbol mapping
function an and pulse shape f(t)
Details of this operation are set by the type of line code that is
being used
160
Summary of Major Line Codes
Categories of Line Codes
Polar - Send pulse or negative of pulse
Polar NRZ
Bipolar NRZ
RZ - Return to Zero - pulse lasts just half of bit period
Polar RZ
Bipolar RZ
Manchester Line Code
161
When the category and the generalized shapes are combined, we have
the following:
Polar NRZ:
Wireless, radio, and satellite applications primarily use Polar
162
Bipolar RZ
A unipolar line code, except now we alternate
between positive and negative pulses to send a ‘1’
Alternating like this eliminates the DC component
This is desirable for many channels that cannot
transmit the DC components
Generalized Grouping
Non-Return-to-Zero: NRZ-L, NRZ-M NRZ-S
Modulation
Multilevel Binary: dicode, doubinary
Note:There are many other variations of line codes (see Fig. 2.22,
page 80 for more)
163
Commonly Used Line Codes
Polar line codes use the antipodal mapping
A, w hen X n 1
an
A, w hen X n 0
Polar NRZ uses NRZ pulse shape
Polar RZ uses RZ pulse shape
164
Unipolar NRZ Line Code
Unipolar non-return-to-zero (NRZ) line code is defined by
unipolar mapping
A, when X n 1
an Where Xn is the nth data bit
0, when X n 0
In addition, the pulse shape for unipolar NRZ is:
where Tb is the bit period t
f (t ) , NRZ Pulse Shape
Tb
165
Bipolar Line Codes
With bipolar line codes a space is mapped to zero and a
166
Manchester Line Codes
Manchester line codes use the antipodal mapping and
the following split-phase pulse shape:
Tb Tb
t 4 t 4
f (t ) T
T
b b
2 2
167
Summary of Line Codes
168
169
Comparison of Line Codes
Self-synchronization
Manchester codes have built in timing information because they
Error probability
Polar codes perform better (are more energy efficient) than
170
Comparisons of Line Codes
Different pulse shapes are used
to control the spectrum of the transmitted signal (no DC value,
bandwidth, etc.)
guarantee transitions every symbol interval to assist in symbol timing
recovery
1. Power Spectral Density of Line Codes (see Fig. 2.23, Page 90)
After line coding, the pulses may be filtered or shaped to further
171
First Null Bandwidth
Unipolar NRZ, polar NRZ, and bipolar all have 1st null bandwidths of
Rb = 1/Tb
Unipolar RZ has 1st null BW of 2Rb
Manchester NRZ also has 1st null BW of 2Rb, although the
spectrum becomes very low at 1.6Rb
172
Generation of Line Codes
173
Bits per PCM word and M-ary Modulation
Section 2.8.4: Bits per PCM Word and Bits per Symbol
L=2l
174
Solution to Problem 2.14
q
| e | pV pp | e |max
2
V pp 1
V pp Lq q 2 L
l
L 2p
1
l log 2 l log 2 (50) 6
2 p
fs 8000 Rs 48000 M 16
R 48000
R2 12000 symbols / sec
log 2 ( M ) 4
175