wireline and wireless links at low data rates. Simple receivers with low error .... Data Communications, McGraw-Hill, 19
Continuous-Phase Frequency Shift Keying (FSK) Contents Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide
FSK-1 FSK-2 FSK-3 FSK-4 FSK-5 FSK-6 FSK-7 FSK-7 FSK-8 FSK-9 FSK-10 FSK-11 FSK-12 FSK-13 FSK-14 FSK-17 FSK-18 FSK-19 FSK-20 FSK-21
Introduction The FSK Transmitter The FSK Transmitter (cont. 1) The FSK Transmitter (cont. 2) The FSK Transmitter (cont. 3) The FSK Transmitter (cont. 4) The FSK Transmitter (cont. 5) Discrete-Time Implementation Transmitter Implementation (cont.) Switched Oscillator FSK FSK Power Spectral Density FSK Power Spectrum (cont. 1) FSK Power Spectrum (cont. 2) FSK Power Spectrum (cont. 3) Spectrum with Rectangular Pulses Specific Examples of FSK Spectra Spectra for M = 2 Spectra for M = 4 FSK Demodulation The Frequency Discriminator
Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide Slide
FSK-22 FSK-24 FSK-25 FSK-27 FSK-28 FSK-30 FSK-31 FSK-32 FSK-33 FSK-34 FSK-35 FSK-36 FSK-37 FSK-38 FSK-39 FSK-40 FSK-42 FSK-43 FSK-44
Discriminator Block Diagram Example of Discriminator Output An Approximate Discriminator Symbol Clock Tracking Symbol Clock Tracking The Phase-Locked Loop The Phase-Locked Loop (cont. 1) The Phase-Locked Loop (cont. 2) The Phase-Locked Loop (cont. 3) The Phase-Locked Loop (cont. 4) The Phase-Locked Loop (cont. 5) Example of PLL Output Detection by Tone Filters Detection by Tone Filters (cont. 1) Computing Ik (N ) by Integration Computing Ik (N ) by Filters Discrete-Time Tone Filters Filter Implementation (cont. 1) Discrete-Time Filter Frequency Response Slide FSK-45 Block Diagram of Receiver Using Tone Filters Slide FSK-46 Efficient Computation with FIR Tone Filters Slide FSK-47 Block Diagram of Receiver Using Tone Filters
Slide FSK-48 Recursive Implementation of the Tone Filters Slide FSK-49 Recursive Implementation (cont. 1) Slide FSK-50 Computation for the Recursive Implementation Slide FSK-51 Simplification for Binary FSK Slide FSK-52 Simplification for Binary FSK (cont.) Slide FSK-52 Generating a Clock Timing Signal Slide FSK-53 Generating a Clock Signal (cont. 1) Slide FSK-54 Adding a Bandpass Filter to the Clock Tracker Slide FSK-55 Adding a Bandpass Filter to the Clock Tracker (cont. 1) Slide FSK-56 Adding a Bandpass Filter to the Clock Tracker (cont. 2) Slide FSK-57 Detecting the Presence of FSK Slide FSK-58 M = 4 Example of Tone Filters Slide FSK-59 Segment of FSK Signal Slide FSK-60 3400 Hz Filter Output Envelope Slide FSK-61 M = 4 Example (cont.) Slide FSK-62 Preliminary Clock Tracking Signal Slide FSK-63 Bandpass Filtered Clock Signal Slide FSK-64 Superimposed Preliminary and Bandpass Filtered Clock Signals Slide FSK-65 Error Probabilities for FSK Slide FSK-66 Orthogonal Signal Sets
Slide FSK-67 Slide FSK-68 Slide FSK-69 Slide FSK-70 Slide FSK-71 Slide FSK-71 Slide FSK-72 Slide FSK-72 Slide FSK-74 Slide FSK-75 Slide FSK-76 Slide FSK-81 Slide FSK-83 Slide FSK-84 Slide FSK-84 Slide FSK-86
Orthogonal Signal Sets (cont. 1) Orthogonal Signal Sets (cont. 2) Orthogonal Signal Sets (cont. 3) Orthogonal Signal Sets (cont. 4) Experiments for FSK EXP 1. Theoretical Spectra EXP 2. Making a Transmitter EXP 2.1 Handshaking Sequence EXP 2.2 Simulating Customer Data EXP 2.3 Measuring the FSK Power Spectra EXP 3. Making a Receiver Using an Exact Frequency Discriminator EXP 4. Bit-Error Rate Test EXP 5. Making a Receiver Using an Approximate Discriminator EXP 6. Making a Receiver Using a Phase-Locked Loop EXP 7.1 M = 4 Tone Filter Receiver EXP 7.2 Simplified M = 2 Tone Filter Receiver
'
Continuous-Phase Frequency Shift Keying (FSK)
$
Continuous-phase frequency shift keying (FSK) is often used to transmit digital data reliably over wireline and wireless links at low data rates. Simple receivers with low error probability can be built. Binary FSK is used in most applications, often to send important control information. • Early voice-band telephone line modems used binary FSK to transmit data at 300 bits per second or less and were acoustically coupled to the telephone handset. Teletype machines used these modems. • Some HF radio systems use FSK to transmit digital data at low data rates. • The 3GPP Cellular Text Telephone Modem (CTM) for use by the hearing impaired over regular cellular speech channels uses four level FSK. & FSK-1
%
' Binary Data R bits/sec
$
The FSK Transmitter -
Serial to Parallel Converter
K ..
-
.. .. ..
m(t) D/A
fb = R/K symbols/sec (baud rate)
FM -
M = 2K Levels
Modulator
s(t) -
Carrier fc
At the FSK transmitter input, bits from a binary data source with a bit-rate of R bits per second are grouped into successive blocks of K bits by the “Serial to Parallel Converter.” These block occur at the rate of fb = R/K symbols per second which is called the baud rate. Each block is used to select one of M = 2K radian frequencies from the set Λk
=
ωc + ωd [2k − (M − 1)]
=
2π{fc + fd [2k − (M − 1)]} for k = 0, 1, . . . , M − 1
The frequency ωc = 2πfc is called the carrier frequency.
&
FSK-2
(1)
%
$
'
The FSK Transmitter (cont. 1)
The radian frequencies Ωk
=
ωd [2k − (M − 1)] = 2πfd [2k − (M − 1)] for k = 0, 1, . . . , M − 1
(2)
are the possible frequency deviations from the carrier frequency during each symbol. • The deviations range from −ωd (M − 1) to ωd (M − 1) in steps of ∆ω = 2ωd . • Each selected frequency is sent for Tb = 1/fb seconds. The sinusoid transmitted during a block is called the FSK symbol specified by the block. During the symbol period nTb ≤ t < (n + 1)Tb the “D/A” box uniquely maps each possible input block to a possible frequency deviation Ω(n) = ωd [2kn − (M − 1)]
(3)
where kn is the decimal value of the binary input block.
&
FSK-3
%
'
The FSK Transmitter (cont. 2)
$
The “D/A” block then forms the signal Ω(n)p(t − nTb ) where p(t) is the unit height pulse of duration Tb defined as 1 for 0 ≤ t < Tb (4) p(t) = 0 elsewhere
Assuming transmission starts at t = 0, the complete “D/A” converter output is the staircase signal ∞ X Ω(n)p(t − nTb ) (5) m(t) = n=0
This baseband signal is applied to an FM modulator with carrier frequency ωc and frequency sensitivity kω = 1 to generate the FSK signal Z t s(t) = Ac cos ωc t + (6) m(τ ) dτ + φ0 0
where Ac is a positive constant and φ0 is a random initial phase angle of the modulator. & FSK-4
%
$
'
The FSK Transmitter (cont. 3) The pre-envelope of s(t) is s+ (t) = Ac e
jωc t j
e
Rt
m(τ ) dτ jφ0
e
(7)
m(τ ) dτ jφ0
(8)
0
and the complex envelope is x(t) = Ac e
j
Rt 0
e
The phase contributed by the baseband message is Z t Z tX ∞ Ω(n)p(τ − nTb ) dτ θm (t) = m(τ ) dτ = 0
=
∞ X
n=0
0 n=0
Ω(n)
Z
t
p(τ − nTb ) dτ
(9)
0
Now consider the case when iTb ≤ t < (i + 1)Tb . Then Z t i−1 X Ω(n)Tb + Ω(i) θm (t) = dτ iTb
n=0
&
FSK-5
%
'
The FSK Transmitter (cont. 4)
θm (t)
=
Tb ωd
i−1 X
$
[2kn − (M − 1)] +
n=0
=
(t − iTb ) Tb ωd [2ki − (M − 1)] Tb i−1 2ωd X π [2kn − (M − 1)] + ωb n=0 π
2ωd (t − iTb ) [2ki − (M − 1)] (10) ωb Tb
• The modulation index for an FSK signal is defined to be h=
2ωd ∆ω ∆f = = ωb ωb fb
(11)
The phase at the start of the ith symbol is θm (iTb ) = πh
i−1 X
[2kn − (M − 1)]
(12)
n=0
&
FSK-6
%
'
The FSK Transmitter (cont. 5)
$
Therefore, θm (t)
=
θm (iTb ) + πh [2ki − (M − 1)] for iTb ≤ t < (i + 1)Tb
(t − iTb ) Tb (13)
The phase function θm (t) is continuous and consists of straight line segments whose slopes are proportional to the phase deviations.
Discrete-Time Transmitter Implementation The FSK signal sample at time nT is ! Z nT s(nT ) = cos ωc nT + (14) m(τ ) dτ + φ0 0
The angle at time nT is Z θ(nT ) = ωc nT +
nT
m(τ ) dτ + φ0
(15)
0
&
FSK-7
%
'
Transmitter Implementation (cont.)
$
and the angle one sample in the future is θ((n + 1)T )
=
(n+1)T Z
m(τ ) dτ + φ0
ωc (n + 1)T +
0
=
ωc nT + + ωc T +
ZnT 0
m(τ ) dτ + φ0
(n+1)T Z
m(τ ) dτ
nT
=
θ(nT ) + ωc T + T m(nT )
(16)
=
θ(nT ) + T Λ(nT )
(17)
where Λ(nT ) = ωc + m(nT ) is the total tone frequency at time nT . The M possible values for T Λ(nT ) can be pre-computed. Thus, the new phase angle can be computed recursively. In your transmitter program, make sure that |θ(nT )| does not get large.
&
FSK-8
%
$
'
Switched Oscillator FSK Another approach to FSk would be to switch between independent tone oscillators. This switched oscillator approach could cause discontinuities in the phase function depending on the tone frequencies and symbol rate. The discontinuities would cause the resulting FSK signal to have a wider bandwidth than continuous phase FSK. It could also cause problems for a PLL demodulator.
&
FSK-9
%
'
Power Spectral Density for FSK
$
The term “power spectrum” will be used for “power spectral density” from here on for simplicity. Lucky, Salz, and Weldon1 present the solution for a slightly more generalized form of FSK than described above. Let the pulse p(t) to have an arbitrary shape but still be confined to be zero outside the interval [0, Tb ). The power spectrum, Sxx (ω), of a random process x(t) can be defined as: o 1 n 2 (18) Sxx (ω) = lim E |Xλ (ω)| λ→∞ λ where E{ } denotes statistical expectation and Z λ Xλ (ω) = x(t)e−jωt dt (19) 0
1 R.W.
Lucky, J. Salz, and E.J. Weldon, Principles of Data Communications, McGraw-Hill, 1968, pp. 203–207 and 242–245.
&
FSK-10
%
'
Power Spectral Density for FSK (cont. 1)
$
Only formulas for the power spectrum of the complex envelope will be presented here since the power spectrum for the complete FSK signal can be easily computed as 1 1 Sss (ω) = Sxx (ω − ωc ) + Sxx (−ω − ωc ) (20) 4 4 • The frequency deviation in the complex envelope during the interval [nTb , (n + 1)Tb ) is sn (t − nTb ) = Ω(n)p(t − nTb )
(21)
• The phase change caused by this frequency deviation during the baud when time is taken relative to the start of the baud is Z t bn (t) = Ω(n) p(τ ) dτ for 0 ≤ t < Tb (22) 0
• The total phase change over a baud is Z Tb Bn = bn (Tb ) = Ω(n) p(τ ) dτ
&
0
FSK-11
(23)
%
'
Power Spectral Density for FSK (cont. 2)
$
• The Fourier transform of a typical modulated pulse is Z Tb Fn (ω) = ejbn (t) e−jωt dt (24) 0
It is convenient to define the following functions: 1. The characteristic function of bn (t) o n C(α; t) = E ejαbn (t)
(25)
2. The average transform of a modulated pulse F (ω) = E {Fn (ω)}
(26)
3. n
G(ω) = E Fn (ω)ejBn
o
(27)
4. The average squared magnitude of a pulse transform 2 (28) P (ω) = E |Fn (ω)|
&
FSK-12
%
$
'
Power Spectral Density for FSK (cont. 3) 5.
1 arg C(1; Tb ) (29) Tb In terms of these quantities, the power spectrum is P (ω) + 2ℜe [F (ω)G(ω)× i −jωTb e ; | C(1; Tb )| < 1 1−C(1;Tb )e−jωTb Tb 2 S (ω) = P (ω) − |F (ω)| + ωb × xx 2 Ac ∞ X 2 |F (γ + nω )| δ (ω − γ − nωb ) b n=−∞ for C(1; T ) = ejγTb (30) Notice that the spectrum has discrete spectral lines as well as a distributed part when the characteristic function has unity magnitude. γ=
&
FSK-13
%
$
'
Spectrum for Rectangular Frequency Pulses The power spectrum for the case where p(t) is the rectangular pulse given by (4) and the frequency deviations are equally likely reduces to 2 F (ω) P (ω) + 2ℜe 1 − C(1; Tb )e−jωTb 2ωd for h = not and integer ωb Tb Sxx (ω) = 2 2 P (ω) − |F (ω)| + ωb × Ac ∞ X 2 |F (γ + nω )| δ (ω − γ − nωb ) b n=−∞ for h = an integer k (31) where 0 for k even γ= (32) ωb /2 for k odd
&
FSK-14
%
'
Spectrum for Rectangular Frequency Pulses (cont. 1)
$
(ω − Ωk )Tb 2 e−j(ω−Ωk )Tb /2 (33) (ω − Ωk )Tb 2
sin Fn (ω) = Tb
2 (ω − Ωk )Tb M −1 Tb2 X sin 2 P (ω) = (ω − Ωk )Tb M k=0 2
Tb F (ω) = M
M −1 X k=0
(34)
(ω − Ωk )Tb 2 e−j(ω−Ωk )Tb /2 (ω − Ωk )Tb 2 (35)
sin
and M/2
sin(M πh) 2 X cos[ωd Tb (2k − 1)] = C(1; Tb ) = M M sin(πh) k=1
&
(36)
FSK-15
%
'
Properties of the Spectrum for Rectangular Frequency Pulses
$
• Fn (ω) has its peak magnitude at the tone frequency Ωn = ωd [2n − (M − 1)] and zeros at multiples of the symbol rate, ωb , away from the tone frequency. This is exactly what would be expected for a burst of duration Tb of a sinusoid at the tone frequency. • The term P (ω) is what would result for the switched oscillator case when the phases of the oscillators are independent random variables uniformly distributed over [0, 2π). • The remaining terms account for the continuous phase property and give a narrower spectrum than if the the phase were discontinuous. • The power spectrum has impulses at the M tone frequencies when h is an integer. However, the impulses at other frequencies disappear because they are multiplied by the nulls of F (γ + nωb ).
&
FSK-16
%
$
'
Specific Examples of FSK Spectra Examples of the power spectral densities for binary continuous phase and switched oscillator FSK are shown in Figure 1 for h = 0.5, 0.63, 1 and 1.5. The spectra become more peaked near the origin for smaller values of h. They become more and more peaked near −ωd and ωd as h approaches 1 and include impulses at these frequencies when h = 1. Bell Labs designed its Bell 103 binary FSK modem, released in 1962, with h = 2/3 to avoid impulses in the spectrum that could cause cross talk in the cables. The spectra for M = 4 continuous phase and switched oscillator FSK are shown in Figure 2 for h = 0.5, 0.63, 0.9, and 1.5. The CTM with M = 4 uses a symbol rate of 200 baud with a tone separation of 200 Hz and, thus, has the modulation index h = 1. &
FSK-17
%
$
' 1.4
1.8
Cont. Phase Switched Osc.
Cont. Phase Switched Osc. 1.6
1.2
1.4
1
0.8
1
S(ω)
S(ω)
1.2
0.8
0.6
0.6
0.4 0.4
0.2
0.2 0 −2
−1.5
−1
−0.5
0
0.5
1
1.5
0 −2
2
−1.5
−1
−0.5
0
0.5
1
1.5
2
Normalized Frequency (ω − ω ) / ω , h = 0.63
Normalized Frequency (ω − ωc) / ωb, h = 0.5
c
(a) M = 2, h = 0.5
b
(b) M = 2, h = 0.63 1.4 Cont. Phase Switched Osc.
Cont. Phase Switched Osc.
1.2
0.5
1 0.4
S(ω)
S(ω)
0.8 0.3
0.6 0.2
0.4 0.1
0 −2
0.2
−1.5
−1
−0.5
0
0.5
1
1.5
2
0 −2
−1.5
−1
−0.5
0
0.5
1
1.5
2
Normalized Frequency (ω − ω ) / ω , h = 1.5
Normalized Frequency (ω − ωc) / ωb, h = 1.0
c
(c) M = 2, h = 1
b
(d) M = 2, h = 1.5
Figure 1: Normalized Power Spectral Densities Tb Sxx (ω)/A2c for Continuous Phase and Switched Oscillator Binary FSK for Several Values of h &
FSK-18
%
$
' 0.7
0.5
Cont. Phase Switched Osc.
Cont. Phase Switched Osc.
0.45
0.6
0.4
0.5
0.35 0.3
S(ω)
S(ω)
0.4
0.25
0.3 0.2 0.15
0.2
0.1
0.1 0.05
0 −4
−3
−2
−1
0
1
2
3
0 −4
4
−3
Normalized Frequency (ω − ωc) / ωb, h = 0.5
−2
−1
0
1
2
3
4
Normalized Frequency (ω − ω ) / ω , h = 0.63 c
(a) M = 4, h = 0.5
b
(b) M = 4, h = 0.63
0.7
0.4
Cont. Phase Switched Osc.
Cont. Phase Switched Osc.
0.6
0.35
0.3
0.5
0.25
S(ω)
S(ω)
0.4 0.2
0.3 0.15
0.2 0.1
0.1
0 −4
0.05
−3
−2
−1
0
1
2
3
4
0 −4
Normalized Frequency (ω − ωc) / ωb, h = 0.9
−3
−2
−1
0
1
2
3
4
Normalized Frequency (ω − ω ) / ω , h = 1.5 c
(c) M = 4, h = 0.9
b
(d) M = 4, h = 1.5
Figure 2: Normalized Power Spectral Densities Tb Sxx (ω)/A2c for Continuous Phase and Switched Oscillator M = 4 FSK for Several Values of h &
FSK-19
%
'
FSK Demodulation
$
Continuous phase FSK signals can be demodulated using a variety of methods including: 1. A frequency discriminator. A frequency discriminator works well when signal-to-noise ratio (SNR) is high but performs poorly when the SNR is low. 2. A phase-locked loop. A phase-locked loop performs better at lower SNR but is not good when the FSK signal is present for short time intervals because a narrow-band loop takes a long time to acquire lock. 3. Tone filters with envelope detectors. Tone filters with envelope detection is theoretically the optimum noncoherent detection method when the FSK signal is corrupted by additive white Gaussian noise in terms of minimizing the symbol error probability. & FSK-20
%
$
'
The Frequency Discriminator The complex envelope of the FM signal is x(t)
−jωc t
=
s+ (t)e
= Ac e
=
sI (t) + j sQ (t)
j
Rt 0
m(τ ) dτ jφ0
e
(37)
The angle of the complex envelope is Z t m(τ ) dτ + φ0 ϕ(t) ˜ = arctan[sQ (t)/sI (t)] = 0
(38)
and the derivative of this angle is d d sI (t) sQ (t) − sQ (t) sI (t) d dt dt ϕ(t) ˜ = = m(t) 2 2 dt sI (t) + sQ (t) (39) which is the desired message signal. A block diagram for implementing this discriminator is shown in Figure 3. &
FSK-21
%
'
Figure 3: Discrete-Time Frequency Discriminator Realization Using the Complex Envelope sI (n−K −L)
$
- ×l
s˙ Q (n−K −L) - z −L A A e−jωc nT 2L + 1 Tap Differentiator C + C ?? C - × C C C − C C 2L + 1 Tap Differentiator C sˆ(n − K) C A A C C C - z −L - z −L C sQ (n − K) s˙ I (n−K −L) C WC - ×l sQ (n−K −L) sI (n − K) - z −L
s(n − K) s(n)
- z −K
- z −K
A A 2K +1 Tap Hilbert Transform
|x(n−K −L)|−2 ? ? md (n) - ×l +l 6
• First the pre-envelope is formed and demodulated to get the complex envelope whose real part is the inphase (I) component and imaginary part is the quadrature (Q) component. • The frequency response of the differentiators must approximate jω from ω = 0 out to the cut-off frequency for the I and Q components which will be somewhat greater than the maximum frequency deviation ωd (M − 1). & FSK-22
%
$
'
Discriminator Implementation (cont.) • The differentiator amplitude response should fall to a small value beyond the cut-off frequency because differentiation emphasizes high frequency noise which can cause a significant performance degradation. • Notice how the delays through the FIR Hilbert transform filter and differentiation filters are matched by taking signals out of the center taps. An example of the discriminator output is shown in Figure 4 when fc = 4000 Hz, fd = 200 Hz, and fb = 400 Hz, so the modulation index is h = 1. The tone frequency deviations alternate between 200 and −200 Hz for eight symbols followed by two symbols with −200 Hz deviation. &
FSK-23
%
$
'
250
200
Discriminator Output in Hz
150
100
50
0
−50
−100
−150
−200
−250 15
16
17
18
19
20
21
22
23
24
25
Normalized time t / T
b
Figure 4: Discriminator Output for h = 1
&
FSK-24
%
'
A Simple Approximate Frequency Discriminator
$
A simpler approximate discriminator will be derived in this subsection. Let 1/T = fs be the sampling rate. Usually there will be multiple samples per symbol so T