Return to Video

9.2 - Controlling the bandwidth

  • 0:01 - 0:04
    Hi, and welcome to module 9.2 of digital
    signal processing.
  • 0:04 - 0:08
    We are talking about digital
    communication systems, and in this
  • 0:08 - 0:13
    module, we will talk about how to fulfil
    the bandwidth constraint.
  • 0:13 - 0:16
    The way that we're going to do this is by
    introducing an operation called
  • 0:16 - 0:20
    upsampling.
    And we will see how upsampling will allow
  • 0:20 - 0:24
    us to fit the spectrum generated by the
    transmitter onto the band allowed for by
  • 0:24 - 0:28
    the channel.
    Remember that our assumption is that the
  • 0:28 - 0:31
    signal generated by the transmitter is a
    wide sequence.
  • 0:31 - 0:35
    And therefore, it's spiral spectral
    density will be full band.
  • 0:35 - 0:39
    What we need to do is to shrink the
    support of it's spiral spectral density
  • 0:39 - 0:42
    so that it fits on the band allowed by
    the channel.
  • 0:42 - 0:45
    The way we do this is by using multirate
    techniques.
  • 0:45 - 0:49
    In multirate, the goal is to increase or
    decrease the number of samples of a
  • 0:49 - 0:52
    digital signal.
    One way to do this is to interpolate the
  • 0:52 - 0:56
    digital signal into a continuous time
    signal.
  • 0:56 - 0:59
    And then resample the interpolation at a
    different sampling rate.
  • 0:59 - 1:03
    However, we want to avoid the transition
    to discrete time, and we want to perform
  • 1:03 - 1:07
    this aritficial change of sampling rate
    entirely in the digital domain.
  • 1:07 - 1:11
    Let's consider the up sampling operation,
    which is really what we're interested in.
  • 1:11 - 1:15
    And let's look at how to do this, going
    through an interpolation and resampling
  • 1:15 - 1:19
    operation first.
    So we have a discrete time signal here,
  • 1:19 - 1:25
    we interpolate with the given period Ts.
    We obtain a continuous time signal and
  • 1:25 - 1:28
    then we sample this continuous time
    signal with a period that is k times
  • 1:28 - 1:32
    smaller than the original interpolation
    sample, and we obtain another discrete
  • 1:32 - 1:37
    times sequence here.
    Graphically, assume this is our discrete
  • 1:37 - 1:42
    times signal.
    The interpolation to continuous time will
  • 1:42 - 1:46
    give us this and the resampling with a
    smaller sampling period will give us a
  • 1:46 - 1:49
    higher density of samples on the same
    curve so that the resulting upsampled
  • 1:49 - 1:55
    signal would look like this.
    Now, we are interpolating to continuous
  • 1:55 - 1:59
    time, so the choice of the sampling
    period is completely arbitrary for
  • 1:59 - 2:03
    simplicity as per usual, which is Ts
    equal to 1, and here we have that the
  • 2:03 - 2:09
    interplay signal is given by the standard
    sync interplay formula.
  • 2:09 - 2:13
    When we resample, with the period that is
    1 over k, k times smaller than the
  • 2:13 - 2:19
    original, we are taking samples of the
    interplayed function at n over big K.
  • 2:19 - 2:24
    And the result Is an interpolation
    formula, where the sync function now, is
  • 2:24 - 2:29
    centered at fractional intervals, so n
    over big K.
  • 2:29 - 2:33
    In the frequency domain, the process
    looks like so.
  • 2:33 - 2:40
    Imagine we have a discreet time signal,
    whose spectrum is limited to 3 pi over 4.
  • 2:40 - 2:44
    We interpolate it to continuous time, and
    we get an analog spectrum that looks like
  • 2:44 - 2:49
    this, where our nyquist frequency is
    omega n, equal to pi over Ts.
  • 2:49 - 2:54
    When we resample, with the sampling
    period which is k times smaller, that is
  • 2:54 - 2:59
    equivalent to multiplying nyquist
    frequency by k.
  • 2:59 - 3:02
    So we make it bigger and we move it over
    here.
  • 3:02 - 3:05
    And when we plot the result in digital
    spectrum.
  • 3:05 - 3:10
    We map, as per usual, the nyquist
    frequency to pi, which corresponds to a
  • 3:10 - 3:15
    contraction of the frequency spectrum by
    a factor of K.
  • 3:15 - 3:19
    If here, we choose k, which is equal to
    3.
  • 3:19 - 3:22
    We get that what was the highest
    frequency of the spectrum, 3 pi over 4,
  • 3:22 - 3:28
    now becomes pi over 4.
    Can we do this completely in the digital
  • 3:28 - 3:30
    domain?
    Well the idea is that we need to increase
  • 3:30 - 3:35
    the number of samples by a factor of K.
    And obviously the sample sequence will
  • 3:35 - 3:40
    have to coincide with the original values
    when the index of the up sample sequence
  • 3:40 - 3:45
    is a multiple of K.
    There are several reasons why this is so,
  • 3:45 - 3:49
    but probably the most intuitive one is
    that if we then discard the extra
  • 3:49 - 3:54
    samples, we should be able to obtain the
    original sequence again.
  • 3:54 - 3:58
    So for lack of a better strategy, we can
    start by building a sequence where we put
  • 3:58 - 4:02
    the original samples, every K samples and
    then we put zeros everywhere else in
  • 4:02 - 4:07
    between.
    So for example, for k equal to 3, the
  • 4:07 - 4:10
    upsample sequence, say this is m equal to
    0, will be equal to x0 and m equal to
  • 4:10 - 4:14
    zero.
    Then we put two zeros, then we put x1,
  • 4:14 - 4:18
    then we put two zero, then we put x2, and
    then we put two zeroes.
  • 4:18 - 4:23
    We can see this in the time domain start
    with the same sequence that we showed
  • 4:23 - 4:26
    before.
    And what we are doing, we're simply
  • 4:26 - 4:31
    introducing zeroes between each stamp.
    With this choice, the Fourier transform
  • 4:31 - 4:35
    of the upsample sequence is rather easy
    to compute.
  • 4:35 - 4:41
    We just write out the standard DTFT
    formula, but now here, we remember that
  • 4:41 - 4:50
    xu of m will be equal to zero every time
    that m is not a multiple of K.
  • 4:50 - 4:54
    And so with this, we can simplify the sum
    and use only the known zero terms.
  • 4:54 - 4:57
    And we get the sum from n that goes to
    minus infinity to plus infinity of x of
  • 4:57 - 5:03
    n, which is our original sequence, that
    multiplies e to the minis j, omega nK.
  • 5:03 - 5:09
    And so, this is simply a scaling of the
    frequency axis by a factor of K.
  • 5:09 - 5:11
    Graphically, we can plot the digital
    spectrum and we know that now, since
  • 5:11 - 5:15
    we're multiply the frequency access be a
    factor of K, there will be a shrinkage of
  • 5:15 - 5:20
    the frequency access like this.
    But we should never forget that the
  • 5:20 - 5:25
    digital spectrum is 2 pi periodic.
    So lets plot this explicitly, for minus 5
  • 5:25 - 5:28
    pi to 5 pi.
    If we choose k equal to 3, we're mapping
  • 5:28 - 5:34
    the interval from minus 3 pi to 3 pi back
    onto the minus pi, pi interval.
  • 5:34 - 5:37
    And when we do that, we get something
    that is very close to what we obtained
  • 5:37 - 5:42
    going through the analog domain.
    In the sense that this frequency here is
  • 5:42 - 5:46
    again pi over 4.
    But, we have extra copies that have crop
  • 5:46 - 5:51
    in the main frequency interval.
    Now, we know what to do in this cases, we
  • 5:51 - 5:56
    apply some drastic low pass filter to get
    rid of them.
  • 5:56 - 6:00
    We choose an ideal low-pass filter with
    cutoff frequency pi over K, because this
  • 6:00 - 6:06
    is where the original pi in the frequency
    spectrum would be mapped to.
  • 6:06 - 6:09
    And this will get rid of the extra
    copies, and leave us with a spectrum that
  • 6:09 - 6:14
    is identical to what we obtain using an
    interpolator followed by a sampler.
  • 6:14 - 6:17
    So now let's look at the procedure back
    in the time domain.
  • 6:17 - 6:22
    So the first step is to insert K minus 1
    zeros after each sample, followed by an
  • 6:22 - 6:27
    ideal low-pass filter.
    And we choose the cutoff frequency for
  • 6:27 - 6:31
    the filter to be pi over K as we saw in
    the previous graph.
  • 6:31 - 6:37
    So now, the resulting sequence is simply
    the convolution of the upsampled sequence
  • 6:37 - 6:41
    with zeroes.
    And the impulse response of the filter
  • 6:41 - 6:45
    that, with this cutoff frequency will be
    simply sink of n over K.
  • 6:45 - 6:50
    And if we work out the convolution sum,
    we have this summation here.
  • 6:50 - 6:56
    But again, we remember that of these
    terms, only 1 every K will be non zero.
  • 6:56 - 7:00
    So we replace i with mK, and we sum over
    m.
  • 7:00 - 7:04
    And we get the sum for m that goes to
    minus infinity to plus infinity of x of
  • 7:04 - 7:11
    m, sync of n over K minus m.
    Which is exactly the same formula we got
  • 7:11 - 7:16
    using an interpolator and a sample.
    As we've mentioned before, if we have an
  • 7:16 - 7:19
    upsampled sequence we can always recover
    the original sequence by downsampling,
  • 7:19 - 7:23
    which means we keep only one sample out
    of k and throw away the rest.
  • 7:23 - 7:27
    Now, this is obvious in the case of an
    upsample sequence where we just introduce
  • 7:27 - 7:32
    K minus 1 zeroes every sample, but it is
    also true for a filtered sequence where
  • 7:32 - 7:37
    we used an ideal filter.
    Or any other filter that fulfills the
  • 7:37 - 7:42
    interpolation properties that we have
    seen in module 6.
  • 7:42 - 7:46
    In other words, we want impulse response
    to be equal to 1 for n equal to 0, and to
  • 7:46 - 7:53
    be equal to 0, for all multiples of K.
    In general, downsampling is a more
  • 7:53 - 7:56
    complex operation that upsampling, just
    like sampling is more complicated than
  • 7:56 - 8:00
    interpolation.
    We have the pesky problem of aliasing,
  • 8:00 - 8:05
    because we are throwing away information.
    We will not develop the properties of the
  • 8:05 - 8:08
    downsampling operator in detail because
    we will not need it in the following.
  • 8:08 - 8:12
    But you're encouraged to read about
    multirate signal processing in the book.
  • 8:12 - 8:16
    So let's go back to the bandwidth
    constraint, as you remember the channel
  • 8:16 - 8:21
    imposes that we only use frequencies
    between Fmin and Fmax.
  • 8:21 - 8:25
    We also want to translate these
    requirements into the digital domain.
  • 8:25 - 8:29
    So we choose a sampling frequency and Fs
    over two, half of our sampling frequency
  • 8:29 - 8:33
    will be our nyquist frequency in the
    analog domain.
  • 8:33 - 8:37
    Now, here's a new trick.
    Compute the positive bandwidth.
  • 8:37 - 8:41
    Namely, the width of the channel
    bandwidth on the positive axis, and call
  • 8:41 - 8:44
    that W.
    Now, pick the sample frequency so that
  • 8:44 - 8:47
    two things happen.
    First of all, the sample frequency will
  • 8:47 - 8:51
    have to be at least twice the maximum
    frequency that we can use in the channel
  • 8:51 - 8:56
    to avoid aliasing.
    But then, we choose the sample frequency
  • 8:56 - 8:59
    as an integer multiple of the positive
    bandwidth.
  • 8:59 - 9:05
    So we say that Fs is equal to KW for K a
    positive integer.
  • 9:05 - 9:09
    With this choice when we translate the
    analogue specifications into digital
  • 9:09 - 9:15
    domain and remember the formula is always
    the same, 2 pi F over Fs.
  • 9:15 - 9:21
    What happens is that the bandwidth in
    visual domain will be 2 pi W divided by
  • 9:21 - 9:28
    Fs which is equal to 2 pi over K and so.
    We can simply upsample the symbol
  • 9:28 - 9:33
    sequence by k so that it's bandwidth will
    move from two pi to two pi over k and
  • 9:33 - 9:40
    therefore, it's width will fit on the
    band allowed for on the channel.
  • 9:40 - 9:43
    Now, upsampling does not change the data
    rate, because we're creating a sequence
  • 9:43 - 9:47
    of symbols.
    From the user data bitstream and then we
  • 9:47 - 9:49
    are introducing the zeros between
    samples.
  • 9:49 - 9:52
    So, we are not introducing extra
    information.
  • 9:52 - 9:56
    So, we produce and transmit W symbols per
    second and then we have sampled that by K
  • 9:56 - 10:01
    to achieve a sample rate which is equal
    to the sample of frequency.
  • 10:01 - 10:05
    W, therefore is the fundamental data rate
    of the system and sometimes it's called
  • 10:05 - 10:10
    the baud rate of the system.
    A golden rule for digital communication
  • 10:10 - 10:14
    systems is that the baud rate will be
    equal to the positive bandwidth allowed
  • 10:14 - 10:19
    by the channel.
    So here is our revised baud diagram for
  • 10:19 - 10:23
    the transmitter.
    User data comes in as a bit stream.
  • 10:23 - 10:28
    The Scrambler makes sure that we have a
    random sequence of symbols.
  • 10:28 - 10:32
    The mapper will create, the random
    sequence of symbols.
  • 10:32 - 10:37
    We upsample the sequence by K.
    We filter this with a low pass filter
  • 10:37 - 10:41
    with cutoff frequency pi over K, and we
    obtain base band signal b of n, which is
  • 10:41 - 10:48
    centered in 0, and extends from minus pi
    over K to pi over K.
  • 10:48 - 10:53
    Now, we need to move this base band
    signal, to the pass band of the channel.
  • 10:53 - 10:56
    And to do so, we modulated with a cosine
    carrier.
  • 10:56 - 11:00
    This frequency is the center frequency of
    the channel's band.
  • 11:00 - 11:04
    This pass band signal s of n can now be
    converted to the analog domain, before
  • 11:04 - 11:09
    being transmitted over the channel.
    Graphically, assume these are the
  • 11:09 - 11:13
    specifications dictated by the channel
    and translated to the digital domain.
  • 11:13 - 11:18
    So here we have the positive bandwidth,
    and the negative bandwidth.
  • 11:18 - 11:22
    The sequence of symbols generated by the
    mapper, is a wide sequence and therefore,
  • 11:22 - 11:28
    inspires spectral density Pa of e to the
    j omega, is a full band signal.
  • 11:28 - 11:33
    Now when we upsample this sequence by a
    factor of k, we reduce its spectral
  • 11:33 - 11:40
    support, to a baseband signal that goes
    from a minus pi over K, 2pi over K.
  • 11:40 - 11:45
    And then, we modulate this with a cosine
    carrier, to fit it onto the bands that
  • 11:45 - 11:51
    are available on the channel.
    As a final note, since we are developing
  • 11:51 - 11:55
    a completely digital transmission system,
    we will probably want to use FIR filters
  • 11:55 - 12:00
    in its implementation.
    Now, we know that the sync filter that we
  • 12:00 - 12:04
    have used in the upsampling operator Will
    be a notoriously difficult filter to
  • 12:04 - 12:08
    approximate with an FIR.
    So what is used in practice is another
  • 12:08 - 12:13
    type of filter called a raised cosine.
    The frequency response of the raised
  • 12:13 - 12:16
    cosine is shown here in this picture, and
    you can see that the transition band is
  • 12:16 - 12:21
    no longer a discontinuity.
    But it is actually a smooth transition
  • 12:21 - 12:25
    from past band to star band as a matter
    of fact a raised cosine has a parameter
  • 12:25 - 12:29
    that you can tune to have an even gentler
    transition then.
  • 12:29 - 12:34
    Now, the raised cosine remains an ideal
    filter because you can see it is constant
  • 12:34 - 12:39
    over the pass band, and the stop band.
    But it is much easier to approximate than
  • 12:39 - 12:42
    the sync.
    Another good property of the raise
  • 12:42 - 12:46
    cosine, is that it fulfills the
    interpolation property that we need to do
  • 12:46 - 12:51
    upsampling.
    And the final selling pointing, is that
  • 12:51 - 12:56
    the impulse response, it can be shown
    decays as 1 over n cubed.
  • 12:56 - 13:01
    So even short FIR approximations can get
    a very good response.
  • 13:01 - 13:06
    [BLANK_AUDIO]
