2P6 Communications
2P6 Communications
Ramji Venkataramanan
1 / 23
Course Information
                                                                         2 / 23
Topics
      • Signals and Channels
      • Analogue Modulation (AM, FM)
      • Digitisation of Analogue Signals (sampling recap and
        quantisation)
      • Digital Signals and Modulation
      • A brief introduction to Channel Coding
      • Multiple Access
   References:
              S. Haykin and M. Moher,
              Introduction to Analog & Digital Communications 2nd Ed.,
              John Wiley & Sons, 2007
              R. G. Gallager, Principles of Digital Communications,
              Cambridge University Press, 2008
                                                                             3 / 23
“Communications” teaching
                                                            4F5 Advanced
                                    2P6 Comms               Communications
                                                            and Coding
                                                 3F4 Data
                                                 Transmission
                                                                             4 / 23
A Brief History
   Analogue Communications
     • Telephone: patented in 1876
     • Radio: AM since early 1900s, FM patented in 1930s
     • BBC broadcast analogue TV from 1936-2012
   Digital Communications
     • Telegraph: first optical/semaphore 1767, electrical 1816
     • Mobile Communications: GSM (1991) ! 3G ! 4G LTE
     • Wi-Fi, first deployed in 1997, Bluetooth in ’98
     • Asymmetric Digital Subscriber Line (ADSL), up to 4Mbit/s,
       appeared early 2000
     • Digital Video Broadcasting (DVB), first broadcast ever in the
       UK, in 1998. Since 2012, all broadcast TV in the UK is digital
                                                                        5 / 23
Source Destination
                      input                 output
      Transmitter               Channel                Receiver
                     waveform              waveform
Source Transmitter
Broadcast Channel:
      Source
                                        Receiver     Destination
Receiver Destination
7 / 23
Source Destination
                    input                  output
   Transmitter               Channel                  Receiver
                  waveform                waveform
                                                                   8 / 23
Block Diagram Components
9 / 23
Let us define these terms and understand why they are relevant.
                                                                              10 / 23
Signal Energy
11 / 23
Signal Power
                                                                           12 / 23
Bandwidth
   The bandwidth of a signal is roughly the range of frequencies over
   which its spectrum (Fourier transform) is non-zero.
                                        |X(f )|
                                                               f
                             W                    W
     • For real signals, bandwidth measured as the range of positive
        frequencies as |X (f )| is symmetric around 0
        (as X ( f ) = X ⇤ (f ) for real x(t))
     • In communications, signal bandwidth typically specified in Hz
   A signal is called low-pass or baseband if its spectral content is
   centred around f = 0.
     • The bandwidth of the baseband signal above is W
     • E.g., audio signals are baseband with bandwidth ⇡ 20 kHz
        Voice signals in telephone systems have bandwidth ⇡ 4 kHz
                                                                                 13 / 23
Passband signals
   A signal is said to be passband if its spectral content is centred
   around ±fc , where fc     0
|X(f )|
                                                                             f
    fc   W   fc     fc + W                            fc   W   fc   fc + W
                                                                                 14 / 23
                                     x(t)
                                                   1
                        T                         T
                                                         t
                        2                         2
                                                         T         T
   rect(t/T ) is the rectangular pulse, which is 1 for   2   t   2,
   and 0 elsewhere. What is its bandwidth?
0 15 / 23
                                                                            16 / 23
  Thus, bandwidth is a measure of the extent of significant spectral
  content of the signal
  Bandwidth is a scarce resource, especially in mobile (cellular)
  communication:
     • Wireless bandwidth licensed and regulated by OFCOM
     • A company has to buy a slice of spectrum, say few tens of
       MHz around fc ⇡ 2 GHz, and restrict its transmitted signals
       to within the spectrum
     • Passband 4G spectrum of few tens of MHz auctioned for
       hundreds of millions of £ to telecom companies!
  Wired channels such as telephone lines and USB cables act like
  linear systems or filters:
     • Their transfer function is roughly flat over a band of
       frequencies [ W , W ] around 0, and then attenuates to 0 for
       higher frequencies.
     • Therefore, transmitted signals need to be bandlimited to W
Communication Channels
  What is a channel?
  The medium used to transmit the signal from transmitter to
  receiver.
    • Introduces attenuation and noise
    • So the received signal is a faded and noisy version of what the
      transmitter sent
    • Noise and attenuation can cause errors at the receiver
                                                                        18 / 23
Some Real-world Channels
Modelling a channel
                   KEY Q: How to model a channel ?
   Channels are often modelled as linear systems with additive noise:
   Channel output y (t) generated from input x(t) as
                         y (t) = h(t) ? x(t) + n(t)
   In frequency domain:
Y (f ) = H(f )X (f ) + N(f )
                                                                                                   f
                          W                                          W                                             20 / 23
Additive Noise Channel
   If the input is restricted to the band where the channel H(f ) is
   flat, then the channel is
Y (f ) = X (f ) + N(f )
   or
                             y (t) = x(t) + n(t)
   This is a very popular and useful model. What about n(t)?
21 / 23
n(t)
                                                                 23 / 23
                1B Paper 6: Communications
                    Handout 2: Analogue Modulation
