DC U1 Fundamentals
DC U1 Fundamentals
Dr J.RAVINDRANADH
Professor
E-mail : [email protected]
Unit-IV
ERROR CONTROL CODING:
SOURCE ENCODER
DEMODULATOR:
The extraction of the message from the information bearing
waveform produced by the modulation is accomplished by the
demodulator. The output of the demodulator is bit stream..
SOURCE DECODER:
At the receiver, the source decoder converts the
binary output of the channel decoder into a symbol
sequence. The decoder for a system using fixed –
length code words is quite simple, but the decoder for
a system using variable – length code words will be very
complex.
Bandwidth Requirements
This is a measure of the spectrum that the communication system
requires to transmit the information at the desired transmission rate.
Error probability
This represents the percentage of bits that are in error relative to the
overall number of bits that are transmitted by the communication system
Transmission Power
This represents the amount of power of the transmitted signal that would
be required to achieve a particular desired error probability
System Complexity
This represents that amount of money that a manufacturer will have to
spend to build the system and the amount of money that a user will have
to pay to use the system
System Synchronization
Digital detection requires system synchronization
whereas the analog signals generally have no such
requirement
g (t ) = ∑ g (nTs ) (t - nTs )
-∞
(t - nTs )
g (t)
Ts ( f ) f s ∑ f - n f s )
-∞
G ( f ) = G( f ) * f s ∑ ( f - n f s )
-∞
G ( f ) = f s ∑ G( f ) * ( f - n f s )
-∞
G ( f ) = f s ∑ G( f - n f s )
-∞
G(f )= ∑ g ( nT s ) e - j2 fnT s
-∞
this is called Discrete Fourier transform
G( f ) = 0 for f ≥ W
G ( f ) = f sG ( f ) ∑ f sG( f - n fs )
n = -∞
n≠ 0
± f s ,± 2 f s ,± 3 f s etc
G ( f ) for f s = 2W
G ( f ) for f s < 2W
Nyquist rate= 2W
J. Ravindranadh/ Professor /
ECE Dept / Digital
Communication 24
Quantization Process
Convert the continuous of signal in to sampled signal
Divide the sampled version of the signal into L number
of quantized levels.
Each sample approximate or round of the nearest
quantized level.
We divide the total range VH – VL into L equal intervals
each of size Δ. Accordingly Δ is called step size and is
given by
VH - VL
=
L
0
n
gq(t)
Quantized Signal
0
t
It is quite apparent that the quantized signal is not exactly the same
as the original analog signal. There is a fair degree of quantization
error here. However; as the number of quantization levels is
increased the quantization error is reduced and the quantized signal
gets closer and closer to the original signal
Consider a n-bit PCM system where n= number of bits/sample
Vmax - Vmin
number of level
8
7
6
5
4
3
2
1
0
8
7
6
5
4
3
2
1
0
Quantization error
32
when the input is between δ/2 to –δ/2 the quantizer
output is zero
For - δ/2 ≤ x(nTs) < δ/2 , xq(nTs) =0
For δ/2 ≤ x(nTs) < 3δ/2 , xq(nTs) =δ
Quantization error
34
For 0≤ x(nTs) < δ , xq(nTs) =δ/2
For - δ ≤ x(nTs) < 0 , xq(nTs) =-δ/2
0 - δ/2 =- δ/2
0 - (- δ/2) = δ/2
the maximum quantized error is Max =
2
Mid – Rise type: Quantization levels – even number
Quantization error
36
when the input is between 0 to δ the quantizer output is
zero
For 0 ≤ x(nTs) < δ , xq(nTs) =0
For -δ ≤ x(nTs) < 0 , xq(nTs) =-δ
0 - δ = -δ
thus the quantized error lies between -δ and 0
38
Sample value Quantized value Quantized error Qe Encoder o/p
3.8 3.5 -0.3 111
2.1 2.5 -0.4 110
0.5 0.5 0 100
-1.7 -1.5 -0.2 010
-3.2 -3.5 -0.3 000
-4 -3.5 -0.5 000
1 -
f q (q ) = ≤ qe ≤
2 2
=0 otherwise
-δ/2 δ/2
The average power of the quantizing noise or variance
or mean square value1
Q2 ∫ q e2 f q( q ) dq
-
1 2
1 2
2
= 2
q dq
Q
- ∫ e =
12
(2)
2 42
Let n denote the number of bits per sample∴ L = 2 n (3)
equivalently n = log 2 L
2 mmax
= n (4)
2
1 2
From eq (4) in eq (2) we get the step size 2
Q m max 2 - 2n
3
Let denote the average power of the message signal m(t).
The output signal to noise ratio of a uniform quantization
P 3P
( SNR ) O ( SNR ) O ( 2 ) 2 2n
Q2 m max
The output signal to noise ratio of the quantization increases
exponentially with increasing number of bits per samples.
43
Case 1: Sinusoidal Modulating Signal
A m2 2 3
( SNR ) 0 = (2 2n )
A m2 2 - 2 n 3 2
3
( SNR ) dB = 10 log + 20 log L
2
= 1.8 + 20 log L (OR) = 1.8 + 6n
Case 2: average signal power is normalized P=1 therefore Am=1
SNR = 3(2 2n )
( SNR ) dB = 10 log 3 + 20 log L = 4.8 + 20 log L
L=512
if n=5 L 25 32 levels
Vmax - Vmin 10
V
number of level 32
10
Maximum error possible Max
2 64
Band limited signal W= 4K
Nyquist rate = 2 W= 8000 samples/sec
3
( SNR ) dB = 10 log + 20 log L 1.8 6n 43.8dB
2
2 Am 5.85 10 3V
(i )
L
3
( SNR ) dB = 10 log + 20 log L 1.8 6n 62dB
2
1.8 20 log L 40 L 81.3
2 81.3
n
n=6 , 2n=64 which is less than desire value
Transmitter
0 1 1 0 1 0 0 1
0 1 1 0 1 0 0 1
NZ code
A rectangular pulse is used for 1 and no pulse for 0
this type of signal is called Return to Zero.
0
57
Bipolar return-to-zero signaling
Positive and negative pulses of equal amplitude are
used alternatively symbol 1 and no pulse for symbol
0, it is referred as bipolar signal. This format as
advantage that the power of the transmitter signal
does not have any d.c component.
0 1 1 0 1 0 0 1
.
0
Differential coding
Transition is a binary PCM wave may be used to
designate symbol 0 while no transition is used to
designate symbol1. this representation is called
differential encoding.
0 1 1 0 1 0 0 1
59
Non uniform quantizer
In non uniform quantizer the step size is not fixed , its varies as
for the input signal.
xq(nTs ) Large step size for high inputs
x( nTs )
Thus for low amplitude signals 1V,2V,3V the error may be large
values but for upper range it is very small, it is occurs because of
uniform quantization. To avoid these problem non quantization
used
Compressor
Expander
Expander
Compressor
Above figure shows the Campander characteristics which
is the combination of compressor and expander
characteristics.
J. Ravindranadh/ Professor /
ECE Dept / Digital
Communication 66
Uniform quantization μ =0. for a given value of μ the reciprocal
slope of the compression curve, which defines the quantum steps,
is given by the derivative of m with respect to v
d m log(1 + m )
= (1 + m )
dv
μ –law is neither linear or logarithmic, but it is approximately
linear at low input levels corresponding to μ|m|<<1 approximately
logarithmic at high input levels corresponding to μ|m|>>1
Comparator
Sampled e q (nTs ) DPCM
input e(nTs ) wave
m(nT
m( nTs) Quantizer Encoder
m(nTs )
Prediction
filter
m q (nTs )
DPCM output
input Decoder
Prediction
filter
m(t)
Ts
Staircase u(t)
0 0 1 0 1 1 1 1 1 0 1 0 0 0 0 0
Comparator
Sampled b( nTs ) DM
input e(nTs ) wave
m(nT
m( nTs) Quantizer Encoder
∧
m(nTs )
u{(n - 1)}Ts
Delay
Ts
u (nTs )
Accumulator 79
The error between the sampled value of m(t) and last approximation
sample is given by
∧
+Δ
b( nTs ) = ∇ sgn{ e(nTs )}
i/p
-Δ
80
Depending on the sign of error e(nTs) the sign of step size decided
∧
-∇ if m(nTs ≤ m(nTs )
Delay
Ts
Δ d
> m(t)
Ts dt
1(2π)(800)
Δ= =78mV
64000
The input to the delta modulator =is m(t)= 125t[u(t)-u(t-1)+[250-
125t][u(t-1)-u(t-2)] sampling rate is 32000 samples/sec Determine
the step size
L = 2n 512 = 2 n ∴ n=9
1 0 1 0 1 0 1 0 1
91
A sinusoidal signal with an amplitude of 3.25 Volts is applied to
unifrom quantizer of the midrise type whose output takes on the
values 0.5,+1.5, +2.5, +3.5 Volts. Sketch the waveform of the
resulting quantizer output for one complete cycle of the input