Title:
9.2 - Controlling the bandwidth
Description:

From the official description of 9.. videos:

Welcome to Week 8 of Digital Signal Processing.

This week's module is about digital communication systems and this is where it all comes together; from complex-valued signals, to spectral analysis, to stochastic processing, sampling and interpolation: everything plays a role in the design and implementation of a digital modem. Digital communications is an extremely vast and fascinating topic and it is arguably the pinnacle achievement of DSP in the sense that it's the domain where the most extraordinary quantitative progress has been made thanks to the digital paradigm. The fact that MOOCs such as this one are available to such an incredibly vast audience is just one of the tangible results of digital communication systems. It is only fitting, therefore, to devote the last module of our class to this subject.

We will start with the basics of data modulation and demodulation and we will progress to describing how your ADSL box works by way of its direct predecessor, the voiceband modem that spearheaded the Internet revolution by allowing for the first time the delivery of substantial data rates in the home.

more » « less
Claude Almansi edited English subtitles for 9.2 - Controlling the bandwidth
Claude Almansi edited English subtitles for 9.2 - Controlling the bandwidth
Claude Almansi commented on English subtitles for 9.2 - Controlling the bandwidth
Claude Almansi edited English subtitles for 9.2 - Controlling the bandwidth
Claude Almansi added a translation

English subtitles

Incomplete

Revisions