Upload
tamsin-rice
View
218
Download
3
Embed Size (px)
Citation preview
Modulated Digital Transmission
Digital modulation is the process of using digital information to alter or modulate the amplitude, phase or frequency of a sinewave.
As an example, suppose we wished to use digital information to modulate the amplitude of a sinewave. The result is called On-Off Keying (OOK) and is shown on the following page.
1 0 1 1 0 1
To generate an OOK signal, we simply multiply the digital (baseband) signal by the unmodulated carrier.
X
In a variation of OOK, we multiply the sinewave by a bipolar or antipodal version of the digital waveform:
1 0 1 1 0 1
+
-
+ +
- - -
+0 volts
The resultant modulated waveform is actually a form of phase-modulation called BPSK.
X
BPSK has two phases: 0° and 180° corresponding to logic one and logic zero respectively.
logic one
logic zero
0°
180°
Just as we can have two phases with BPSK, we can have four phases with QPSK.
0°
90°
180°
270°
Since we have four phases, we cannot simply assign these phases to logic one and logic zero. Instead, we assign each of the four phases to pairs of bits.
11
01
00
10
1 0 1 1 0 1
Thus, we modulate the following digital waveform using QPSK:
The digital modulation processes are fairly simple: simply multiply the bits by sinewaves (or cosinewaves). In the case of QPSK, we multiply the odd bits by sinewaves and the even bits by cosinewaves and add them together.
The demodulation processes are very similar to that of DSB-SC AM. In DSB-SC AM, we multiplied the modulated carrier by a sinewave (at the carrier frequency) and then low-pass filtered the product.
Xxc(t) LPF
cos ct
The digital demodulation process is very similar, except that, instead of a low-pass filter, we use an integrator.
X
digitally-modulated signal ∫
We must also interpret the output of the integrator appropriately. The value of the output will determine if input signal corresponds to a one or a zero.
Let s(t) be the modulated signal.
For OOK, we have
s (t )={cosωc t ( logic one ) ,0 ( logic zero ).
The digital demodulator would look like the following
Xs(t) ∫cos ct
ds(t)s
We denote the output of the integrator by s.
The product s(t) cos ct is denoted by ds(t)
Now, if
what would dn(t) and s be?
s (t )={cosωc t ( logic one ) ,0 ( logic zero ).
d s( t )={cos2ωc t ( logic one) ,0 (logic zero ).
s={∫ cos2ωc t ( logic one) ,0 ( logic zero).
Now the integral is taken over a period T corresponding to the time to transmit a single bit.The bit period T is also an integral multiple of periods of c.
T
If this is true, we have
∫0
Tcos2ωc t dt =∫0
T 12 [1+ cos 2ωc t ]dt
= 12 ∫0
T[ 1 ] dt+ 1
2 ∫0
T
[cos 2ωc t ]dt= 1
2[T ] = T
2.
So,
s={T2 (logic one ) ,
0 ( logic zero) .
Now, we need to interpret this integrator output. To do this interpretation, all we need to do is look at what the demodulator does: it converts a modulated sinewave to one of two values: {T/2, 0}.
The resultant output is just like a baseband digital signal.
To interpret this digital signal, we simply set a threshold (typically at the halfway point): anything above this threshold is considered to be a logic one, and anything below this threshold is considered to be a logic zero.
So, for OOK output s, we perform the following comparison:
s
1><0
T4
We can use the same demodulator for BPSK:
Xs(t) ∫cos ct
ds(t)s
s (t )={+ cosωc t ( logic one ) ,−cosωc t ( logic zero)
where
The product and the output of the integrator become
d n (t )={+ cos2ωc t (logic one) ,
−cos2ωc t ( logic zero).
s={+∫ cos2ωc t (logic one) ,
−∫ cos2ωc t ( logic zero).
Or,
s={+ T2 ( logic one ) ,
−T2
( logic zero ) .
s
1><0
0.
The interpretation or comparison of s for BPSK becomes
We now have detection thresholds for the outputs of digital demodulators.
The next step is to determine the bit error-rates (BER’s) for these demodulators/detectors.
We can determine the bit error-rates in much the same way that we determined the bit error-rates for baseband digital transmission, reception and detection.
For baseband digital transmission, we took the bit error-rate to be
Q ( d
σ n)
where d is the distance between either logic level and the detection threshold (e.g, 2.5 volts), and where n is the standard deviation of the noise (the square-root of the variance of the noise).
For modulated digital transmission and reception the formula is much the same:
Q ( d
σ nd)
where d is the distance between detected logic level (e.g., T/2) and the threshold (e.g, T/4), and where nd is the standard deviation of the detected noise.
All we need to do is find the detected noise variance nd.
The modulated signal for BPSK becomes
s (t )={cosω c t (logic one) ,0 ( logic zero) .
We will also change the signal for the local oscillator in the demodulator as well.
Xs(t) ∫cos ct
ds(t)s
Given the new values for s(t), and the new demodulator, the new values for ds(t) and s become
d n (t )={ 2T
cos2ω c t ( logic one ) ,
0 ( logic zero) .
s={ 2T∫cos2ωc t ( logic one) ,
0 ( logic zero) .
s={1 ( logic one) ,0 ( logic zero) .
Since
we now have
∫0
Tcos2ωc t dt=
T2,
The detection threshold is now at ½.
For BPSK and the same demodulator, we have
s (t)={+ √ 2T
cosωc t ( logic one) ,
−√ 2T
cosωc t (logic zero ).
s={+ 1 ( logic one) ,−1 (logic zero ).
The detection threshold remains at zero.
Now what happens when we pass noise through such a demodulator.
Xn(t) ∫cos ct
dn(t)n
The output of the demodulator is
n=∫0
Tn ( t )cosωc t dt .
The variance of n is the average of the square of n.
n2=∫0
Tn ( t )cosωc t dt∫0
Tn (s )cosωc s ds .
n2=∫0
T∫0
Tn( t ) n( s )cosωc t cosωc s dt ds .
n2=∫0
T
∫0
Tn(t )n(s )cosωc t cosωc s dt ds .
Now let us examine
n ( t ) n ( s )
This quantity, the average of the product of a function with itself at a different time, is called the autocorrelation of n(t).
We denote the autocorrelation of n(t) by the letter R.
R n(t−s)=n (t )n (s)
If the noise is something called wide-sense stationary, the autocorrelation is only dependent upon the time difference between t and s.
As it turns out, the Fourier transform of the autocorrelation is the power spectral density (this is the Wiener Khinchine theorem).
When we take the Fourier transform of Rn(t), we get the power spectral density Sn().
F {R n( t )}=S n( ).
The nature of
depends upon the nature of the power spectral density of n(t).
Suppose n(t) is Gaussian white noise with power spectral density
S n( f )=N 0
2.
Rn(t−s)=n (t )n (s) .
The inverse Fourier transform of a constant is an impulse function:
n (t )n ( s)=N
0
2δ( t− s) .
Rn( t )=F-1 {S n ( f ) }=F -1{N 0
2 }= N 0
2δ ( t ) .
So,
n2 =N 0
2 ∫0
Tcosωc s cosωc s ds
=N 0
2 ∫0
Tcos2ωc s ds
=N 0
2T2
=N 0T
4.
So the variance of the detected noise becomes
n2=N 0
2∫0
T∫0
Tδ ( t−s )cosωc t cosωc s dt ds .
Using the sifting property of delta functions, we have
We can now calculate the bit error rate for OOK and BPSK:
BER =Q ( dσ nd
)=Q (1 /2
√N 0T /2)=Q (
1
√N 0T)
BER =Q ( dσnd
)=Q (1
√N 0T /2)=Q (
2
√N 0T)
OOK
BPSK
Now, let us do another variation of OOK and BPSK:
s (t )={cosω c t (logic one) ,0 ( logic zero) .
s (t )={+ cosωc t ( logic one) ,−cosωc t (logic zero ).
OOK
BPSK
We have introduced a factor A into the amplitude of the signals.
We shall update the demodulator appropriately:
Xs(t) ∫A cos ct
ds(t)s
s={+ A2 ( logic one) ,−A2 (logic zero ).
BPSK
OOK
s={+ A2 ( logic one) ,0 (logic zero ).
The outputs of the demodulator become
The bit error rates are now
BER=Q ( dσnd
)=Q (A
2 /2√N 0T /2
)=Q (1
√2
A2
√N 0T)
BER=Q ( dσnd
)=Q (A
2
√N 0T /2)=Q ( √2 A
2
√N 0T)
OOK
BPSK
Finally, let us let A = Es. 2/T
s (t )={√E s √ 2T
cosωc t (logic one) ,0 (logic zero ).
s (t )={+ √E s √ 2T
cosωc t ( logic one) ,
−√E s √ 2T
cosωc t (logic zero ).
OOK
BPSK
The bit error rates are now
BER=Q ( dσnd
)=Q ( √E s
2/2
√N 0T /2)=Q (
E s
N 0
)
BER=Q ( dσnd
)=Q ( √E s
2
√N 0T /2)=Q (
2 E s
√N 0T)
OOK
BPSK
The only significance of letting A=Es is in the energy:
E=∫0
Ts 2( t )dt .
For OOK, we have
E={E s ( logic one) ,0 (logic zero ).
For BPSK, we have
E={+ E s ( logic one) ,−E s (logic zero ).
Thus, Es is the (maximum) signal energy.
Exercise: Suppose we transmitted 5 cos ct for logic one and 15 cos ct for logic zero. Find the maximum signal energy. Design a demodulator and show the detection criterion for the output of the demodulator. Finally, find the bit error-rate.
QPSK
QPSK is fundamentally different from OOK and BPSK in that there are four signals in two dimensions to consider.
OOK and BPSK each deal with two different modulated signals: 0 volts or a sinewave for OOK and two phases of a sinewave for BPSK. In each case, the two modulated signals could be thought of as different in amplitude.
11
01
00
10
We could switch the sine and the cosine components:
11
01
00
10
The phases are distributed about a circle.
11
01
00
10
cos ct
sin ct
We could start the phase at 45° instead of 0°.
1101
00 10
sin ct
cos ct
The QPSK signal can be generated as a sum of two BPSK signals: one BPSK signal is sine-modulated, the other BPSK signal is cosine-modulated.
s ( t )= o ( t ) cos ω c t+ e ( t ) sin ω c t .
The signals o(t) and e(t) are the antipodal (bipolar) versions of the odd and even digital signals. [o(t),e(t) = ±1.]
X
Based upon the expression for s(t), the QPSK modulator looks like the following.
X
+
cos ct
sin ct
odd bits
even bits
o(t)
e(t)
Now, let us design a demodulator for QPSK.
Since QPSK modulation is like two BPSK modulators, we might guess that QPSK demodulation can be performed using two BPSK demodulators.
Let us call the output of the two demodulators s1 and s2.
X
X
cos ct
sin ct
o(t)
e(t)
∫ s1
s2
s(t)
∫
The idea behind this demodulator is that the upper-half demodulates the odd bits and the lower-half demodulates the even bits.
The question is will the odd-bit portion of the signal s(t) bleed through to the output of the even-bit (lower-half) portion of the demodulator? [Also, will the even-bit portion of the signal bleed through to the output of the odd-bit (upper-half) portion of the demodulator?]
The answer to this question is negative because of something called orthogonality.
We have found that
∫0
Tcos2ωc t dt=
T2
.
In a similar fashion to the verification of the above statement, we also have (exercise)
∫0
Tsin2ωc t dt=
T2
.
Now, what happens when we take the integral of the product of the cosine term and the sine term:
∫0
Tcosωc t sinωc t dt=?
As it turns out (exercise)
∫0
Tcosωc t sinωc t dt=0 .
Thus, the cosine portion of the signal will not bleed through the sine portion of the demodulator and vice-versa.
Sine and cosine are said to be orthogonal.
The outputs s1 and s2 are compared against zero in order to determine the odd bits and the even bits respectively.
s
1><0
0 . s
1><0
0 .
odd bits even bits
Now, let us begin to calculate the bit error-rate (BER) for QPSK.
To calculate the bit error-rate, let us first see what happens to a noisy signal passing through the demodulator.
r ( t )=s ( t )+ n( t ) .
X
X
cos ct
sin ct
r1=s1+n1
r2=s2+n2
r(t)=s(t)+n(t) ∫
∫
The outputs r1 and r2 can be thought of as noisy versions of s1 and s2.
The values of s1 and s2 are ±1. The quantities r1 and r2 are Gaussian-distributed random variables whose means are ±1. The variances of r1 and r2 are N0/2 (see Slide 40).
s1 and s2 can be thought of as horizontal and vertical coordinates. s1 is the output of the “cosine” demodulator and s2 is the output of the “sine” demodulator. Plotting s1 and s2 as “x” and “y” components, we have a familiar-looking diagram.
1101
00 10
s2
s11
1
This diagram is called a constellation diagram. The constellation diagram shows magnitudes and phases corresponding to amplitudes and phases of a modulated sinewave, as well as the outputs of the cosine and sine demodulators. [The term constellation diagram comes from its appearance as a star chart.
Since r1 and r2 are noisy versions of s1 and s2, the density functions for r1 and r2 are shown on the following slides.
-3 -2 -1 0 1 2 3-0.5
0
0.5
1
1.5
Probability Density Function for r1
p(r
1) x
n (2 )
1/2
r1
p(r1|s=-1) p(r1|s=+1)
-3 -2 -1 0 1 2 3-0.5
0
0.5
1
1.5
Probability Density Function for r2
p(r
2) x
n (2 )
1/2
r2
p(r2|s=-1) p(r2|s=+1)
The probability density functions for r1 and r2 can be considered to be horizontal and vertical “slices” of a two-dimensional joint probability density function p(r1,r2).
The two-dimensional probability density function is shown on the following slide:
-3-2
-10
12
3 -3
-2
-1
0
1
2
3
0
0.5
1
1.5
2
r2
Two-Dimensional Density Functions
r1
p(r 1
,r2)
The one-dimensional “slices” corresponding to the probability density functions for r1 and r2 are shown on the following slides.
-3-2
-10
12
3 -3
-2
-1
0
1
2
3
0
0.5
1
1.5
2
r2
Probability Density Function for r1
r1
p(r 1
)
-3-2
-10
12
3 -3
-2
-1
0
1
2
3
0
0.5
1
1.5
2
r2
Probability Density Function for r2
r1
p(r 2
)
The peaks of the function p(r1,r2) correspond to the points on the constellation diagram.
1101
00 10
s2
s11
1
-3-2
-10
12
3 -3
-2
-1
0
1
2
3
0
0.5
1
1.5
2
r2
11
10
Two-Dimensional Density Functions
01
r1
00
p(r 1
,r2)
By looking at the “slices” and the two-dimensional distributions, we see that there are two noise dimensions.
Errors can occur due to “horizontal noise” n1 or due to “vertical noise” n2 .
For example, if n1 is sufficiently negative, the constellation point 11 could drift into the 01 area.
Similarly, if n2 is sufficiently negative, the constellation point 11 could drift into the 10 area.
1101
00 10
r2
r1
n1
n2
In order for there to be no error, the horizontal noise (n1) and the vertical noise (n2) must be less than the distance to the boundary.
P (no horizontal error) = P (n1< 1)= 1−P (n1> 1)
= 1−Q ( 1σ nd
) .
P (no vertical error) = P (n2< 1)= 1−P (n2> 1)
= 1−Q ( 1σnd
) .
Let
p=Q ( 1
σ nd) .
P ( no horizontal error )=1− p .
P ( no vertical error )=1− p .
P ( no error )=P ( no horizontal error )P (no vertical error )= (1− p )2 .
So, we have
P ( error )=1− P ( no error )= 1− (1− p )2 .
This is the probability of error not the bit error-rate!
In the case of QPSK, whenever a horizontal or vertical error is made, only one out of two bits are in error.
So for QPSK,
BER= 12P (error )= 1
2 [1−(1− p )2 ] .
This BER has an interesting approximation. If p is small, p2 is smaller still and can be neglected:
BER = 12 [1− (1−2p+ p2 ) ]
≈ 1
2[1− (1−2p ) ] = p .
By using similar geometric arguments, we can find the bit error-rates for other constellation diagrams.
Example: Find the BER for the MODEM with the following constellation diagram:
r2
r1
2
1
Let
p=Q ( 1σnd ) .
P ( no horizontal error )=1−q .
P ( no vertical error )=1− p .
P ( no error ) = P ( no horizontal error )P ( no vertical error )= (1−q ) (1− p ) .
q=Q ( 2σnd ) .
BER = 1
2P ( error )= 1
2[1− (1− q ) (1− p ) ] .
We can work with more complicated constellation diagrams in the same manner.
Example: Find the BER for the MODEM with the following constellation diagram:
d
10 2 3
The only error is horizontal.
The probability of error is different for each constellation point. If we transmit a 0, an error could be made if the (horizontal) noise is greater than d/2. If we transmit a 1, an error could be made if the (horizontal) noise is greater than d/2 or if the (horizontal) noise is less than -d/2.
p=Q ( d /2
σ nd) .
Let
P (error∣0 )≡P (e∣0 )= p .
P (error∣1)≡P (e∣1)=2p.
P (error∣2 )≡P (e∣2 )=2p.
P (error∣3 )≡P ( e∣3 )= p .
If each of the constellation points are equally-likely to be transmitted, then
P (error )=P ( e∣0)P (0 )+ P (e∣1)P (1 )+ P (e∣2)P ( 2)+ P (e∣3 )P (3)=q( 1
4)+ 2q ( 1
4)+ 2q ( 1
4)+ q( 1
4)
¿( 32)q .
BER = 12P (error )= 1
2 ( 32q )= 3
4q .
Finally, the BER is
Example: Find the BER for the MODEM with the following constellation diagram:
d
10 2 3
54 6 7
Here, we have horizontal and vertical errors.
p=Q ( d /2
σ nd) .
Let
P ( no horizontal error∣0)≡P ( nhe∣0 )=1− p .
P ( nhe∣4 )=1−p .
We also have
P ( nhe∣1 )=P ( nhe∣5)=1−2p .
P ( nhe∣2)=P ( nhe∣6 )=1−2p .
P ( nhe∣3 )=P (nhe∣7)=1−p .
Now, for vertical errors, we have
P ( nve∣0 )=P ( nve∣1)=⋯=1− p .
For no error, we must have no horizontal error and no vertical error:
P ( ne∣0 )= P ( nhe∣0 ) P ( nve∣0 )= (1− p )2 .
P ( ne∣1 )=P ( ne∣2 )=P ( ne∣5)=P ( ne∣7 )=(1− p )(1−2p ).
Similarly,
P ( ne∣0 )=P ( ne∣3 )=P ( ne∣4 )= P (ne∣7 )=(1− p )2 .
If all of the constellation points are equally-likely, then
P ( ne )= 18
[4 ( 1− p )2+ 4 ( 1− p )( 1− 2p ) ] .
Finally,
BER= 13P ( e )= 1
3 [1− 12(1− p )2− 1
2(1− p )(1−2p ) ] .
The reason for the factor of 1/3 is that an error (horizontal or vertical) results in only one out of three bits being in error if appropriately coded (exercise).
Exercise: Find the BER for the MODEM with the following constellation diagram:
10 2 3
54 6 7
98 10 11
1312 14 15