Ramji Venkataramanan
1 / 32
Modulation
                                                                        2 / 32
Analogue vs. Digital Modulation
   Analogue Modulation: A continuous information signal x(t)
   (e.g., speech, audio) is used to directly modulate the carrier wave.
   We’ll study two kinds of analogue modulation:
    1. Amplitude Modulation (AM) : Information x(t) modulates the
        amplitude of the carrier wave
    2. Frequency Modulation (FM): Information x(t) modulates the
        frequency of the carrier wave
   We’ll learn about:
    – Power & bandwidth of AM & FM signals
    – Tx & Rx design
                                      maxt |x(t)|
                               mA =
                                         a0
      0.2
                x(t)                                                     0.4              [a0 + x(t)] cos 2⇡fc t
                                                                         0.3
    0.15
                                                                         0.2
      0.1
                                                                         0.1
    0.05
                                                                           0
       0
                                                                         -0.1
    -0.05
                                                                         -0.2
     -0.1
                                                                         -0.3
-0.15 -0.4
     -0.2                                                                -0.5
            0     20   40         60         80   100   120   140               0   20        40   60   80   100   120   140
0.25
    -0.05
                            BMB         ⇥⇥                              • x(t) cannot be detected by
                                  B ⇥
     -0.1
                                  phase reversals
     -0.2
    -0.25
            0     20   40         60         80   100   120   140
5 / 32
7 / 32
Spectrum of AM
Next, let’s look at the spectrum of sAM (t) = [a0 + x(t)] cos(2⇡fc t)
                                                                                       8 / 32
Example
                a0                                        1
   SAM (f ) =      [ (f          fc ) + (f + fc )] +        [X (f   fc ) + X (f + fc )]
                2                                         2
                                            X(f )
                                                     C
                                                                                f
                                     W     0         W
a0 /2 SAM (f ) a0 /2
C/2 C/2
fc W fc fc + W fc W fc fc + W
9 / 32
Properties of AM
BAM = 2W
                          LA            a   dt    Xt
                                                                                  11 / 32
                    IEEE
   Hence, with T = nTc , we have
                                                               ternary
       Z                                    Z
   1       T
                                    1 ⇣ Tc
          g (t) cos(4⇡fc t) dt ⇡                 g (0) cos(4⇡fc t) dt +
   T    0                          nT c       0
          Z 2Tc                                 Z nTc                               ⌘
       +       g (Tc ) cos(4⇡fc t) dt . . . +           g ((n 1)Tc ) cos(4⇡fc t) dt
               Tc                                (n 1)Tc
       = 0.
                    a02        PX
   Hence PAM =      2     +     2   .
                                                                                  12 / 32
Double Sideband Suppressed Carrier (DSB-SC)
   The power of AM signal is
                                          a02   PX
                               PAM     =      +
                                          2
                                         |{z}    2
                                            carrier
     • The presence of a0 makes envelope detection possible, but
                               a2
       requires extra power of 20 corresponding to the carrier
     • In DSB-SC, we eliminate the a0 :
       We transmit only the sidebands, and suppress the carrier
                                                    X(f )
                                                                                      f
                                 W              0            W
        fc   W   fc   fc + W                                     fc   W      fc   fc + W
                                                                                                   13 / 32
X(f )
                                                                                      f
                                 W              0            W
fc W fc fc + W fc W fc fc + W
                                                                                                   14 / 32
DSB-SC receiver
                                               ICE    as   att
                          cos(2⇡fc t)                      COSGIKE
            if
                                                                                 15 / 32
DSB-SC receiver
cos(2⇡fc t)
                                                                                 16 / 32
Properties of DSB-SC
17 / 32
                                                                           f
                               W              0           W
                                                                       Upper Sideband
                             Sssb   sc (f )
fc W fc fc fc + W
Information signal
                                                                                  f
                                        W   0           W
SAM (f )
AM
fc W fc fc + W fc W fc fc + W
Sdsb sc (f )
DSB-SC
fc W fc fc + W fc W fc fc + W
Sssb sc (f )
SSB-SC
                fc   W    fc                                              fc   fc + W
                                                                                        19 / 32
                                                                                        20 / 32
Frequency Modulation (FM)
  In FM, the information signal x(t) modulates the instantaneous
  frequency of the carrier wave.
  The instantaneous frequency f (t) is varied linearly with x(t):
f (t) = fc + kf x(t)
Example
     What information signal does this FM wave correspond to?
                   1
0.8
0.6
0.4
                  0.2
        sFM(t)
−0.2
−0.4
−0.6
−0.8
                  −1
                        0   1   2    3       4   5   6     7   8               9   10
                                                 t
                                         o
         (a) a constant, (b) a ramp, (c) a sinusoid, (d) no clue
                                                                                            22 / 32
FM Demodulation
   At the receiver, how do we recover x(t) from the FM wave?
   (ignoring e↵ects of noise)
                              ⇣               Z t        ⌘
              sFM (t) = Ac cos 2⇡fc t + 2⇡kf      x(u)du
                                                   0
   The derivative is
                                        ⇣                      Z       t            ⌘
     dsFM (t)
              =   2⇡Ac [fc + kf x(t)] sin 2⇡fc t + 2⇡kf                    x(u)du
        dt                                                         0
