Professional Documents
Culture Documents
what is
Eb/No?
2. Find the maximum free space range (distance) that can be covered for a wireless QPSK data link
with data rate 40 Kbits/sec, bit error rate
4
10
where the real constants 1
k
A = depending on whether a logic 1 or a logic 0 was sent.
In the figure above,
0 1 2 3 4 5 6 7
1, 1, 1, 1, 1, 1, 1, 1 A A A A A A A A = + = + = + = = = + = = +
When ( ) p t
is chosen to be a square pulse in the time domain as shown in the figure above, then the
spectrum ( ) P f is a sinc function that occupies significant bandwidth. When the sharp edges of a
square pulse ( ) p t are rounded or smoothed by a filter, then the bandwidth is reduced, but the pulse
extends beyond the time interval 0 t T < <
.
Ideally, we wish ( ) P f
to be strictly band-limited (to avoid interference with the adjacent channel in the frequency domain)
but without any inter-symbol interference (ISI) (to avoid interference with the adjacent symbol in the
time domain)
One solution is to use a pulse with a raised cosine (RC) spectrum ( ) P f that has a time domain pulse
2 2 2
( / ) ( /
( )
)
/ 1 4 /
sin t T cos t T
t T
p
T
t
t
t t|
t |
=
5
In the figure below, ( ) ( ) x t p t =
The parameter | is the excess bandwidth (i.e. the bandwidth in excess of the absolute possible
minimum bandwidth).
If the receiver filter is matched to the transmitter filter, then the overall raised cosine spectral
characteristic is split evenly between the transmitting filter and the receiving filter. In this case we
choose the pulse spectrum to be
( ) P f with time domain pulse shape
2 2
[ (1 ) / ] 4 ( / ) [ (1 ) / ]
( )
( / )[1 16 ( / ) ]
sin t T t T cos t T
t T t T
p t
t | | t |
t |
+
=
+
In a practical system, we use this square root raised cosine pulse shape instead of a square pulse.
3 Quadrature Phase Shift Keying (QPSK)
3.1 QPSK transmitter theory
Recall that we can send separate messages
1 2
( ), ( ) m t m t on the I and Q channels, i.e.
1 2
( ), ) ) ) ( ( ( t q t m m t i t = =
We can choose
1 2
an ( d ( ) ) m m t t to be separate digital messages or two parts of the same digital
message with the same kind of waveform as shown in section 2.1. above. When we use both the I
and Q channels, the modulation is called Quadrature Phase Shift Keying (QPSK).
6
To write an expression for QPSK, a digital message can be written as a complex envelope
0 1 2
( ) ( ) ( ) ( ) ( 2 ) .
k
k
s t p t kT C p t C p t T C C p t T = = + + +
where
( ) ( ) ( ) s t i t jq t = + is a complex message waveform,
k
j
k k k k
C a A jB e
|
= = + is the digital data,
where and cos sin
k k k k k k
a B a A | | = =
There are 4 possible values of
k
C depending on whether a logic 00, 01, 10 or 11 was sent.
The signal constellation for QPSK consists of the 4 points located at 1
k
C j =
In polar form
k
j
k k k k
C a A jB e
|
= = + , so that with 1 and 1
k k
B A = = ,
(2 1)
2 and
4
k k
a
n t
|
and
0 1 2
( ) ( ) ( ) ( ) ( 2 ) .
k
k
q t p t kT B p t B p B t T B p t T = = + + +
For QPSK, we choose 1 and 1
k k
B A = = , so that 1
k
C j = .
3.2. Transmiting QPSK in Matlab Simulink
3.2.1. Baseband QPSK signal
The complex signal ( ) ( )
k
k
s t p t T C k =
+ = where
1
F is the noise figure and
1
G is the
gain of the first stage of the USRP (the USRP dialog box adjusts the gain of the first stage only).
4.5 Review questions
1. Name the stages required in a practical communications link to compensate for frequency
offsets and delays that are not known in advance. Explain qualitatively how each stage works.
2. (optional) Reconcile the parameters of a stage with the robustness of that stage (i.e. the
frequency offset or delay at which the system breaks.
APPENDIX
A.1 Link budget formulas for terrestrial link (not in dB)
, 0
/
r o t t r
PGG P L =
2
0
4
L
d t
| |
=
|
\ .
, 0
( / )
r n
kT S P N WF =
0
b
E S R
N N W
=
,
,
1
r o
r n
P
M
P
= >
Link budget formulas in dB
19
, 0
0
, 0
0
0
, ,
32.4 20log ( ) 20log ( )
( / )
228.6
10log 290
20
0
4
r o t t r
r n
r o r n
P G G L
f GHz d m
k T S N W F
k
T
k T
L
P P M
P
P
=
= + +
= + + +
=
=
+ =
=
+ +
+
>
A.2 SIMULINK MODELS OF RECEIVER STAGES FOR
FREQUENCY COMPENSATION, TIMING RECOVERY AND FRAME SYNCHRONIZATION
Coarse frequency compensation
Find frequency offset using FFT
1
Out
-1
Gai n
In Freq Of f set
Fi nd Frequency
Offset
Ti me
Esti mated Frequency
Offset
Phase/
Frequency
Offset
In
Frq
Compensate
for Frequency Offset
1
In
20
Thi s subsystem does the fol l owi ng:
1. Creates a tone at M*Foffset, where M i s the modul ati on order of the si gnal
2. Fi nds the i ndex of the maxi mum ampl i tude across the frequency band
3. Converts the i ndex to the frequency offset accordi ng to
Foffset = IndexofMaxAmpl i tude * FrameSi ze / (FFTLength * M * FrameSampl eTi me)
1
Freq
Offset
W:0, Ts:[-1, 0]
Wel ch
Peri odogram
N
Tf
FFTSig
FreqOf f set
fi ndfreqoffset
Fi nd Frequency
Offset
u
v
u^v
Compl ex Power
-C-
Al phabet
si ze
1
In
21
Fine frequency compensation
Timing recovery
To determi ne the phase error detector gai n K
p
, See Equati on 7.30 of "Di gi tal
Communi cati ons - A Di screte-Ti me Approach" by Mi chael Ri ce.
Baseband i mpl ementati on of the QPSK Phase PLL l i sted i n Fi gure 7.2.4 of
"Di gi tal Communi cati ons - A Di screte-Ti me Approach" by Mi chael Ri ce. See
Appendi x C.2 of the same book for the detai l s of PLL desi gn.
1
Out
Unbuffer
I
n
e
PED
PED
e
u
Loop Fi l ter
-1j
Gai n
Esti mated Phase
Di fference
z
-1
DDS
In
Ph
Compl ex
Phase Shi ft
1
In
Baseband i mpl ementati on of the Symbol Ti mi ng Synchroni zati on l i sted i n Chapter 8.4
of "Di gi tal Communi cati ons- A Di screte-Ti me Approach" by Mi chael Ri ce. See
Appendi x C.2 of the same book for the detai l s of PLL desi gn.
MATLAB Impl ementati on
of Scal ar-based Ti mi ng Recovery
2
DataVal i d
1
Out
strobe
Ti mi ng Recovery
PLL
In
DataOut
Cl k
Number of
Val i d Sampl es
Data
Clk
DataOut
DataValid
Modi fi ed Buffer
[strobe]
Goto
[strobe]
From
In Out
Enabl ed Wi re
Clk numValid
numVal i dCal c
Cal cul ate Number of
Val i d Sampl es
Buffer
After Ti mi ng Recovery
1
In
22
Timing recovery PLL
Data decoding
Sampl e-based processi ng i s adopted because
1. Strobe si gnal i s requi red to generate for EVERY sampl e for processi ng and output
sampl i ng, del ayed strobe si gnal woul d affect the accuracy of bi t stri ppi ng/stuffi ng
2. The BER performance degrades si gni fi cantl y even wi th frame si ze 2 and 4
Baseband i mpl ementati on of the Symbol Ti mi ng Synchroni zati on l i sted i n Chapter 8.4
of "Di gi tal Communi cati ons- A Di screte-Ti me Approach" by Mi chael Ri ce. See Appendi x
C.2 of the same book for the detai l s of PLL desi gn.
To determi ne phase error detector gai n K
p
, See Equati on 8.42 &
Fi gure 8.4.7 of "Di gi tal Communi cati ons - A Di screte-Ti me Approach"
by Mi chael Ri ce.
2
Cl kOut
1
DataOut
In
strobe
e
TED
Ti mi ng Error
Detector
Ti me
Normal i zed
Ti mi ng Error
Delta
Underf low
mu
NCO_ctrl
NCO Control
Loop Fi l ter
In
mu
Out
i nterp_fi l ter
Interpol ati on Fi l ter
Z
-1
Integer Del ay2
Z
-1
Integer Del ay1
1
DataIn
Buffer one frame data i n case that conti guous
data scatter across two adj acent frames
Thi s subsystem cal cul ates the del ay of the channel , al i gn the data wi th
the detected frame head, resol ves the possi bl e phase ambi gui ty i ssue
duri ng the fi ne frequency compensati on and demodul ates the data.
Rx si gnal i s del ayed by (RxBufferedFrames+1) frames.
The val ue 1 comes from one frame buffered at Data
Bufferi ng subsystem wi th i n the current subsystem
1
BER
recei ved
Si gnal To
Workspace
BarkerRef
Data
Phase
Phase Offset
Esti mator
Phase
Data
Out
Phase Ambi gui ty
Correcti on
& Demodul ati on
Error Rate
Cal cul ati on
Tx
Rx
Descrambl i ng
Z
-1
Del ay1
Z
-1
Del ay
Barker Ref erence
Data
Delay
Compute
Del ay
Buffer
Bi ts Generati on
Barker Code
Symbol Generati on
Delay
RxData
Data
al i gndata
Al i gn Data
Tri gger
1
In
23
Phase ambiguity resolution
1. Find the maximum free space range (distance) that can be covered for a wireless QPSK data link
with data rate 40 Kbits/sec, bit error rate
4
10