0:00:01.120,0:00:04.170 Hi, and welcome to module 9.2 of digital [br]signal processing. 0:00:04.170,0:00:07.842 We are talking about digital [br]communication systems, and in this 0:00:07.842,0:00:13.120 module, we will talk about how to fulfil [br]the bandwidth constraint. 0:00:13.120,0:00:15.904 The way that we're going to do this is by [br]introducing an operation called 0:00:15.904,0:00:19.694 upsampling. [br]And we will see how upsampling will allow 0:00:19.694,0:00:23.720 us to fit the spectrum generated by the [br]transmitter onto the band allowed for by 0:00:23.720,0:00:27.851 the channel. [br]Remember that our assumption is that the 0:00:27.851,0:00:31.470 signal generated by the transmitter is a [br]wide sequence. 0:00:31.470,0:00:35.400 And therefore, it's spiral spectral [br]density will be full band. 0:00:35.400,0:00:38.900 What we need to do is to shrink the [br]support of it's spiral spectral density 0:00:38.900,0:00:42.350 so that it fits on the band allowed by [br]the channel. 0:00:42.350,0:00:45.497 The way we do this is by using multirate [br]techniques. 0:00:45.497,0:00:49.310 In multirate, the goal is to increase or [br]decrease the number of samples of a 0:00:49.310,0:00:52.454 digital signal. [br]One way to do this is to interpolate the 0:00:52.454,0:00:55.550 digital signal into a continuous time [br]signal. 0:00:55.550,0:00:58.958 And then resample the interpolation at a [br]different sampling rate. 0:00:58.958,0:01:02.576 However, we want to avoid the transition [br]to discrete time, and we want to perform 0:01:02.576,0:01:07.310 this aritficial change of sampling rate [br]entirely in the digital domain. 0:01:07.310,0:01:10.670 Let's consider the up sampling operation, [br]which is really what we're interested in. 0:01:10.670,0:01:15.224 And let's look at how to do this, going [br]through an interpolation and resampling 0:01:15.224,0:01:19.462 operation first. [br]So we have a discrete time signal here, 0:01:19.462,0:01:24.610 we interpolate with the given period Ts. [br]We obtain a continuous time signal and 0:01:24.610,0:01:28.150 then we sample this continuous time [br]signal with a period that is k times 0:01:28.150,0:01:32.230 smaller than the original interpolation [br]sample, and we obtain another discrete 0:01:32.230,0:01:37.473 times sequence here. [br]Graphically, assume this is our discrete 0:01:37.473,0:01:41.900 times signal. [br]The interpolation to continuous time will 0:01:41.900,0:01:45.680 give us this and the resampling with a [br]smaller sampling period will give us a 0:01:45.680,0:01:49.460 higher density of samples on the same [br]curve so that the resulting upsampled 0:01:49.460,0:01:55.424 signal would look like this. [br]Now, we are interpolating to continuous 0:01:55.424,0:01:59.230 time, so the choice of the sampling [br]period is completely arbitrary for 0:01:59.230,0:02:02.622 simplicity as per usual, which is Ts [br]equal to 1, and here we have that the 0:02:02.622,0:02:08.720 interplay signal is given by the standard [br]sync interplay formula. 0:02:08.720,0:02:12.929 When we resample, with the period that is [br]1 over k, k times smaller than the 0:02:12.929,0:02:19.420 original, we are taking samples of the [br]interplayed function at n over big K. 0:02:19.420,0:02:24.397 And the result Is an interpolation [br]formula, where the sync function now, is 0:02:24.397,0:02:29.458 centered at fractional intervals, so n [br]over big K. 0:02:29.458,0:02:32.990 In the frequency domain, the process [br]looks like so. 0:02:32.990,0:02:39.770 Imagine we have a discreet time signal, [br]whose spectrum is limited to 3 pi over 4. 0:02:39.770,0:02:44.117 We interpolate it to continuous time, and [br]we get an analog spectrum that looks like 0:02:44.117,0:02:49.340 this, where our nyquist frequency is [br]omega n, equal to pi over Ts. 0:02:49.340,0:02:54.254 When we resample, with the sampling [br]period which is k times smaller, that is 0:02:54.254,0:02:59.220 equivalent to multiplying nyquist [br]frequency by k. 0:02:59.220,0:03:01.685 So we make it bigger and we move it over [br]here. 0:03:01.685,0:03:05.270 And when we plot the result in digital [br]spectrum. 0:03:05.270,0:03:09.650 We map, as per usual, the nyquist [br]frequency to pi, which corresponds to a 0:03:09.650,0:03:14.694 contraction of the frequency spectrum by [br]a factor of K. 0:03:14.694,0:03:18.750 If here, we choose k, which is equal to [br]3. 0:03:18.750,0:03:22.404 We get that what was the highest [br]frequency of the spectrum, 3 pi over 4, 0:03:22.404,0:03:27.562 now becomes pi over 4. [br]Can we do this completely in the digital 0:03:27.562,0:03:30.380 domain? [br]Well the idea is that we need to increase 0:03:30.380,0:03:35.262 the number of samples by a factor of K. [br]And obviously the sample sequence will 0:03:35.262,0:03:40.294 have to coincide with the original values [br]when the index of the up sample sequence 0:03:40.294,0:03:45.254 is a multiple of K. [br]There are several reasons why this is so, 0:03:45.254,0:03:48.558 but probably the most intuitive one is [br]that if we then discard the extra 0:03:48.558,0:03:53.580 samples, we should be able to obtain the [br]original sequence again. 0:03:53.580,0:03:57.606 So for lack of a better strategy, we can [br]start by building a sequence where we put 0:03:57.606,0:04:01.571 the original samples, every K samples and [br]then we put zeros everywhere else in 0:04:01.571,0:04:06.900 between. [br]So for example, for k equal to 3, the 0:04:06.900,0:04:10.430 upsample sequence, say this is m equal to [br]0, will be equal to x0 and m equal to 0:04:10.430,0:04:14.310 zero. [br]Then we put two zeros, then we put x1, 0:04:14.310,0:04:18.400 then we put two zero, then we put x2, and [br]then we put two zeroes. 0:04:18.400,0:04:22.540 We can see this in the time domain start [br]with the same sequence that we showed 0:04:22.540,0:04:25.625 before. [br]And what we are doing, we're simply 0:04:25.625,0:04:31.436 introducing zeroes between each stamp. [br]With this choice, the Fourier transform 0:04:31.436,0:04:34.820 of the upsample sequence is rather easy [br]to compute. 0:04:34.820,0:04:40.524 We just write out the standard DTFT [br]formula, but now here, we remember that 0:04:40.524,0:04:49.800 xu of m will be equal to zero every time [br]that m is not a multiple of K. 0:04:49.800,0:04:53.790 And so with this, we can simplify the sum [br]and use only the known zero terms. 0:04:53.790,0:04:57.450 And we get the sum from n that goes to [br]minus infinity to plus infinity of x of 0:04:57.450,0:05:03.380 n, which is our original sequence, that [br]multiplies e to the minis j, omega nK. 0:05:03.380,0:05:08.700 And so, this is simply a scaling of the [br]frequency axis by a factor of K. 0:05:08.700,0:05:11.486 Graphically, we can plot the digital [br]spectrum and we know that now, since 0:05:11.486,0:05:15.238 we're multiply the frequency access be a [br]factor of K, there will be a shrinkage of 0:05:15.238,0:05:20.138 the frequency access like this. [br]But we should never forget that the 0:05:20.138,0:05:24.734 digital spectrum is 2 pi periodic. [br]So lets plot this explicitly, for minus 5 0:05:24.734,0:05:28.264 pi to 5 pi. [br]If we choose k equal to 3, we're mapping 0:05:28.264,0:05:33.810 the interval from minus 3 pi to 3 pi back [br]onto the minus pi, pi interval. 0:05:33.810,0:05:36.982 And when we do that, we get something [br]that is very close to what we obtained 0:05:36.982,0:05:41.728 going through the analog domain. [br]In the sense that this frequency here is 0:05:41.728,0:05:46.205 again pi over 4. [br]But, we have extra copies that have crop 0:05:46.205,0:05:51.198 in the main frequency interval. [br]Now, we know what to do in this cases, we 0:05:51.198,0:05:55.500 apply some drastic low pass filter to get [br]rid of them. 0:05:55.500,0:05:59.673 We choose an ideal low-pass filter with [br]cutoff frequency pi over K, because this 0:05:59.673,0:06:05.520 is where the original pi in the frequency [br]spectrum would be mapped to. 0:06:05.520,0:06:08.692 And this will get rid of the extra [br]copies, and leave us with a spectrum that 0:06:08.692,0:06:14.220 is identical to what we obtain using an [br]interpolator followed by a sampler. 0:06:14.220,0:06:17.300 So now let's look at the procedure back [br]in the time domain. 0:06:17.300,0:06:21.766 So the first step is to insert K minus 1 [br]zeros after each sample, followed by an 0:06:21.766,0:06:26.802 ideal low-pass filter. [br]And we choose the cutoff frequency for 0:06:26.802,0:06:31.250 the filter to be pi over K as we saw in [br]the previous graph. 0:06:31.250,0:06:36.780 So now, the resulting sequence is simply [br]the convolution of the upsampled sequence 0:06:36.780,0:06:40.836 with zeroes. [br]And the impulse response of the filter 0:06:40.836,0:06:45.440 that, with this cutoff frequency will be [br]simply sink of n over K. 0:06:45.440,0:06:49.720 And if we work out the convolution sum, [br]we have this summation here. 0:06:49.720,0:06:55.850 But again, we remember that of these [br]terms, only 1 every K will be non zero. 0:06:55.850,0:07:00.500 So we replace i with mK, and we sum over [br]m. 0:07:00.500,0:07:04.460 And we get the sum for m that goes to [br]minus infinity to plus infinity of x of 0:07:04.460,0:07:10.774 m, sync of n over K minus m. [br]Which is exactly the same formula we got 0:07:10.774,0:07:16.287 using an interpolator and a sample. [br]As we've mentioned before, if we have an 0:07:16.287,0:07:18.978 upsampled sequence we can always recover [br]the original sequence by downsampling, 0:07:18.978,0:07:23.270 which means we keep only one sample out [br]of k and throw away the rest. 0:07:23.270,0:07:27.428 Now, this is obvious in the case of an [br]upsample sequence where we just introduce 0:07:27.428,0:07:31.523 K minus 1 zeroes every sample, but it is [br]also true for a filtered sequence where 0:07:31.523,0:07:37.223 we used an ideal filter. [br]Or any other filter that fulfills the 0:07:37.223,0:07:41.650 interpolation properties that we have [br]seen in module 6. 0:07:41.650,0:07:46.258 In other words, we want impulse response [br]to be equal to 1 for n equal to 0, and to 0:07:46.258,0:07:52.630 be equal to 0, for all multiples of K. [br]In general, downsampling is a more 0:07:52.630,0:07:55.939 complex operation that upsampling, just [br]like sampling is more complicated than 0:07:55.939,0:07:59.550 interpolation. [br]We have the pesky problem of aliasing, 0:07:59.550,0:08:04.960 because we are throwing away information. [br]We will not develop the properties of the 0:08:04.960,0:08:08.310 downsampling operator in detail because [br]we will not need it in the following. 0:08:08.310,0:08:11.773 But you're encouraged to read about [br]multirate signal processing in the book. 0:08:11.773,0:08:15.982 So let's go back to the bandwidth [br]constraint, as you remember the channel 0:08:15.982,0:08:21.400 imposes that we only use frequencies [br]between Fmin and Fmax. 0:08:21.400,0:08:24.630 We also want to translate these [br]requirements into the digital domain. 0:08:24.630,0:08:28.851 So we choose a sampling frequency and Fs [br]over two, half of our sampling frequency 0:08:28.851,0:08:33.200 will be our nyquist frequency in the [br]analog domain. 0:08:33.200,0:08:36.760 Now, here's a new trick. [br]Compute the positive bandwidth. 0:08:36.760,0:08:40.725 Namely, the width of the channel [br]bandwidth on the positive axis, and call 0:08:40.725,0:08:43.690 that W. [br]Now, pick the sample frequency so that 0:08:43.690,0:08:47.204 two things happen. [br]First of all, the sample frequency will 0:08:47.204,0:08:51.488 have to be at least twice the maximum [br]frequency that we can use in the channel 0:08:51.488,0:08:56.110 to avoid aliasing. [br]But then, we choose the sample frequency 0:08:56.110,0:08:59.400 as an integer multiple of the positive [br]bandwidth. 0:08:59.400,0:09:04.560 So we say that Fs is equal to KW for K a [br]positive integer. 0:09:04.560,0:09:09.370 With this choice when we translate the [br]analogue specifications into digital 0:09:09.370,0:09:15.190 domain and remember the formula is always [br]the same, 2 pi F over Fs. 0:09:15.190,0:09:20.584 What happens is that the bandwidth in [br]visual domain will be 2 pi W divided by 0:09:20.584,0:09:28.152 Fs which is equal to 2 pi over K and so. [br]We can simply upsample the symbol 0:09:28.152,0:09:32.740 sequence by k so that it's bandwidth will [br]move from two pi to two pi over k and 0:09:32.740,0:09:39.702 therefore, it's width will fit on the [br]band allowed for on the channel. 0:09:39.702,0:09:43.306 Now, upsampling does not change the data [br]rate, because we're creating a sequence 0:09:43.306,0:09:46.562 of symbols. [br]From the user data bitstream and then we 0:09:46.562,0:09:49.322 are introducing the zeros between [br]samples. 0:09:49.322,0:09:51.662 So, we are not introducing extra [br]information. 0:09:51.662,0:09:55.950 So, we produce and transmit W symbols per [br]second and then we have sampled that by K 0:09:55.950,0:10:01.464 to achieve a sample rate which is equal [br]to the sample of frequency. 0:10:01.464,0:10:05.136 W, therefore is the fundamental data rate [br]of the system and sometimes it's called 0:10:05.136,0:10:09.562 the baud rate of the system. [br]A golden rule for digital communication 0:10:09.562,0:10:13.594 systems is that the baud rate will be [br]equal to the positive bandwidth allowed 0:10:13.594,0:10:18.588 by the channel. [br]So here is our revised baud diagram for 0:10:18.588,0:10:22.804 the transmitter. [br]User data comes in as a bit stream. 0:10:22.804,0:10:27.725 The Scrambler makes sure that we have a [br]random sequence of symbols. 0:10:27.725,0:10:31.998 The mapper will create, the random [br]sequence of symbols. 0:10:31.998,0:10:36.600 We upsample the sequence by K. [br]We filter this with a low pass filter 0:10:36.600,0:10:41.336 with cutoff frequency pi over K, and we [br]obtain base band signal b of n, which is 0:10:41.336,0:10:47.730 centered in 0, and extends from minus pi [br]over K to pi over K. 0:10:47.730,0:10:52.880 Now, we need to move this base band [br]signal, to the pass band of the channel. 0:10:52.880,0:10:56.490 And to do so, we modulated with a cosine [br]carrier. 0:10:56.490,0:11:00.120 This frequency is the center frequency of [br]the channel's band. 0:11:00.120,0:11:04.260 This pass band signal s of n can now be [br]converted to the analog domain, before 0:11:04.260,0:11:08.754 being transmitted over the channel. [br]Graphically, assume these are the 0:11:08.754,0:11:13.410 specifications dictated by the channel [br]and translated to the digital domain. 0:11:13.410,0:11:18.100 So here we have the positive bandwidth, [br]and the negative bandwidth. 0:11:18.100,0:11:22.447 The sequence of symbols generated by the [br]mapper, is a wide sequence and therefore, 0:11:22.447,0:11:27.990 inspires spectral density Pa of e to the [br]j omega, is a full band signal. 0:11:27.990,0:11:32.870 Now when we upsample this sequence by a [br]factor of k, we reduce its spectral 0:11:32.870,0:11:40.127 support, to a baseband signal that goes [br]from a minus pi over K, 2pi over K. 0:11:40.127,0:11:45.247 And then, we modulate this with a cosine [br]carrier, to fit it onto the bands that 0:11:45.247,0:11:50.903 are available on the channel. [br]As a final note, since we are developing 0:11:50.903,0:11:55.173 a completely digital transmission system, [br]we will probably want to use FIR filters 0:11:55.173,0:11:59.837 in its implementation. [br]Now, we know that the sync filter that we 0:11:59.837,0:12:03.731 have used in the upsampling operator Will [br]be a notoriously difficult filter to 0:12:03.731,0:12:08.371 approximate with an FIR. [br]So what is used in practice is another 0:12:08.371,0:12:12.924 type of filter called a raised cosine. [br]The frequency response of the raised 0:12:12.924,0:12:16.488 cosine is shown here in this picture, and [br]you can see that the transition band is 0:12:16.488,0:12:21.222 no longer a discontinuity. [br]But it is actually a smooth transition 0:12:21.222,0:12:24.750 from past band to star band as a matter [br]of fact a raised cosine has a parameter 0:12:24.750,0:12:29.450 that you can tune to have an even gentler [br]transition then. 0:12:29.450,0:12:33.872 Now, the raised cosine remains an ideal [br]filter because you can see it is constant 0:12:33.872,0:12:39.360 over the pass band, and the stop band. [br]But it is much easier to approximate than 0:12:39.360,0:12:41.872 the sync. [br]Another good property of the raise 0:12:41.872,0:12:46.200 cosine, is that it fulfills the [br]interpolation property that we need to do 0:12:46.200,0:12:50.581 upsampling. [br]And the final selling pointing, is that 0:12:50.581,0:12:56.200 the impulse response, it can be shown [br]decays as 1 over n cubed. 0:12:56.200,0:13:00.566 So even short FIR approximations can get [br]a very good response. 0:13:00.566,0:13:06.102 [BLANK_AUDIO]