Properties of FM
                              ⇣                Z       t            ⌘
              sFM (t) = Ac cos 2⇡fc t + 2⇡kf               x(u)du
                                                   0
                                  2
     • Power of FM signal = A2c , regardless of x(t)
     • Non-linearity: FM(x1 (t) + x2 (t)) 6= FM(x1 (t)) + FM(x2 (t))
                                                                                        24 / 32
FM modulation of a tone
   Consider FM modulation of a tone x(t) = ax cos(2⇡fx t). We have
                       f (t) = fc + kf ax cos(2⇡fx t)
                                         k f ax
                       ✓(t) = 2⇡fc t +          sin(2⇡fx t)
                                           fx
                       1
                           R⇡
   where Jn ( ) =     2⇡    ⇡   e j(   sin u nu)   du
Jn (.) is called the nth order Bessel function of the first kind.
                                                                                    26 / 32
Plots of Jn ( ) vs
              1
                                                             J0
                                                             J1
                                                             J2
                                                             J3
       0.5
                                                             J4
      -0.5
                  0          5                    10               15
27 / 32
Example
   What is the spectrum of the FM signal when x(t) is a pure tone
   and the modulation index = 5 ?
                          Jn ( ) vs n for   =5
               0.4
0.3
0.2
               0.1
      Jn(β)
−0.1
−0.2
−0.3
              −0.4
                  0         5                    10           15
                                       n
                                                                        28 / 32
   The spectrum is
                     1
                 Ac X
      SFM (f ) =        Jn (5) [ (f     fc      nfx ) + (f + fc + nfx ) ]
                 2 n= 1
X(f)
-fx fx
|SFM(f)|
-fc fc
29 / 32
Bandwidth of FM signals
   To summarise, even for the case where x(t) has a single frequency
   fx , the spectrum of the FM wave is rather complicated:
       • There is a carrier component at fc , and components located
         symmetrically on either side of fc at fc ± fx , fc ± 2fx ,. . .
     • The absolute bandwidth is infinite, but . . . the side
       components at fc ± nfx become negligible for large enough n
  while
                        BAM = 2W = 30 kHz
  FM signals have larger bandwidth than AM, but have better
  robustness against noise.
31 / 32
                                                                   32 / 32
                  1B Paper 6: Communications
                Handout 3: Digitisation of Analogue Signals
Ramji Venkataramanan
1 / 17
                                                                          2 / 17
Digitisation of Analogue Signals
   Digitisation:
   The process by which an analogue signal is converted into digital
   format, i.e., from a continuous signal (in time and amplitude) to a
   discrete signal (in time and amplitude). It consists of
     • Sampling (discretises the time axis)
     • Quantisation (discretises the signal amplitude axis)
3 / 17
Why Digital ?
   There are many advantages of transmitting digital signals:
     • Robustness: In analogue communication systems, the e↵ect
       of channel noise, signal distortion etc. are cumulative.
       In contrast, regenerators can be used to recover and
       retransmit a digital signal exactly before it excessively
       degrades.
     • Performance: Powerful error-correcting codes can correct bit
       errors that may occur in the transmission of digital signals
     • Encryption: Digital communication systems can be made
       highly secure by exploiting powerful encryption algorithms
                                                                         4 / 17
End-to-end Digital Communication System
   Step 1: Digitisation: Sampling + Quantisation
             sampling                       quant.
    x(t)        !            x(nT )               !        . . . 0101110111000 . . . (bits)
Step 2:
                                input                                  output
           Transmitter                            Channel                                 Receiver
                             waveform                              waveform
   Channel noise can cause errors at the receiver. We’ll later see how
   to deal with this using coding.
5 / 17
Sampling
     • Let x(t) be a continuous-time signal for 1 < t < 1
     • Choose a sampling interval T , and read o↵ the values of x(t)
       at times
                    ...,        3T ,        2T ,          T , 0, T , 2T , 3T , . . .
     • The obtained values x(nT ) are the samples of x(t)
2.5
                                                                       x(t)
                        2
1.5
0.5
                        0
                         0    0.1    0.2    0.3     0.4    0.5   0.6          0.7   0.8   0.9   1
                                                            t
                                                                                                      6 / 17
Recovering x(t) from its samples
                              3
2.5
                                                                                  x(t)
                              2
1.5
0.5
                              0
                               0       0.1   0.2   0.3    0.4       0.5     0.6          0.7       0.8   0.9   1
                                                                     t
     • Can you recover x(t) from just the samples x(nT )?
                                                   1
     Yes, if the sampling rate                     T     > 2W , where W is the bandwidth
    of x(t) (in Hz)
            X                                                   Z    T /2
                           jn 2⇡ t               1                                                 j 2⇡n t          1
                    cn e      T        with cn =                                   (t) e              T      dt =
                n
                                                 T                       T /2                                       T
   Therefore                                                                                                    t       t
                                                    1
                                                1 X         j 2⇡n
                                       xs (t) =        x(t)e T t                                          settle             t
                                                T n= 1
   and
                                               1 X
                                                   1   ⇣                                  n⌘
                                     Xs (f ) =        X f
                                               T n= 1                                     T
                                                                                                                            8 / 17
                                               Anti-aliasing filter
                                                                          Xs (f )              t
                                                                                           f
                            2fs   fs   W           W   fs   W   fs    fs + W        2fs
                                       we   want                fs W            W
   X (f ) can be recovered from Xs (f ) using an “ideal reconstruction”
   or “anti-aliasing” filter
   Nyquist Rate
   Consider a signal x(t) with bandwidth W . Then, we can recover
   x(t) from its samples {x(nT )} provided that the sampling
   frequency fs = T1 satisfies fs > 2W
Uniform Quantisation
   The sampled signal can take continuous values. To convert it into
   digital, we: 1) Assign a discrete amplitude from a finite set of
   levels (with step ), and 2) Assign bits to those amplitudes
 1.05
                                                                                               closest
 0.75
                                                                                          level
 0 45
         signal amplitude
ni
0.15
0.45
0.75
    1 05
                                            time
                                                                                               10 / 17
What the quantised signal looks like
signal amplitude
time
eQ (z) = z Q(z)
                                                                              12 / 17
Quantisation Noise as a Random variable
                           eQ (z) = z           Q(z)
   We model eQ as a random variable uniformly distributed in
   [ 2 , 2 ]. Why?
     • If we quantise lots of samples and the step size is small, the
       set of samples quantised to a level Q will be approximately
       uniformly distributed in a length- interval centred around Q.
                                               pdf of eQ
                                                               1
                                                                        eQ
                                           0               2
                          2
15 / 17
Non-uniform quantisation
                                                                          16 / 17
Summary
                                                                      17 / 17
                 1B Paper 6: Communications
                 Handout 4: Digital Baseband Modulation
Ramji Venkataramanan
1 / 42
Data Transmission
   We have seen how analogue sources can be digitised. E.g., An
   MPEG or QuickTime file is a stream of bits
! . . . 10110010001101010 . . .
                           input                    output
         Transmitter                  Channel                   Receiver
                         waveform                waveform
                                                                               2 / 42
          110001                                            110001
   010110100                                                     010010110
                          input                output
         Modulator                  Channel              Demodulator
                         waveform             waveform
            Tx                                                 Rx
  The transmitter (Tx) does two things:
   1. Encoding: Adding redundancy to the source bits to protect
      against noise
   2. Modulation: Transforming the coded bits into waveforms.
  The receiver (Rx) does:
    • Demodulation: noisy output waveform ! output bits
    • Decoding: Try to correct errors in the output bits and recover
      the source bits
                                                                             3 / 42
Modulation/Demodulation
  We’ll first consider the modulation and demodulation blocks
  assuming that the channel encoder/decoder are fixed, and look at
  the design of the channel encoder and decoder later.
      (Encoded bits)
        10110100                                           10100110
                           x(t)               y (t)
        Modulator                     +                  Demodulator
n(t)
   The set of values the bits are mapped to is called the constellation,
   e.g., the 4-ary constellation above is { 3A, A, A, 3A}.
   Once we fix a constellation, a sequence of bits can be uniquely
   mapped to constellation symbols. E.g., with constellation { A, A}
0101110010 ! A, A, A, A, A, A, A, A, A, A
                                                                             6 / 42
Rate of Transmission                        P
   The modulated baseband signal is xb (t) = k Xk p(t       kT ).
   With the rect pulse shape
                          (                       ⇤
                             p1   for t 2   T T
                  p(t) =       T             2, 2
                             0        otherwise
                  T                                                t
                  2   T       2T      3T   4T
             p
           A/ T
                              1                    log2 M
   The transmission rate is   T    symbols/sec or 10541
                                                      T   bits/second
7 / 42
Hence the bandwidth of xb (t) is the same as that of the pulse p(t)
   We’ll see how this property makes signal detection at the Rx simple
    • This property is satisfied by the rect pulse shape
                             (                        ⇤
                                p1               T T
                                      for t 2 2 , 2
                      p(t) =      T
                                0         otherwise
9 / 42
p(t) P(f)
                                                                 It
                                                                 1
                 The sinc is perfectly band-limited to W =      2T
                                                           1
                     But decays slowly in time |p(t)| ⇠   |t|
                                                                            10 / 42
Next consider
       (      the rectangular pulse
                                ⇤
          p1    for t 2    T T
                             ,
p(t) =      T              2 2
          0         otherwise                                   sine HT
|P(f)|
11 / 42
P (f )
                      1              0                      1
                     2T                                    2T
                                    1                                      1
Bandwidth slightly larger than     2T ;    decay in time |p(t)| ⇠         |t|2
                          A happy compromise!
  • More on raised cosine pulses in 3F4
  • For intuition, it often helps to envision xb (t) with a rect pulse,
    though it is never used in practice
                                                                                 12 / 42
Reminder
13 / 42
PAM Demodulation
  Now, assume that we have picked a constellation and a pulse shape
  satisfying the objectives, and we transmit the baseband waveform
                                 X
                        xb (t) =    Xk p(t kT )
                                 k
xb (t) y (t)
n(t) noise
                                                                      t = mT
                                      Filter            r(t)
               y(t)                                                            r(mT )
                                   h(t) = p( t)
                                                                                             i
                                   1
                               Z 1
                             =       xb (⌧ )p(⌧ t)d⌧
                                   1
                               X Z 1
                             =      Xk P e KT   p x EkTde
                                              p(⌧       )p(⌧ t)d⌧
                                             k             1
                                                                                                 15 / 42
               X           Z   1
     r (t) =          Xk           p(⌧       kT )p(⌧           t)d⌧
                k              1
               X           Z   1
           =          Xk           p(u + t           kT )p(u) du         (using u = ⌧   t)
                k              1
               X
           =          Xk g (t       kT )
                k
   where                                 Z   1
                               g (t) =               p(u + t)p(u) du
                                                 1
   Matched filter output r (t) is of the form as the PAM signal, except
   that the ‘pulse’ is now g (t)
                                                                                                 16 / 42
Sampled matched filter output
                                                   t = mT
                             Filter      r(t)
             y(t)                                           r(mT )
                          h(t) = p( t)
                                                                                18 / 42
Example 1: Transmitted signal
                                                             (                                                        ⇤
                                                                 p1                    for t 2   T T
   Rectangular pulse: p(t) =                                       T                              2, 2
                                                                 0                         otherwise
   Assume T = 1 and the symbols {X0 , X1 , X2 , X3 } = {1, 1, 1, 1}
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
      -1             0         1           2         3           4          -1            0           1               2   3   4
                                    Time                                                                      Time
                                                                                                          P3
   Right panel shows the transmitted PAM signal                                                                 k=0 Xk p(t    kT )
   Left panel shows each component of the sum separately
                                                                                                                                     19 / 42
                                                     P
                       Matched filter output r (t) = 3k=0 Xk g (t kT )
                           Z 1                      (
                                                      1 + Tt ,   T  t  0,
                   g (t) =     p(u + t)p(u)du =
                             1                        1 Tt , 0  t  T
1 1
0.5 0.5
0 0
-0.5 -0.5
-1 -1
              -1         0          1          2         3           4            -1          0           1           2   3   4
                                        Time                                                                   Time
P (f )
                            1                0                 1
                           2T                                 2T
21 / 42
                                P3
  Transmitted PAM signal         k=0   Xk p(t        kT ):
                                     P3
  Matched filter output r (t) =        k=0   Xk g (t      kT ):
23 / 42
                                                                        24 / 42
Properties of the Noise
   Let us denote r (mT ), the sampled output at time mT , by Ym .
Y m = X m + Nm , m = 0, 1, 2, . . .
                     Y m = X m + Nm ,     m = 0, 1, 2, . . .
   Modelling n(t) as a Gaussian process leads to the following
   important characterisation of Nm :
     • For each m, Nm is a Gaussian random variable with zero
       mean, and variance 2 that can be estimated empirically
     • Further N1 , N2 , . . . are independent
     • Thus the sequence of random variables {Nm }, m = 0, 1, . . .
       are independent and identically distributed as N (0, 2 ).
   Detection
     • At the Rx, how do we detect the information symbol Xm from
       Ym for m = 0, 1, . . .?
     • Remember that each Xm belongs to the symbol constellation
                                                                                26 / 42
Detection for Binary PAM
   Let’s start with a simple binary constellation, then generalise.
   Consider a constellation where each Xm 2 { A, A}. This is called
   binary PAM or BPSK (‘Binary Phase Shift Keying’)
                                  Y =X +N
f (Y |X = A) f (Y |X = A)
                                                           Y
                              A             A
                                                                            Y
                                  A                         A
                          X̂ = arg max f (Y |X = x)
                                  x2{A, A}
       X̂ = arg max f (Y |X = x)
             x2{A, A}
                              1           (Y   x)2 /2   2
          = arg max p                 e                     =    arg min (Y     x)2
             x2{A, A}     2⇡      2                              x2{A, A}
Decision Regions
   The detection rule partitions the space of Y (the real line) into
   decision regions.
   For binary PAM, we just derived the following decision regions:
X̂ = A X̂ = A
                                                                            Y
                          A                       A
   We will calculate the probability of error shortly, but let’s first find
   the detection rule for general PAM constellations
                                                                                      30 / 42
Detection for General PAM Constellations
   The detection rule can easily be extended to a general
   constellation C
     • E.g., C may be the 3-ary constellation { 2A, 0, 2A} or a 4-ary
       constellation { 3A, A, A, 3A}
     • The maximum-likelihood principle is the same: “Choose the
       constellation symbol from which y is most likely to have
       occurred ”
         X̂ = arg max f (Y |X = x)
                x2 C
                           1                (Y    x)2 /2   2
           = arg max p                 e                       = arg min (Y   x)2
                x2 C      2⇡       2                               x2 C
   Thus, the detection rule for any PAM constellation boils down to:
      “Choose the constellation symbol closest to the output Y ”
                                                                                    31 / 42
            X̂ =   2A                                              X̂ = 2A
                                           X̂ = 0
                               A                       A                      Y
                   2A                         0                     2A
                                                                                    32 / 42
Probability of Detection Error
                                  Y =X +N
   Consider binary PAM with X 2 {A            A}. The decision regions are:
                 X̂ =   A                           X̂ = A
                                                               Y
                            A             A
                                                                                       34 / 42
   The probability of detection error is therefore
          Pe = 12 P(X̂ = A | X =        A) + 12 P(X̂ =             A | X = A)
             = 12 P(N > A) +        1
                                    2 P(N       <   A)
                                        ✓             ◆
             (b)              (c)           N       A
             = P(N > A) = P                     >
P (N < A) P (N > A)
A 0 A
The Q-function
   The error probability is usually expressed in terms of the
   Q-function, which is defined as:
                                 Z 1
                                              2
                        Q(x) =        p1 e u /2 du
                                        2⇡
                                    x
                   N (0, 1) pdf
                                                            Q(x)
0 x
                                                                                       36 / 42
Pe in terms of the signal-to-noise ratio
   The probability of detection error is therefore
                             ✓          ◆       ⇣   ⌘    r !
                               N      A           A       Es
      Pe = P(N > A) = P           >        =Q         =Q   2
         −2
        10
         −4
        10
         −6
        10
         −8
    e
        10
   P
         −10
        10
         −12
        10
         −14
        10
         −16
        10
             −2    0     2      4        6          8         10   12      14    16   18
                                             snr Eb/σ2 (dB)
   The probability of error for binary PAM decays rapidly as snr ":
                    2
     • Q(x) ⇡ e x /2 for large x > 0 ) Pe ⇡ e snr/2
39 / 42
   where
     • Es is the average symbol energy of the constellation.
     • Eb is the average energy per bit
   Intuition:
     • In each symbol period of length T , a symbol with average
        energy Es modulates a unit energy pulse
     • A rigorous calculation of power has to take into account the
        fact that the transmitted symbols X1 , X2 , . . . are drawn
        randomly from the constellation (done in 3F4)
                                                                         40 / 42
Pulse Amplitude Modulation - The Key Points
          10110100                                         10100100
                           xb (t)              y (t)
          Modulator                    +                 Demodulator
n(t)
Ramji Venkataramanan
1 / 22
x(t) y (t)
n(t)
                             cos(2⇡fc t)
                                                    X
           yb (t) = xb (t) + nb (t) =                      Xk p(t      kT ) + nb (t)
                                                     k
5 / 22
Detection
                                           Y m = X m + Nm
                         R
       where Nm =            nb (⌧ )p(⌧           mT ) d⌧ (see prev. handout for details)
                                                                                            6 / 22
Spectrum of up-converted PAM
   The transmitted waveform x(t) = xb (t) cos(2⇡fc t) has spectrum
                           1
                 X (f ) = [Xb (f fc ) + Xb (f + fc )]
                           2
   Note that                     X
                        xb (t) =   Xk p(t kT )
                                        k
   is a real signal since both the pulse p(t) and the symbols {Xk } are
   real-valued ) Xb ( f ) = Xb⇤ (f )
      • The spectrum X (f ) for f     0 determines X (f ) for f < 0
                                                      |Xb (f )|
                                                                                       f
                                        W         0           W
fc W fc fc + W fc W fc fc + W
   but now the constellation from which the symbols Xk are drawn is
   complex-valued (i.e., Xk are now two-dimensional)
   xb (t) is now complex, but the passband signal we transmit has to
   be real. It is generated as            Xb t In X 4 Is tat sin att
                       h                i
             x(t) = Re xb (t) e j2⇡fc t
                = Re(xb (t))cos(2⇡fc t)                      Im(xb (t))sin(2⇡fc t)
   This is called Quadrature Amplitude Modulation (QAM)
                                                                                                    8 / 22
Quadrature Amplitude Modulation
   The upconverted QAM waveform that we transmit is
           X
    x(t) =    p(t kT ) [Re(Xk ) cos(2⇡fc t) Im(Xk ) sin(2⇡fc t)]
                                                                             Kal
             k
             X                                                 I
         =       p(t     kT ) |Xk | cos(2⇡fc t +   k)
             k
    where |Xk | and k denote the magnitude and phase of the
   complex symbol Xk
   Thus, one can understand QAM in two ways:
    1. QAM has two carriers, the cosine carries Re(Xk ) and the sin
       carries the Im(Xk ).
    2. In QAM, the information symbol modulates both the
       amplitude and phase of the carrier; in up-converted PAM the
       information symbol is real and only modulates the amplitude
     • Pulse shape p(t) is the same as that for PAM
     • The main di↵erence between QAM and PAM is the
       constellation. In PAM, Im(Xk ) = 0.                                     9 / 22
                                     Re(Xk )                       Re(Xk )
             A                   A             A               A
BPSK QPSK
A A
8-PSK 16-QAM
                                                                                      Re(Xk )
          A                  A          A            A      A                    A
              Im(Xk )
      d
16-QAM
x(t) y (t)
n(t)
                                                                                                12 / 22
  At the receiver, we have
             X             ⇥                                                        ⇤
     y (t) =    p(t kT ) Xkr cos(2⇡fc t)                             Xki sin(2⇡fc t) + n(t)
              k
                              ki.sn                           ncdcnantay
  PCE
     KTEYIE            y(t)        ⇥       tfED            Low-pass
                                                        filter [ W, W ]
                                                                               y r (t)
    Cicely                      cos(2⇡fc t)
                                                if
 FI
                                                           Low-pass
                       y(t)        ⇥                    filter [ W, W ]
                                                                              y i (t)
e sin(2⇡fc t)
Demodulation
                                                                          t = mT
                   r                  Filter              r(t)
                  y (t)                                                                 Ymr
                                   h(t) = p( t)
                                                                          t = mT
                   i                  Filter              r(t)
                  y (t)                                                                 Ymi
                                   h(t) = p( t)
                                              Ymr = Xmr + Nm
                                                           r
                                              Ymi = Xmi + Nm
                                                           i
Y =X +N
                          p 1           (Y r x r )2 /2   2                i
                                                             p 1 e (Y x ) /2
                                                                            i 2    2
            f (Y |x) =           2
                                   e
                            2⇡                                 2⇡ 2
                            1          [(Y r x r )2 +(Y i    x i )2 ]/2 2
                      =   2⇡ 2
                                 e
15 / 22
                                                         X̂ = p1
                           p4                     p1
                                 A
                                                                       Re(Y )
p3 p2
                                                                                             16 / 22
                                X̂ = arg min |Y               x|2
                                             x2C
                                      p7
                       p6                       p8
                                                              X̂ = p1
                            A
                  p5                                                    Re(Y )
                                                     p1
                       p4                       p2
                                      p3
                                                              Im(Xk )
                  Im(Xk )                                 d
              d
                                      Re(Xk )                               Re(Xk )
          A                     A
                                                              16-QAM
                  8-PSK
                         x(t)           y (t)
      QAM Modulator               +             QAM Demodulator
                                 n(t)
   QAM is a technique to convert bits to a passband waveform:
    1. QAM constellations are complex in general
    2. Thus thePbaseband waveform is also complex
       xb (t) = k Xk p(t kT )
    3. We then up-convert and transmit a real passband waveform:
                 h                i
                          j2⇡fc t
       x(t) = Re xb (t) e
               X
             =    p(t kT ) [Re(Xk ) cos(2⇡fc t) Im(Xk ) sin(2⇡fc t)]
               k
                                                                       21 / 22
   At the receiver:
     • Down-convert using product modulator + low-pass filter
       (separately for the sine, cosine carriers)
     • Demodulate the baseband waveforms using matched filter
     • Detection rule: Pick the constellation symbol closest to the
       (complex) output symbol
   Properties of the QAM signal:
     • Rate = 1/T QAM symbols/s or logT2 M bits/s, where M is the
       constellation size
     • Passband bandwidth of QAM waveform = 2W , where W is
       the bandwidth of the (baseband) pulse p(t)
     • Note that up-converted PAM also has the same bandwidth
       2W .
Ramji Venkataramanan
1 / 17
010110100 010010110
                      input                  output
     Modulator                   Channel               Demodulator
                     waveform               waveform
    010110100                                                      010010110
                           input                 output
          Modulator                   Channel              Demodulator
                          waveform              waveform
                010110100                           010010110
                                   Binary Channel
                X =1                                   Y =1
                                      1   p
Channel Coding
                 010110100                     010010110
                                     BSC(p)
                (encoded bits)                (received bits)
                                                                          6 / 17
Repetition Code
                                    .9
                X =0                                Y =0
                              .1
                              .1
                X =1                                Y =1
                                    .9
   The simplest channel code for the BSC is a (n, 1) repetition code:
     • Encoding: Simply repeat each source bit n times (n is odd)
     • Decoding: By “majority vote”. Declare 0 if greater than n/2
       of the received bits are 0, otherwise decode 1
   Example: (3, 1) Repetition Code
              Source bits:    0     1     1     0     0...
            Encoded bits:     000   111 111 000       000 . . .
            Received bits:    001 101     111   011 000 . . .
            Decoded bits:     0     1     1     1     0...
                                                                         7 / 17
9 / 17
Block Codes
   We’ll look at Shannon’s result shortly, but let’s first try to improve
   on repetition codes using an idea known as block coding.
     • In a block code, every block of K source bits is represented by
        a sequence of N code bits (called the codeword)
     • To add redundancy, we need N > K
     • In a linear block code, the extra N        K code bits are linear
       functions of the K source bits
                  c5
                                                             c5 = 1
             s1         s2                                            0
                                                         0
                  s3                                            1
           c7                c6                     c7 = 0                c6 = 0
                   s4                                           1
                   s = . . . 1001
                             |{z} 0010
                                  |{z} 1111
                                       |{z} 1010
                                            |{z} 0000
                                                 |{z} . . .
   is divided into blocks of 4 bits; for each 4-bit block, the 7-bit
   Hamming codeword can be found using the parity circles
                                                                                   12 / 17
Error Correction for the Hamming Code
   The (7, 4) Hamming code can correct any single bit error (flip) in a
   codeword.
   Example: The codeword (0, 0, 1, 1, 1, 0, 0) (corresponding to source
   bits (0, 0, 1, 1)) is transmitted over the BSC. Suppose the channel
   flips the fourth bit so that the receiver gets r = (0, 0, 1, 0, 1, 0, 0).
r5 1
                      r1         r2                         0           0
                           r3                                   1
                 r7         r4        r6                0                   0
                                                                    0
   Fill r = (r1 , . . . , r7 ) into the parity circles. We see that the dashed
   circles have odd parity.
   Decoding Rule: If any circles have odd parity, flip exactly one bit
   to make all of them have even parity
                                                                                 13 / 17
                                           0        0
                                               1
                                      0                 0
                                               0⇤
   Flipping the starred bit would make all the circles have even parity
   We thus recover the transmitted codeword (0, 0, 1, 1, 1, 0, 0)
      • When the channel flips a single bit, there is at least one circle
        that becomes “dashed”
      • This shows that there is a bit error, which we can correct by
        flipping it back
   Shannon in 1948 . . .
    1. Showed that any communication channel has a capacity,
       which is the maximum rate at which the probability error can
       be made arbitrarily small.
    2. Also gave a formula to compute the channel capacity
                010110100                     010010110
                            Binary Channel
     • Once we fix a modulation scheme, we have a binary-input,
       binary-output channel
     • Channel coding is the act of adding redundancy to the source
       bits to protect against bit errors introduced by the channel
     • (N, K ) block code: K source bits ! N code bits; (N K )
       bits provide redundancy
     • The rate of a block code is K /N. We want the code rate to
       be high, but also correct a large number of errors
     • We studied two simple block codes (repetition, Hamming)
       and their encoding and decoding
                                                                        16 / 17
Course survey
http://to.eng.cam.ac.uk/teaching/surveys/IB_course.html
                                                             17 / 17
                  1B Paper 6: Communications
                Handout 7: Multiple Access, Course Summary
Ramji Venkataramanan
1 / 20
Single-User Communication
        (digitised source bits)
                110001                                          110001
3 / 20
Frequency
Tf
Time
5 / 20
Tu
Tf
                                                                                6 / 20
TDMA
                            Signature
                                                                     user K
                                                                                      Frequency
                                                   user 2
                                          user 1
                                                            Tu       Tf
Time
...
                                                                                                   f
                    fc,1          fc,2                             fc,K       1            fc,K
Bu
                                                                                                       8 / 20
  • Can think of each user i having using carrier fc,i to transmit
    their signal xi (t), for i = 1, . . . , K
                                                            K
                                                            X
                                        FDMA
                                    s          (t) =              xi (t) cos(2⇡fc,i t)
                                                            i=1
                     x1 (t)
       User 1
         . . .
                                                    . . .
                     xK (t)
       User K
cos(2⇡fc,K t)
Signature
                                                                                         Frequency
                                                                  user K
                  user 1
                           user 2
Tf
                                          Bu
                                           B
      Time
+1 +1
             0                                  t        0                                 t
                                           T                                           T
                                                         1
           +1                                           +1
                                           T                                           T
             0                                  t        0                                 t
1 1
CDMA waveform
     • Assume that user i wants to transmit a PAM signal
                                  X
                         xi (t) =    Xki p(t kT )
                                                    k
       with a rectangular pulse p(t)
     • The signals of the K users are multiplexed as
                                " K             #
                                 X
                   s CDMA (t) =     ci (t)xi (t) cos(2⇡fc t)
                                               i=1
     • Thus each user i transmits their baseband signal xi (t) using
       the entire bandwidth B over entire time frame of duration Tf
     • At the Rx, after down-converting (using product modulator +
       low-pass filter), we get
                                 K
                                 X
                         y (t) =   ci (t)xi (t) + noise
                                           i=1
                                                                                       Cellular
                                                          Server
                                       Router
                                                                  Router
                                            Server
              “Last Mile”
          copper/fibre/wireless                                             wireless
                                                fibre/satellite
     – The digital revolution of the last few decades has its roots in
       Shannon’s work.
       For more on this, watch the documentary film ‘The Bit
       Player’: https://thebitplayer.com
                                                                         16 / 20
Course Summary
   1. Power, Bandwidth (Baseband vs Passband) are important
      resources for communication
   2. Communication channels can be modelled as linear systems
      (filters) + noise. If we communicate over a frequency band
      where the channel frequency response is flat, then we get an
      additive noise channel.
   3. Analogue Communication: continuous-time information signal
      x(t) directly modulates the carrier
          • Variants of Amplitude Modulation: Power, bandwidth, receiver
            structures
          • FM: Constant power but requires larger bandwidth than AM;
            Carson’s rule for FM bandwidth; more robust to noise
   4. Digitisation: To convert an analogue source x(t) (e.g.,
      speech/music) to digital:
                 sampling                     quantisation
        x(t)        !         {x(nT )}n2Z          !           . . . 0100111 . . .
       Important tradeo↵ between number of quantiser levels and
       signal-to-quantisation noise ratio                                            17 / 20
   010110100                                                         010010110
                            input               output
         Modulator                  Channel                  Demodulator
                         waveform              waveform
19 / 20
20 / 20