0% found this document useful (0 votes)
41 views

Comm Manual 2020

This document is a lab manual for a communication systems course. It contains 10 chapters that describe experiments covering topics such as modulation and demodulation techniques including amplitude modulation, frequency modulation, pulse code modulation, and Fourier analysis. The experiments are designed to introduce students to modeling communication systems using MATLAB and building systems in Simulink. They provide both the theoretical background and step-by-step instructions to implement and test various modulation/demodulation schemes.

Uploaded by

Shahzaib Nadeem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Comm Manual 2020

This document is a lab manual for a communication systems course. It contains 10 chapters that describe experiments covering topics such as modulation and demodulation techniques including amplitude modulation, frequency modulation, pulse code modulation, and Fourier analysis. The experiments are designed to introduce students to modeling communication systems using MATLAB and building systems in Simulink. They provide both the theoretical background and step-by-step instructions to implement and test various modulation/demodulation schemes.

Uploaded by

Shahzaib Nadeem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 105

EE-361L

Communication Systems Lab Manual

Faculty of Electrical Engineering


Ghulam Ishaq Khan Institute of Engineering Sciences and Technology

0|Page
TABLE OF CONTENTS
Lab - 1: Introduction to Telecoms Trainer ......................................................................... 5
1.1 Apparatus ..........................................................................................................................................5
1.2 Introduction .......................................................................................................................................5
1.3 Modules .............................................................................................................................................5
1.4 Modeling Equations ...........................................................................................................................9
1.5 Modeling Equations .........................................................................................................................11
1.6 Lab Outcome ...................................................................................................................................11

Lab - 2: Introduction to Communication Toolbox-MATLAB .......................................13


2.1 Apparatus ........................................................................................................................................13
2.2 Introduction .....................................................................................................................................13
2.3 Starting Simulink ..............................................................................................................................13
2.4 Basic Elements .................................................................................................................................14
2.5 Building a System .............................................................................................................................15
2.6 Implementation of Modulation .......................................................................................................21
2.7 Lab Outcomes ..................................................................................................................................27

Lab - 3: Fourier Analysis and Spectrum Analysis of Signals ............................................29


3.1 Apparatus ........................................................................................................................................29
3.2 Introduction .....................................................................................................................................29
3.3 Theory ..............................................................................................................................................29
3.4 Experiment ......................................................................................................................................29
3.5 Lab Outcomes ..................................................................................................................................31

Lab - 4: Amplitude Modulation and Demodulation of Signals .........................................33


4.1 Apparatus ........................................................................................................................................33
4.2 Introduction .....................................................................................................................................33
4.3 Mathematical Modeling ..................................................................................................................34
4.4 The Experiment................................................................................................................................34
4.5 Amplitude Demodulation ................................................................................................................37
4.6 The Experiment................................................................................................................................38
4.7 Lab Outcomes ..................................................................................................................................39

Lab - 5: DSB- SC Modulation Demodulation of Signals ....................................................41


5.1 Apparatus ........................................................................................................................................41
5.2 Introduction .....................................................................................................................................41
5.3 Difference between DSBSC and AM ................................................................................................42
5.4 The Experiment................................................................................................................................43
5.5 DSBSC Demodulation .......................................................................................................................44
5.6 DSBSC Demodulation Mathematics .................................................................................................45
5.7 The Experiment................................................................................................................................46
5.8 Lab Outcomes ..................................................................................................................................49

1|Page
Lab - 6: SSB-SC Modulation Demodulation of Signals .....................................................51
6.1 Apparatus ........................................................................................................................................51
6.2 Introduction .....................................................................................................................................51
6.3 Generating SSBSC ............................................................................................................................52
6.4 The Experiment................................................................................................................................53
6.5 SSBSC Demodulation .......................................................................................................................56
6.6 Lab Outcomes ..................................................................................................................................58

Lab - 7: Frequency Modulation of Signals ............................................................................60


7.1 Apparatus ........................................................................................................................................60
7.2 Introduction .....................................................................................................................................60
7.3 The Experiment................................................................................................................................61
7.4 Lab Outcomes ..................................................................................................................................64

Lab - 8: Frequency Demodulation of Signals ........................................................................66


8.1 Apparatus ........................................................................................................................................66
8.2 Introduction .....................................................................................................................................66
8.3 Experiment ......................................................................................................................................67
8.4 Setting up Zero Crossing Detector ...................................................................................................69
8.5 Lab Outcomes ..................................................................................................................................72

Lab - 9: Pulse Code Modulation ...............................................................................................74


9.1 Apparatus ........................................................................................................................................74
9.2 Introduction .....................................................................................................................................74
9.3 The Experiment................................................................................................................................75
9.4 Lab Outcomes ..................................................................................................................................77

Lab - 10: Pulse Width Modulation Demodulation .................................................................79


10.1 Apparatus ........................................................................................................................................79
10.2 Introduction .....................................................................................................................................79
10.3 The Experiment................................................................................................................................81
10.4 Recovery of Massage Signal.............................................................................................................86

Lab - 11: Introduction to Shift Keying .....................................................................................89


11.1 Apparatus ........................................................................................................................................89
11.2 Introduction .....................................................................................................................................89
11.3 The Experiment................................................................................................................................89
11.4 Lab Outcomes ..................................................................................................................................94

Lab - 12: Hardware Implementation of PLL ..........................................................................96


12.1 Apparatus ........................................................................................................................................96
12.2 Introduction .....................................................................................................................................96
12.3 Experimental Setup .........................................................................................................................97
3.1 Voltage Control Oscillator ...............................................................................................................98

2|Page
12.4 Result and Analysis ..........................................................................................................................99
12.5 4.2 Phase Lock Loop .....................................................................................................................101
12.6 Lab Outcomes ................................................................................................................................103

Lab Instructor Asad Khaliq ____________________________

Course Instructor Dr. Ahmad Kamal Hassan ____________________________

Dean FEE Prof. Dr. Muhammad Akbar ____________________________

3|Page
Instructions for Students
1. If a student is absent from a lab due to any reason, he/she will have to get written permission from the
Dean to perform that lab. LAB GRADING POLICY CAN BE CHANGED BY LAB INSTRUCTOR
ANYTIME BEFORE THE FINAL LAB EXAM.
2. Students may bring their text books to the lab, so that they can refer to theory and diagrams whenever
required.
3. Labs will be graded in parallel entry fashion; one entry in the assessment sheet given at the end of every
lab and another entry in the instructor’s record which will be scaled according to the percentage of
respective labs. This system of keeping records will keep students aware of their performance throughout
the lab.
4. The general assessment sheet at the end of every lab looks as shown below

Name: _______________________
Reg #: ______________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently setup, Can setup and Can setup and Cannot setup or
operate and handle the handle the apparatus handle the handle the
apparatus with minimal help apparatus with apparatus
some help

CLO-2 PLO-5 All required data is Data recorded and Data recorded Data recorded
recorded and presented presented is and presented is only with
accurately and completely complete but partially considerable
in the required format accuracy is not as complete. The assistance from
per requirement. required format instructor
The required format is followed but
is followed with few
deficiencies

CLO-3 PLO-8 Student hands Student does not


over the hand over the
NA NA workstation in workstation in
the required the required
manner manner

CLO-4 PLO-41. Analyzes and interprets Analyzes data Unable to


data correctly for all tasks/ Analyzes and correctly analyze and
experiments in the lab however unable interpret data for
interprets data
correctly for few to interpret it for any tasks/
tasks/ tasks/ experiments in
experiments in the experiments in the lab
lab the lab
Total Score in Lab /10

4|Page
Introduction to Telecoms Trainer

1.1 Apparatus
 EMONA 101 Trainer Kit
1.2 Introduction
As its name implies, the Emona Telecoms-Trainer 101 is used to help people learn about communications
and telecommunications principles. It lets you bring to life the block diagrams that fill communications
textbooks. A “block diagram" is a simplified representation of a more complex circuit. An example is shown
in Figure 1 below.

Figure 1-1-1: Block Diagram


Block diagrams are used to explain the principle of operation of electronic systems (like a radio transmitter
for example) without worrying about how the circuit works. Each block represents a part of the circuit that
performs a separate task and is named according to what it does. Examples of common blocks in
communications equipment include the adder, buffer, phase shifter and so on.
The Emona Telecoms-Trainer 101 has a collection of blocks (called modules) that you can put together to
implement dozens of communications and telecommunications block diagrams.

1.3 Modules
1.3.1 Master Signals, Speech and Buffer Modules

The Master Signals module:


The Master Signals module is an AC signal generator or oscillator. The module has six outputs providing
the following:

Analog Digital
A 2kHz sine wave A 2.083kHz square wave
A 100kHz sine wave An 8.33kHz square wave
A 100kHz cosine wave A 100kHz square wave

Each signal is available on a socket on the module's faceplate that's labeled accordingly.
TESTING:

5|Page
 Connect the set-up as shown below:

Figure 1-3-1-1: 2kHz Sine Wave Connections

 Block diagram for the above 2kHz sine wave can be drawn as:

Figure 1-3-1-2: 2kHz Sine Wave Block Diagram


TASK:

Check each of the Master Signals on oscilloscope. Draw their block diagrams below mention their
frequency and time period:

Freq: Freq: Freq:


Time Period: Time Period: Time Period:

Freq: Freq: Freq:


Time Period: Time Period: Time Period:

6|Page
The Speech Module:
Sine waves are important to communications. They are used extensively for the carrier signal in many
communications systems. Sine waves also make excellent test signals. However, the purpose of most
communications equipment is the transmission of speech (among other things) and so it is useful to examine
the operation of equipment using signals generated by speech instead of sine waves. The Emona Telecoms-
Trainer 101 allows you to do this using the Speech Module.

TESTING:

 Connect the set-up as shown below:

Figure 1-3-1-3: Speech Module Connections

 Now speak in the microphone and observe the variations on oscilloscope.


 The speech signal variations must be carefully analyzed.

TASK:

Draw the block diagram of above observed phenomena:

7|Page
The Buffer Module:
Amplifiers are used extensively in communications and telecommunications equipment. They are often used
to make signals bigger.

Why?

They're also used as an interface between devices and circuits that can‘t normally be connected. The Buffer
module in the Emona Telecoms-Trainer 101 is an amplifier that can do both.

TESTING:

 Connect the set-up as shown below:

Figure 1-3-1-4: Buffer Module Connections

 Make sure you connect the black leads to the ground of EMONA 101 trainer.
 Set Scope’s mode control to Ext/Dual position.
 Measure the input voltage first by channel 1. Then by moving the gain knob of buffer to middle
position. Measure the output voltage at channel 2.

TASK:

Draw the block diagram of above observed phenomena, making sure both channels are labeled:

8|Page
 The gain of electronic device is generally given as:

Gain = (Output Parameter / Input Parameter)

Find out the gain of the Buffer Module:

Gain =

Will the gain be same for all knob positions? Reason your answer:

1.4 Modeling Equations


As already studied in depth the modules, connections and block diagrams of the EMONA 101 Trainer Kit
following are three modules along with their description and block diagrams.
1.4.1 Adder, Phase Shifter and Voltage Controller Oscillator(VCO) Modules

The Adder Module:


In many communication systems addition of signals is required in order to obtain the required/desired output
signal. For this signals are added. EMONA Telecoms Trainer has an adder module that helps to achieve this
task.

The Phase Shifter Module:


Sometimes the signal to be transmitted in communication systems requires it to be phase shifted. The Phase
Shifter Module of EMONA trainer enables to provide a desired phase shift to the signal. The phase difference
between two signals can be calculated as:

The VCO Module:


As its name implies, the VCO module is an oscillator like the Master Signals module. However, the VCO
module is different in two ways:

1. The VCO module has only two outputs (1 analog und 1 digital) whereas the Master Signals module
has six (3 analog and 3 digital)
2. The VCO module‘s output frequency is variable whereas the frequency of the Master Signal module‘s
outputs is fixed (at 2kHz, 8kHz und l00kHz)

9|Page
THE BLOCK DIAGRAMS OF EACH OF ABOVE MODULES ARE
PROVIDED

ADDER MODULE

PHASE SHIFTER MODULE

VCO MODULE

Through the above block diagrams, design/implement each of the 3 modules and get them checked by your
lab instructor. Make sure you can justify the purpose of each module.

10 | P a g e
1.5 Modeling Equations
Mathematics is an important part of communications and telecommunications. As you will learn, the output
of all communications systems can be described mathematically with an equation. Although the mathematics
that you will need for today’s experiment is relatively light. The EMONA Telecoms-Trainer 101 can model
communications equations to bring them to life. This experiment will introduce you to modeling of equations
through different modules studied above.

As already performed write down the general equation for the adder module:

_____________________________________________________________________

Justify above equation by the block diagram:

What should be the equation for the following block diagram:

EQUATION: OUTPUT =
_____________________________________________

1.6 Lab Outcome


At the end of this lab you should know:
1. EMONA 101 Trainer’s different functions
2. EMONA 101 Trainer’s modules and their working
3. Modeling equations through block diagrams
4. Making block diagrams through equations
5. Identifying the appropriate blocks that should be used for a specific design

11 | P a g e
LAB 1 ASSESSMENT1.
Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score

3.0 2.0 1.0 0


CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-42. PLO-43. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

12 | P a g e
Introduction to Communication Toolbox-MATLAB

2.1 Apparatus
 MATLAB
2.2 Introduction
This document is designed to act as a tutorial for an individual who has had no prior experience with Simulink
and it also serve as the lab handout to work on Simulink. Simulink is a graphical extension to MATLAB for
the modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams. Many
elements of block diagrams are available (such as transfer functions, summing junctions, etc.), as well as
virtual input devices (such as function generators) and output devices (such as oscilloscopes). Simulink is
integrated with MATLAB and data can be easily transferred between the programs. In this tutorial, we will
introduce the basics of using Simulink to model and simulate a system. Simulink is supported on Unix,
Macintosh, and Windows environments, and it is included in student version of MATLAB for personal
computers. For more information on Simulink, visit the MathWorks website.
The idea behind this lab is that you can view it in one window while running Simulink in another window
on the desktop. Do not confuse the windows, icons, and menus in this tutorials for your actual Simulink
windows. Most images in these tutorials are not live, they simply display what you should see in your own
Simulink windows. All Simulink operations should be done in your Simulink windows.
2.3 Starting Simulink
1. Start MATLAB.
2. Simulink is an extra toolbox that runs on top of MATLAB.
3. To start this, type “simulink” in the Command Window or click on the Simulink icon.

Figure 12-3-1: Starting Simulink using icon or Command Window


4. The Simulink interface should now appear as shown below in Figure 12.2.

13 | P a g e
Figure 2-3-2: Simulink Interface
5. The Simulink Library Browser window should now appear on the screen. Most of the blocks needed
for modeling basic systems can be found in the subfolders of the main "Simulink" folder (opened by
clicking on the "+" in front of "Simulink").
2.4 Basic Elements
There are two major classes of elements in Simulink: blocks and lines. Blocks are used to generate, modify,
combine, output, and display signals. Lines are used to transfer signals from one block to another.

2.4.1 Blocks
The subfolders underneath the "Simulink" folder indicate the general classes of blocks available for us to
use:
1. Continuous: Linear, continuous-time system elements (integrators, transfer functions, state-space
models, etc.)
2. Discrete: Linear, discrete-time system elements (integrators, transfer functions, state-space models,
etc.)
3. Functions & Tables: User-defined functions and tables for interpolating function values
4. Math: Mathematical operators (sum, gain, dot product, etc.)
5. Nonlinear: Nonlinear operators (coulomb/viscous friction, switches, relays, etc.)
6. Signals & Systems: Blocks for controlling/monitoring signal(s) and for creating subsystems
7. Sinks: Used to output or display signals (displays, scopes, graphs, etc.)
8. Sources: Used to generate various signals (step, ramp, sinusoidal, etc.)

14 | P a g e
Blocks have zero to several input terminals and zero to several output terminals. Unused input terminals are
indicated by a small open triangle. Unused output terminals are indicated by a small triangular point. The
block shown below has an unused input terminal on the left and an unused output terminal on the right.

2.4.2 Lines
Lines transmit signals in the direction indicated by the arrow. Lines must always transmit signals from the
output terminal of one block to the input terminal of another block. One exception to this is that a line can
tap off of another line. This sends the original signal to each of two (or more) destination blocks, as shown
below:

Lines can never inject a signal into another line; lines must be combined through the use of a block such as
a summing junction. A signal can be either a scalar signal or a vector signal. For Single-Input, Single-Output
systems, scalar signals are generally used. For Multi-Input, Multi-Output systems, vector signals are often
used, consisting of two or more scalar signals. The lines used to transmit scalar and vector signals are
identical. The type of signal carried by a line is determined by the blocks on either end of the line.
2.5 Building a System
To demonstrate how a system is represented using Simulink, we will build the block diagram for a simple
model consisting of a sinusoidal input multiplied by a constant gain, which is shown below:

Figure 12-5-1 Building a System


This model will consist of three blocks: Sine Wave, Gain, and Scope. The Sine Wave is a Source Block from
which a sinusoidal input signal originates. This signal is transferred through a line in the direction indicated
by the arrow to the Gain Math Block. The Gain block modifies its input signal (multiplies it by a constant
value) and outputs a new signal through a line to the Scope block. The Scope is a Sink Block used to display
a signal (much like an oscilloscope). We begin building our system by bringing up a new model window in
which to create the block diagram. This is done by clicking on the "New Model" button in the toolbar of the

15 | P a g e
Simulink Library Browser (looks like a blank page). Building the system model is then accomplished through
a series of steps:
 The necessary blocks are gathered from the Library Browser and placed in the model window.
 The parameters of blocks are then modified to correspond with the system we are modeling.
 Finally, the blocks are connected with lines to complete the model.

Each of these steps will be explained in detail using our example system. Once a system is built, simulations
are run to analyze its behavior.

2.5.1 Gathering Blocks


Each of the blocks we will use in our example model will be taken from the Simulink Library Browser. To
place the Sine Wave block into the model window, follow these steps:

1. Click on the "+" in front of "Sources" (this is a subfolder beneath the "Simulink" folder) to display
the various source blocks available for us to use.
2. Scroll down until you see the "Sine Wave" block. Clicking on this will display a short explanation of
what that block does in the space below the folder list:

Figure 12-5-1-2 Gathering Blocks 1


To insert a Sine Wave block into your model window, click on it in the Library Browser and drag the block
into your workspace. The same method can be used to place the Gain and Scope blocks in the model window.
The "Gain" block can be found in the "Math" subfolder and the "Scope" block is located in the "Sink"
subfolder. Arrange the three blocks in the workspace (done by selecting and dragging an individual block to
a new location) so that they look similar to the following:

16 | P a g e
Figure 12-5-1-3 Gathering Blocks 2
2.5.2 Modifying the Blocks
Simulink allows us to modify the blocks in our model so that they accurately reflect the characteristics of the
system we are analyzing. For example, we can modify the Sine Wave block by double-clicking on it. Doing
so will cause the following window to appear:

Figure 12-5-2-1 Modifying Blocks 1


This window allows us to adjust the amplitude, frequency, and phase shift of the sinusoidal input. The
"Sample time" value indicates the time interval between successive readings of the signal. Setting this value
to 0 indicates the signal is sampled continuously.

Let us assume that our system's sinusoidal input has:


 Amplitude = 2
 Frequency = pi
 Phase = pi/2
Enter these values into the appropriate fields (leave the "Sample time" set to 0) and click "OK" to accept
them and exit the window. Note that the frequency and phase for our system contain 'pi' (3.1415...). These

17 | P a g e
values can be entered into Simulink just as they have been shown. Next, we modify the Gain block by double-
clicking on it in the model window. The following window will then appear:

Figure 12-5-2-2 Modifying Blocks 2


Note that Simulink gives a brief explanation of the block's function in the top portion of this window. In the
case of the Gain block, the signal input to the block (u) is multiplied by a constant (k) to create the block's
output signal (y). Changing the "Gain" parameter in this window changes the value of k. For our system, we
will let k = 5. Enter this value in the "Gain" field, and click "OK" to close the window. The Scope block
simply plots its input signal as a function of time, and thus there are no system parameters that we can change
for it. We will look at the Scope block in more detail after we have run our simulation.

2.5.3 Connecting the Blocks


For a block diagram to accurately reflect the system we are modeling, the Simulink blocks must be properly
connected. In our example system, the signal output by the Sine Wave block is transmitted to the Gain block.
The Gain block amplifies this signal and outputs its new value to the Scope block, which graphs the signal
as a function of time. Thus, we need to draw lines from the output of the Sine Wave block to the input of the
Gain block, and from the output of the Gain block to the input of the Scope block.
Lines are drawn by dragging the mouse from where a signal starts (output terminal of a block) to where it
ends (input terminal of another block). When drawing lines, it is important to make sure that the signal
reaches each of its intended terminals. Simulink will turn the mouse pointer into a crosshair when it is close
enough to an output terminal to begin drawing a line, and the pointer will change into a double crosshair
when it is close enough to snap to an input terminal. A signal is properly connected if its arrowhead is filled
in. If the arrowhead is open, it means the signal is not connected to both blocks. To fix an open signal, you
can treat the open arrowhead as an output terminal and continue drawing the line to an input terminal in the
same manner as explained before.

Properly Connected Signal Open Signal


Figure 12-5-3-1 Connecting Blocks 1
When drawing lines, you do not need to worry about the path you follow. The lines will route themselves
automatically. Once blocks are connected, they can be repositioned for a neater appearance. This is done by
clicking on and dragging each block to its desired location (signals will stay properly connected and will re-

18 | P a g e
route themselves). After drawing in the lines and repositioning the blocks, the example system model should
look like:

Figure 12-5-3-2 Connecting Blocks 2


In some models, it will be necessary to branch a signal so that it is transmitted to two or more different input
terminals. This is done by first placing the mouse cursor at the location where the signal is to branch. Then,
using either the CTRL key in conjunction with the left mouse button or just the right mouse button, drag the
new line to its intended destination. This method was used to construct the branch in the Sine Wave output
signal shown below:

Figure 12-5-3-3 Connecting Blocks 3


The routing of lines and the location of branches can be changed by dragging them to their desired new
position. To delete an incorrectly drawn line, simply click on it to select it, and hit the DELETE key.

2.5.4 Running Simulations


Now that our model has been constructed, we are ready to simulate the system. To do this, go to the
Simulation menu and click on Start, or just click on the "Start/Pause Simulation" button in the model window
toolbar (looks like the "Play" button on a VCR). Because our example is a relatively simple model, its
simulation runs almost instantaneously. With more complicated systems, however, you will be able to see
the progress of the simulation by observing its running time in the the lower box of the model window.
Double-click the Scope block to view the output of the Gain block for the simulation as a function of time.

19 | P a g e
Once the Scope window appears, click "Autoscale" button in its toolbar (looks like a pair of binoculars) to
scale the graph to better fit the window. Having done this, you should see the following:

Figure 12-5-4-1 Running Simulations 1


Note that the output of our system appears as a cosine curve with a period of 2 seconds and amplitude equal
to 10. Does this result agree with the system parameters we set? Its amplitude makes sense when we consider
that the amplitude of the input signal was 2 and the constant gain of the system was 5 (2 x 5 = 10). The
output's period should be the same as that of the input signal, and this value is a function of the frequency
we entered for the Sine Wave block (which was set equal to pi). Finally, the output's shape as a cosine curve
is due to the phase value of pi/2 we set for the input (sine and cosine graphs differ by a phase shift of pi/2).
What if we were to modify the gain of the system to be 0.5? How would this affect the output of the Gain
block as observed by the Scope? Make this change by double-clicking on the Gain block and changing the
gain value to 0.5. Then, re-run the simulation and view the Scope (the Scope graph will not change unless
the simulation is re-run, even though the gain value has been modified). The Scope graph should now look
like the following:

Figure 12-5-4-2 Running Simulations 2

20 | P a g e
Note that the only difference between this output and the one from our original system is the amplitude of
the cosine curve. In the second case, the amplitude is equal to 1, or 1/10th of 10, which is a result of the gain
value being 1/10th as large as it originally was.
2.6 Implementation of Modulation
Now we introduce the spectrum analyzer as used in frequency domain analysis. To identify various types of
linear modulated waveforms in time and frequency domain representations the following procedure must be
followed and to implement theoretically functional circuits using the Communications Module Design
System (CMDS).
2.6.1 Equipment List
 PC with MATLAB and Simulink
 Spectrum Analyzer and Function Generator.

This section deals with looking at the spectrum of simple waves. We first look at the spectrum of a simple
sine wave. To Start Simulink: Start MATLAB then type Simulink on the command line. A Simulink Library
Window opens up as shown below:

Figure 12-6-1-1: Spectrum of a Simple Sine Wave

21 | P a g e
Figure 12-6-1-2: Design for Viewing the Spectrum of a Simple Sine Wave
Figure 12-6-1-3 shows the time-domain sine wave and the corresponding frequency domain is shown in
Figure 12-6-1-4. The frequency domain spectrum is obtained through a buffered-FFT scope, which
comprises of a Fast Fourier Transform of 128 samples which also has a buffering of 64 of them in one frame.
The property block of the B-FFT is also displayed in figure 12-6-1-4.

Figure 12-6-1-3 Sine Wave - Time Domain

22 | P a g e
Figure 12-6-1-4 Sine Wave – Frequency Domain

From the property box of the B-FFT scope the axis properties can be changed and the Line properties can be
changed. The line properties are not shown in the above. The Frequency range can be changed by using the
frequency range pop down menu and so can be the y-axis the amplitude scaling be changed to either real
magnitude or the dB (log of magnitude) scale. The upper limit can be specified as shown by the Min and
Max Y-limits edit box. The sampling time in this case has been set to 1/5000.
Note: The sampling frequency of the B-FFT scope should match with the sampling time of the input time
signal. Also as indicated above the FFT is taken for 128 points and buffered with half of them for an overlap.

Calculating the Power: The power can be calculated by squaring the value of the voltage of the spectrum
analyzer.

Note: The signal analyzer if chosen with half the scale, the spectrum is the single-sided analyzer, so the
power in the spectrum is the total power.
Similar operations can be done for other waveforms – like the square wave, triangular. These signals can be
generated from the signal generator block.

Waveform Multiplication (Modulation)


The equation 𝑦 = 𝑘𝑚 𝑐𝑜𝑠2(2𝜋(1000)𝑡) was implemented as in fig. 12.6-1-5 peak to peak voltage of the
input and output signal of the multiplier was measured. Then km can be computed as
𝑉𝑝𝑝 (2𝑘𝐻𝑧)
𝑘𝑚 = ∗ 2 = 0.5
𝑉𝑝𝑝 (1𝑘𝐻𝑧)

23 | P a g e
Figure12-6-1-4: Property box of the Spectrum Analyzer

24 | P a g e
Figure 12-6-1-5 Modulation
The spectrum of the output when km=1 was shown below. The following figure demonstrates the waveform
multiplication. A sine wave of 1kHz is generated using a sine wave generator and multiplied with a replica
signal. The input signal and the output are shown in figures. The input signal as generated by the sine wave
is shown in figure.

The output of the multiplier is shown in figure and the spectral output is shown in figure. It can be seen that
the output of the multiplier in time domain is basically a sine wave but doesn’t have the negative sides. Since
they get cancelled out in the multiplication.

Figure 12-6-1-6 Multiplier Output


The spectral output of the spectrum is shown below. It can be seen that there are two side components in
spectrum. The components at fc + fm and –(fc + fm) can be seen along with a central impulse.

25 | P a g e
Figure 12-6-1-7 Multiplier Spectrum
If a DC component was present in the input waveform, then

𝑦 = 𝑘𝑚 ∗ (𝑐𝑜𝑠(2𝜋(1,000)𝑡) + 𝑉𝑑𝑐 )2
2
= 𝑘𝑚 ∗ (𝑐𝑜𝑠 2 (2𝜋(1,000)𝑡) + 2𝑐𝑜𝑠(2𝜋(1000)𝑡) ∗ 𝑉𝑑𝑐 + 𝑉𝑑𝑐 )

The effect of adding a dc component to the input has the overall effect of raising the amplitude of the 2KHz
component and decreases the 2KHz component. However, for a value of Vdc = 0.1V, the 1KHz component
reduces and for any other increase in the Vdc value, the 1KHz component increases.
1

0.9

0.8

0.7

0.6
Magnitude

0.5

0.4

0.3

0.2

0.1

0
-2500 -2000 -1500 -1000 -500 0 500 1000 1500 2000 2500
Frequncy

Figure 12-6-1-8 Magnitude v/s Frequency Plot

26 | P a g e
2.7 Lab Outcomes
At the end of this lab you should know following:
1. Simulink Handling for Communication Systems
2. Building communication systems in Simulink
3. Time domain analysis of a system in MATLAB
4. Frequency domain analysis of a system in MATLAB
5. Performing modulation through Communications toolbox

27 | P a g e
LAB 2 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score

3.0 2.0 1.0 0


CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-44. PLO-45. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

28 | P a g e
Fourier Analysis and Spectrum Analysis of Signals

3.1 Apparatus
 DC power Supply (726 86)
 Frequency Synthesizer (736 031)
 Spectrum Analyzer
 Oscilloscope
3.2 Introduction
In mathematics, Fourier transform (FT) is an operation that transforms one complex-valued function of a
real variable into another and is used for the aperiodic signals. For periodic signals we use the fourier series.
Aperiodic signals can be converted to periodic signals by limiting them and repeating in a regular pattern
with same limits. In such applications as signal processing, the domain of original function is typically time
and is accordingly called the time domain. That of the new function is frequency, and so the Fourier domain
is often called frequency domain representation of the original function. It describes which frequencies are
present in the original function. This is in a similar spirit to the way that a chord of music can be described
by notes that are being played. In effect, the Fourier transform decomposes a function into series. The term
Fourier transform refers both to the frequency domain representation of a function and to the process or
formula that "transforms" one function into the other.
The Fourier transform/series and its generalizations are the subject of Fourier analysis. In this specific case,
both the time and frequency domains are unbounded linear continua. It is possible to define the Fourier
transform/series of a function of several variables, which is important for instance in the physical study of
wave motion and optics.
3.3 Theory
Every periodic signal which satisfies Dirac conditions can be represented by simple sine waves of different
frequency and amplitude. The numeric value of the frequency and the amplitude can be obtained by taking
the Fourier transform of the signal.
For our case frequency is not important, because it has nothing to do with the shape of the signal. It is fixed
in the frequency synthesizer. (e.g. if the frequency of first harmonic is “f” than the frequency of 2nd harmonic
is “2f” and so on). We are interested in Phase and amplitude only. Frequency Synthesizer (736 031) has been
set with cos terms so
 For cos terms set phase = 0
 For sin terms set phase = 90 (so that cos becomes sin)
 For –cos terms set phase = 180
 For –sin terms set phase = 270
3.4 Experiment
You have been assigned a signal (time domain) as mentioned below, take its Fourier transform to obtain the
numeric value of magnitude and frequency. This gives us the fourier series. Set these parameters on the
“Frequency Synthesizer (736 031)”. Attach the output of the synthesizer to the Oscilloscope and draw the
signal below.
Now we shall also see the effect of using more number of Fourier terms (harmonics). Creating the
symmetrical square wave on Frequency Synthesizer shall be shown to you in the lab, and then you have to
create a wave as assigned by the lab instructor.

29 | P a g e
Create your signal with all harmonics on, draw it and then starting from the highest frequency harmonic
switch off the harmonic component one by one and draw the result shown on the screen of the oscilloscope,
in the are given below.

TASK:

The Symmetrical Square wave signal: Fourier series of the wave is given as follows:

4A 1 1 1
[sin(2πft) + sin(2π3ft) + sin(2π5ft) + sin(2π7ft) … ]
π 3 5 7

n Phase Degree S(n) [Amplitude] V


1 90 5
2 0 0
3 90 1.67
4 0 0
5 90 1
6 0 0
7 90 0.71
8 0 0

Draw the waveforms:

With all harmonics on With only harmonic 7 off

With harmonics 7 and 5 off With all harmonics off except 1

Wave assigned to you


_____________________________________________________

Fourier Transform of the wave

_____________________________________________________

30 | P a g e
n Phase Degree S(n) [Amplitude] V
1
2
3
4
5
6
7
8

Draw the waveforms:

With all harmonics on With only harmonic ____ off

With _____ harmonics off With all harmonics off except ____

3.5 Lab Outcomes


At the end of this lab you should know following:
1. Understand frequency domain representation of a signal
2. Ability to analyze the effect of different harmonics on the signal
3. Understand the Fourier Transform representation of periodic signals.
4. Setup of the spectrum analyzer
5. Use of different operations through spectrum analyzer

3.6 Simulation Task


1. Implement Fourier Series of Rectangle Wave in MATLAB-SIMULINK
2. Display frequency spectrum of 500Hz Cosine Wave

31 | P a g e
LAB 3 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-46. PLO-47. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

32 | P a g e
Amplitude Modulation and Demodulation of Signals

4.1 Apparatus
 EMONA 101 Trainer Kit
4.2 Introduction
In an amplitude modulation (AM) communications system, speech and music are converted into an electrical
signal using a device such as a microphone. This electrical signal is called the message or baseband signal.
The message signal is then used to electrically vary the amplitude of a pure sine wave called the carrier
usually has a frequency that is much higher than the message's frequency. Figure below shows a simple
message signal and an unmodulated carrier. It also shows the result of amplitude modulating the carrier with
the message. Notice that the modulated carrier's amplitude varies above and below its unmodulated
amplitude.

Figure 5-2-1: Amplitude Modulation Waveform


4.2.1 Envelope Detection
Figure below shows the AM signal but with a dotted line added to track the modulated carrier's positive
peaks and negative peaks. These dotted lines are known in the industry as the signal's envelopes. If you look
at the envelopes closely you'll notice that the upper envelope is the same shape as the message. The lower
envelope is also the same shape but upside-down (inverted).

33 | P a g e
Figure 5-2-1-1: Envelope Detection
4.3 Mathematical Modeling
In Communication Theory, the mathematical model that defines The AM signal is:

AM = (DC + message) * the carrier

When the message is a simple sine wave (like in Figure 4-2-1) the equation's solution (which necessarily
involves some Trigonometry that is not shown here) tells us that the AM signal consists of three sine waves:

 One at the carrier frequency


 One with a frequency equal to the sum of the carrier and message frequencies
 One with a frequency equal to the difference between the carrier and message frequencies

In other words, for every sine wave in the message, The AM signal includes a pair of sine waves - one above
and one below the carrier's frequency. Complex message signals such as speech and music are made up of
thousands sine waves and so the AM signal includes thousands of pairs of sine waves straddling carrier.
These two groups of sine waves are called the side bands and so AM is known as double-sideband full carrier
(DSBFC). Importantly, it's clear from this discussion that the AM signal doesn't consist of any signals at the
message frequency. This is despite the fact that the AM signal's envelopes are the same shape as the message.
4.4 The Experiment
In the experiment the main aim is to visualize how amplitude modulation is achieved practically satisfying
the mathematical model and communication theory.

1. Set the Trigger Source control to the CH1 (or INT) position.
2. the Mode control is set to the CH1 position.
3. Locate the Adder module and turn its G and g controls fully anti-clockwise.
4. Locate the Variable DCV module and turn its DC Voltage control almost fully anti-clockwise.
5. Set the connections as shown in Figure 5-4-1:

34 | P a g e
Figure 5-4-1: Message for Amplitude Modulation
The set-up in Figure 5-4-1 can be represented by the block diagram in Figure 5-4-2. It implements the
highlighted part of the equation:

AM = (DC + message) × the carrier.

Figure 5-4-2: Block Diagram of Message for AM


At the moment, the scope should just be showing a flat trace because the Adder module’s output is 0V. Once
you’ve completed steps mentioned ahead , the equation will have the following values:
AM = (1VDC + 1Vp-p 2kHz sine) × the carrier.

35 | P a g e
Now perform following steps for Amplitude modulation of the message:

1. Set the scope’s Channel 1 Vertical Attenuation control to the 0.5V/div position.
2. Use the scope’s Channel 1 Vertical Position control to move the trace so that it lines up with the
horizontal line in the middle of the scope’s screen.
3. While watching the Adder module’s output on the scope, turn its g control clockwise until the DC
level is 1V.
4. While watching the Adder module’s output on the scope, turn its G control clockwise to obtain a
1Vp-p sine wave.
5. Now modify the above set-up as shown below. Do not disconnect the previous connections.

Figure 5-4-3: Amplitude Modulation


The modified equation now for AM is:
AM = (DC + message) × the carrier.
The block diagram for the AM is now:

36 | P a g e
TASK:

Draw the observed waveform:

4.5 Amplitude Demodulation


Recovering the original message from a modulated carrier is called demodulation and this is the main purpose
of communications and telecommunications receivers. The circuit that is widely used to demodulate AM
signals is called an envelope detector. The block diagram of an envelope detector is shown in Figure 5-5-1.

37 | P a g e
Figure 5-5-1: Amplitude Demodulation Block Diagram
As you can see, the rectifier stage chops the AM signal in half letting only one of its envelopes through (the
upper envelope in this case but the lower envelope is just as good). This signal is fed to an RC LPF which
tracks the peaks of its input. When the input to the RC LPF is a rectified AM signal, it tracks the signal’s
envelope. Importantly, as the envelope is the same shape as the message, the RC LPF’s output voltage is also
the same shape as the message and so the AM signal is demodulated.

A limitation of envelope detector shown in Figure 5-2-1-1 is that it cannot accurately recover the message
from over-modulated AM signals. To explain, recall that when an AM carrier is over-modulated the signal’s
envelope is no-longer the same shape as the original message. Instead, the envelope is distorted and so, by
definition, this means that the envelope detector must produce a distorted version of the message.
4.6 The Experiment
Modify Figure 5-4-3 as shown below. Make sure not to disassemble the previous connections.

Figure 5-6-1: Amplitude Demodulation Connections


TASK:

Draw the block diagram of Amplitude Demodulation as performed above:

38 | P a g e
4.7 Lab Outcomes
At the end of this lab you should know following:
1. Differentiation between the message signal and carrier signal.
2. Modulation of signal amplitude.
3. Demodulation of signal amplitude.
4.8 Simulation Task
1. Implement AM modulation demodulation in MATLAB. Message signal is 2KHz Sine wave
whereas carrier is 8 KHz Sine wave.

39 | P a g e
LAB 5 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-48. PLO-49. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

40 | P a g e
Double Side-Band Suppressed Carrier Modulation
Demodulation of Signals

5.1 Apparatus
 EMONA 101 Trainer Kit
5.2 Introduction
DSBSC is a modulation system similar but not exactly AM (which was explored in last experiment).
Like AM, DSBSC uses a microphone or some other transducer to convert speech and music to an electrical
signal called the message or baseband signal. The message signal is then used to electrically vary the
amplitude of a pure sinewave called the carrier. And like AM, the carrier usually has a frequency that is
much higher than the message’s frequency.
Figure 6-2-1 below shows a simple message signal and an unmodulated carrier. It also shows the result of
modulating the carrier with the message using DSBSC.

Figure 6-2-1: DSBSC Waveform


So far, there doesn’t appear to be much difference between AM and DSBSC. However, consider Figure 6-
2-2. It is the DSBSC signal (same one as Figure 5-2-1’s last figure) but with dotted lines added to track the
signal’s envelopes (that is, its positive peaks and negative peaks). If you look at the envelopes closely you’ll
notice that they’re not the same shape as the message as is the case with AM

41 | P a g e
Figure 6-2-2: DSBSC Envelope Detection
Instead, alternating halves of the envelopes form the same shape as the message as shown in Figure 6-2-3.

Figure 6-2-3: DSBSC Alternating Half Envelopes


Another way that DSBSC is different to AM can be understood by considering the mathematical model that
defines the DSBSC signal:
DSBSC = the message × the carrier

5.3 Difference between DSBSC and AM


When the message is a simple sinewave (like in Figure 1) the equation’s solution (which necessarily involves
some trigonometry) tells us that the DSBSC signal consists of two sinewaves:

 One with a frequency equal to the sum of the carrier and message frequencies
 One with a frequency equal to the difference between the carrier and message frequencies

Importantly, the DSBSC signal doesn’t contain a sinewave at the carrier frequency. This is an important
difference between DSBSC and AM.
That said, as the solution to the equation shows, DSBSC is the same as AM in that a pair of sinewaves is
generated for every sinewave in the message. And, like AM, one is higher than the unmodulated carrier’s
frequency and the other is lower. As message signals such as speech and music are made up of thousands of
sinewaves, thousands of pairs of sinewaves are generated in the DSBSC signal that sit on either side of the
carrier frequency. These two groups are called the sidebands.
So, the presence of both sidebands but the absence of the carrier gives us the name of this modulation method
- double-sideband, suppressed carrier (DSBSC).

The carrier in AM makes up at least 66% of the signal’s power but it doesn’t contain any part of the original
message and is only needed for tuning. So by not sending the carrier, DSBSC offers a substantial power
saving over AM and is its main advantage.

42 | P a g e
5.4 The Experiment
Use the same equipment as in experiment for Amplitude Modulation. Set-up the assembly as shown in Figure
6-4-1 to generate a DSBSC:

Figure 6-4-1: DSBSC Generation


Figure 6-4-1 can be represented by the block diagram in Figure 6-4-2. It implements the entire equation:
DSBSC = the message × the carrier.

Figure 6-4-2: DSBSC Block Diagram


With values, the equation is:
DSBSC = 4Vp-p 2kHz sine × 4Vp-p 100kHz sine.

1. Adjust the scope’s Timebase control to view two or so cycles of the Master
Signals module’s 2kHz SINE output.
2. Set the scope’s Mode control to the DUAL position to view the DSBSC
signal out of the Multiplier module as well as the message signal.
3. Set the scope’s Channel 1 Vertical Attenuation control to the 1V/div
position and the Channel 2 Vertical Attenuation control to the 2V/div
position.
4. Draw the waveform of DSBSC below:

43 | P a g e
5.5 DSBSC Demodulation
Unfortunately, the envelope detector cannot be used to demodulate a DSBSC signal.
To understand why, recall that the envelope detector outputs a signal that is a copy of its input’s envelope.
This works well for demodulating AM because the signal’s envelopes are the same shape as the message that
produced it in the first place. However, recall that a DSBSC signal’s envelopes are not the same shape as the
message.
Instead, DSBSC signals are demodulated using a circuit called a product detector (though product
demodulator is a more appropriate name) and its basic block diagram is shown in Figure 6-5-1. Other names
for this type of demodulation include a synchronous detector and switching detector.

44 | P a g e
Figure 6-5-1: DSBSC Demodulation Block Diagram
As its name implies, the product detector uses multiplication and so mathematics is necessary to explain its
operation. The incoming DSBSC signal is multiplied by a pure sine wave that must be the same frequency
as the DSBSC signal’s suppressed carrier. This sine wave is generated by the receiver and is known as the
local carrier.

5.6 DSBSC Demodulation Mathematics


To see why the above mentioned process recovers the message, let’s describe product detection
mathematically:

DSBSC demodulator’s output = the DSBSC signal × the local carrier

Importantly, recall that DSBSC generation involves the multiplication of the message with the carrier which
produces sum and difference frequencies. That being the case, this information can be substituted for the
DSBSC signal and the equation rewritten as:

DSBSC demodulator’s output = [(carrier + message) + (carrier – message)] × carrier

When the equation is solved, we get four sine waves with the following frequencies:

 Carrier + (carrier + message)


 Carrier + (carrier - message)
 Carrier - (carrier + message) which simplifies to just the message
 Carrier - (carrier - message) which also simplifies to just the message

(If you’re not sure why these sine waves are produced, it’s important to remember that for every pair of pure
sine waves that are multiplied together, two completely new sine waves are generated. One has a frequency
equal to the sum of the original sine waves’ frequencies and the other has a frequency equal to their
difference.)

Importantly, notice that two of the products are sine waves at the message frequency. In other words, the
message has been recovered. As the two message signals are in phase, they simply add together to make one
larger message.

45 | P a g e
5.7 The Experiment
Keeping the settings as mentioned by the instructor (if not you may ask) setup the following assembly:

Figure 6-7-1: DSBSC Demodulation Connections


TASK:
Draw the block diagram of the above assembly:

46 | P a g e
Draw the observed waveform:

We now have to recover the message using the product detector.


1. Locate the Tunable Low-pass Filter module and set its Gain control to about the middle of its travel.
2. Turn the Tunable Low-pass Filter module’s soft Cut-off Frequency Adjust control fully clockwise.
3. Modify the connections as shown in Figure 6-7-2

47 | P a g e
Figure 6-7-2: DSBSC Message Recovery Connections
The additions to the set-up in Figure 6-7-1 can be represented by the block diagram in Figure 6-7-3. The
multiplier module and the RC Low-pass Filter on the Utilities module are used to implement a product
detector which demodulates the original message from the DSBSC signal.

Figure 6-7-3: DSBSC Message Recovery Block Diagram


The entire set-up is represented by the block diagram in Figure 6-7-4. It highlights the fact that the
modulator’s carrier is “stolen” to provide the product detector’s local carrier. This means that the two carriers
are synchronized which is necessary for DSBSC communications to work.

48 | P a g e
Figure 6-7-4: DSBSC Complete Demodulation Block Diagram
5.8 Lab Outcomes
At the end of this lab you should know following:
1. Differentiation between the DSBSC and AM.
2. Double Side Band Suppressed Carrier.
3. Recovering the message from DSBSC Demodulation.
5.9 Simulation Task
2. Implement DSB-SC modulation demodulation in MATLAB. Message signal is 2KHz Sine wave
whereas carrier is 8 KHz Sine wave.

49 | P a g e
LAB 5 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-410. PLO-411. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________


Date _____________________

50 | P a g e
Single Side-Band Suppressed Carrier Modulation
Demodulation of Signals

6.1 Apparatus
 EMONA 101 Trainer Kit
6.2 Introduction
Comparing the two communications systems considered earlier in this manual, DSBSC offers considerable
power savings over AM (at least 66%) because a carrier is not transmitted. However, both systems generate
and transmit sum and difference frequencies (the upper and lower sidebands) and so they have the same
bandwidth as each other.
As its name implies, the Single Sideband Suppressed Carrier (SSBSC or just SSB) system transmits only
one sideband. In other words, SSB transmits either the sum or the difference frequencies but not both.
Importantly, it doesn’t matter which sideband is used because they both contain all of the information in the
original message.
In transmitting only one sideband, SSB requires only half the bandwidth of DSBSC and AM which is a
significant advantage.
Figure 7-2-1 shows a simple message signal and an unmodulated carrier. It also shows the result of
modulating the carrier with the message using SSBSC. If you look closely, you’ll notice that the modulated
carrier is the same shape as the message but is not the same frequency as either the message or the carrier.

Figure 7-2-1: SSBSC Waveform

51 | P a g e
6.3 Generating SSBSC
6.3.1 Filter Method:
A common method of generating SSB simply involves generating a DSBSC signal then using a filter to pick
out and transmit only one of the sidebands. This is known as the filter method. However, the two sidebands
in a DSBSC signal are close together in frequency and so specialised filters must be used. This means that
the filters for non-mainstream applications can be expensive.

6.3.2 Phasing Method:


Another way of generating SSB that is becoming increasingly popular is called the phasing method. This
uses a technique called phase discrimination to cancel out one of the sidebands at the generation stage
(instead of filtering it out afterwards).

6.3.3 Phasing Method Mathematics:


In communications theory, the mathematical model that defines this process is:

SSB = (message × carrier) + (message with 90° of phase shift × carrier with 90° of phase shift)

If you look closely at the equation you’ll notice that it’s the sum of two multiplications. When the message
is a simple sine wave the solution of the two multiplications tells us that four sine waves are generated.
Depending on whether the message’s phase shift is +90° or -90° their frequencies and phase differences are:

These… Or these…
Carrier + message Carrier + message
Carrier - message Carrier - message
Carrier + message Carrier + message (180° phase shifted)
Carrier - message (180° phase shifted) Carrier – message

Regardless of whether the message’s phase shift is +90° or -90°, when the four sine waves are added together,
two of them are in phase and add together to produce one sine wave (either carrier + message or carrier –
message) and two of the sine waves are phase inverted and completely cancel. In other words, the process
produces only a sum or difference signal (that is, just one sideband).

The block diagram representation of above explanation is shown in Figure 7-3-3-1

Figure 7-3-3-1: SSBSC Block Diagram


As SSB signals don’t contain a carrier, they must be demodulated using product detection in the same way
as DSBSC signals.

52 | P a g e
6.4 The Experiment
In this experiment you’ll use the Emona Telecoms-Trainer 101 to generate an SSB signal by implementing
the mathematical model for the phasing method. You’ll then use a product detector (with a stolen carrier) to
reproduce the message.

First we have to generate the SSBSC. For this follow the following steps:
1. Set up the scope per the instructions in Experiment 1. Ensure that its Trigger Source control is set to
the CH1 (or INT) position.
2. Set the scope’s Mode control to the DUAL or EXT position.
3. Setup the following assembly:

Figure 7-4-1: SSBSC Connections Step 1

The block diagram of above assembly is shown in figure 7-4-2:

Figure 7-4-2: SSBSC Block Diagram Step 1


To now generate two DSBSC for the generation of SSBSC (Refer to Figure 7-3-3-1). Follow the steps below:

53 | P a g e
1. Adjust the scope’s Timebase control to view two or so cycles of the two message signals.
2. Set the Phase Shifter module’s Phase Change control to the 180° position.
3. Set the Phase Shifter module’s Phase Adjust control to about the middle of its travel.
4. Check that the two message signals are out of phase with each other. (Note: At this stage, it doesn’t
matter what the phase difference is.)
5. Modify the set-up as shown in Figure 7-4-3. (Remember: Dotted lines show leads already in place.)

Figure 7-4-3: SSBSC Connections Step 2


The block diagram of above assembly is shown in Figure 7-4-4. It is used to multiply the two message signals
with two 100kHz sinewaves (the carriers) that are exactly 90° out of phase with each other.

Figure 7-4-4: SSBSC Block Diagram Step 2


Finally, to generate the SSBSC follow the steps below:

1. Use the scope to check that the lower Multiplier module’s output is a DSBSC signal.
2. Disconnect the scope’s Channel 2 input from the lower Multiplier module’s output and connect it to
the upper Multiplier module’s output.

54 | P a g e
3. Check that the upper Multiplier module’s output is a DSBSC signal as well.
4. Locate the Adder module and set its G and g controls to about the middle of their travel.
5. Modify the assembly according to Figure 7-4-5.

Figure 7-4-5: SSBSC Connections Step 3


The connections above can be represented by the block diagram Figure 7-4-6. The Adder module is used to
add the two DSBSC signals together. The phase relationships between the sine waves in the DSBSC signals
means that two of them (one in each sideband) reinforce each other and the remaining two cancel out each
other.

Figure 7-4-6: SSBSC Block Diagram Step 3

The signal out of the SSB modulator is highly unlikely to be an SSB signal at this stage. The reasons for this
are: the two messages are probably not exactly 90 degrees out of phase or the gain of adder module for both
of its inputs is not same.
The next part of the experiment gets you to make the fine adjustments necessary to turn the set-up into a true
SSB modulator.

55 | P a g e
For this follow the following steps:

1. Turn the Adder module’s G control fully anti-clockwise. Note: This removes the signal on the Adder
module’s A input from the set-up’s output.
2. Adjust the Adder’s g control to obtain a 4Vp-p output.
3. Disconnect the patch lead to the Adder module’s B input.Note: This removes the signal on the Adder
module’s B input from the set-up’s output.
4. Adjust the Adder’s G control to obtain a 4Vp-p output.
5. Reconnect the patch lead to the Adder’s B input.

The gain of the Adder module’s two inputs will now be nearly the same. Now:

6. Vary the Phase Shifter module’s Phase Adjust control left and right and observe the effect on the
envelopes of the set-up’s output.
7. Adjust the Phase Shifter module’s Phase Adjust control to make the envelopes as “flat” as possible.

The phase difference between the two messages will now be nearly 90°.

8. Tweak the Adder module’s G control to see if you can make the output’s envelopes flatter.
9. Tweak the Phase Shifter’s Phase Adjust control to see if you can make the output’s envelopes
flatter still.

Once the envelopes are as flat as you can get, the gain of the Adder module’s two inputs are very close to
each other and the phase difference between the two messages are very close to 90°.

10. Set the scope’s Timebase control to the 50µs/div position.


11. Activate the scope’s Sweep Magnification control. Tip: This control is located in different places
on different scopes. If you can’t find it or if you’re not sure you have the right control, ask the
instructor for assistance.

Use the scope’s Horizontal Position control to examine the viewable length of SSB signal closely.

12. Deactivate the scope’s Sweep Magnification control.

6.5 SSBSC Demodulation


In order to recover the message follow the steps below:

1. Locate the Tuneable Low-pass Filter module and set its Gain control to about the middle of its travel.
2. Turn the Tuneable Low-pass Filter module’s soft Cut-off Frequency Adjust control fully.
Modify the assembly of connections as in figure 7-5-1:

56 | P a g e
Figure 7-5-1: SSBSC Demodulation Connections

The above assembly can be shown in block diagram as in Figure 7-5-2. The Multiplier module and the RC
Low-pass Filter on the Utilities module are used to implement a product detector which demodulates the
original message from the SSB signal.

Figure 7-5-2: SSBSC Demodulation Block Diagram

57 | P a g e
Draw the observed waveform:

6.6 Lab Outcomes


At the end of this lab you should know following:
1. Differentiation between the SSBSC, DSBSC and AM.
2. Single Side Band Suppressed Carrier.
3. Recovering the message from SSBSC Demodulation.
6.7 Simulation Task
3. Implement SSB-SC modulation demodulation in MATLAB. Message signal is 2KHz Sine wave
whereas carrier is 8 KHz Sine wave.

58 | P a g e
LAB 7 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-4 PLO-4 12. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

59 | P a g e
Frequency Modulation of Signals

7.1 Apparatus
 EMONA 101 Trainer Kit
7.2 Introduction
A disadvantage of the AM, DSBSC and SSB communication systems is that they are susceptible to picking
up electrical noise in the transmission medium (the channel). This is because noise changes the amplitude of
the transmitted signal and the demodulators of these systems are affected by amplitude variations.
As its name implies, frequency modulation (FM) uses a message’s amplitude to vary the frequency of a
carrier instead of its amplitude. This means that the FM demodulator is designed to look for changes in
frequency instead. As such, it is less affected by amplitude variations and so FM is less susceptible to noise.
This makes FM a better communications system in this regard.
There are several methods of generating FM signals but they all basically involve an oscillator with an
electrically adjustable frequency. The oscillator uses an input voltage to affect the frequency of its output.
Typically, when the input is 0V, the oscillator outputs a signal at its rest frequency (also commonly called
the free-running or center frequency). If the applied voltage varies above or below 0V, the oscillator’s output
frequency deviates above and below the rest frequency. Moreover, the amount of deviation is affected by the
amplitude of the input voltage. That is, the bigger the input voltage, the greater the deviation.
Figure 8-2-1 shows a simple message signal (a bipolar square wave) and an un modulated carrier. It also
shows the result of frequency modulating the carrier with the message.

Figure 8-2-1: Frequency Modulation Waveform

There are a few things to notice about the FM signal.


1. Its envelopes are flat – recall that FM doesn’t vary the carrier’s amplitude.
2. Its period (and hence its frequency) changes when the amplitude of the message changes.

60 | P a g e
3. The message alternates above and below 0V, the signal’s frequency goes above and below the
carrier’s frequency. (Note: It’s equally possible to design an FM modulator to cause the frequency to
change in the opposite direction to the change in the message’s polarity.)

Before discussing FM any further, an important point must be made here. A square wave message has been
used in this discussion to help you visualize how an FM carrier responds to its message. In so doing, Figure
7-2-1 suggests that the resulting FM signal consists of only two sine waves (one at a frequency above the
carrier and one below). However, this isn’t the case.
This highlights one of the important differences between FM and the modulation schemes discussed earlier.
The mathematical model of an FM signal predicts that even for a simple sinusoidal message, the result is a
signal that potentially contains many sine waves. In contrast, for the same sinusoidal message, an AM signal
would consist of three sine waves, a DSBSC signal would consist of two and an SSBSC signal would consist
of only one. This doesn’t automatically mean that the bandwidth of FM signals is wider than AM, DSBSC
and SSBSC signals (for the same message signal). However, in the practical implementation of FM
communications, it usually is.
Finally, when reading about the operation of an FM modulator you may have recognized that there is a
module on the Emona Telecoms-Trainer 101 that operates in the same way - the VCO module. In fact a
voltage-controlled oscillator is sometimes used for FM modulation (though there are other methods with
advantages over the VCO but in this lab we will be focusing FM through VCO).
7.3 The Experiment
In this experiment you’ll generate a real FM signal using the VCO module on the Emona Telecoms-Trainer
101. First you’ll set up the VCO module to output an unmodulated carrier at a known frequency. Then you’ll
observe the effect of frequency modulating its output with a square wave. Finally, you’ll use a sine wave to
observe the spectral composition of an FM signal (in the time domain).

In this experiment FM modulating a square wave will be analyzed. For that purpose follow the steps below:

1. Locate the VCO module and turn its Gain control to about two thirds of its travel (about the position
of the number 2 on a clock face).
2. Set the VCO module’s Frequency Adjust control to about the middle of its travel.
3. Set the VCO module’s Range control to the LO position.
4. Now connect the setup as shown in Figure 8-3-1:

Figure 8-3-1: Frequency Modulation Connections Step 1


Now,
5. Set the scope’s Time base control to the 20µs/div position.

61 | P a g e
6. Adjust the VCO module’s Frequency Adjust control so that one cycle of its output is exactly 5
1
divisions. (Note: This sets the VCO module’s rest frequency to 10kHz (proof:  10,000 ))
5  20
7. Set the scope’s Time base control to the 0.1ms/div position. (Note: This will show about ten cycles
of the VCO module’s SINE output.)
8. Now modify the setup as shown in Figure 8-3-2:

Figure 8-3-2: Frequency Modulation Connections Step 2


The final setup 2 of FM can be shown through block diagram as in figure 8-3-3:

Figure 8-3-3: Frequency Modulation Block Diagram


After above perform the steps below:
9. Set the scope’s Mode control to the DUAL position.
10. If necessary, tweak the VCO module’s Gain control until you obtain an output from the VCO that’s
similar to the FM signal in Figure 1 (in the preliminary discussion).
11. Use the scope’s Channel 1 Vertical Position control to overlay the message with the FM signal and
compare them.

7.3.1 Spectral Composition of Sine Waves


Regardless of the type of message signal used the spectral composition of FM signals is rich in sine waves.
The next part of this experiment demonstrates this.
1. Set the scope’s Mode control to the CH2 position so that you’re only looking at the FM signal.
2. Disconnect the VCO module’s input from the Speech module’s output.
3. Modify the setup as shown in Figure 8-3-1-1:

62 | P a g e
Figure 8-3-1-1: FM-Spectral Composition of Sine Waves Connections

You should now be able to see a display that looks as shown in Figure 8-3-1-2:

Figure 8-3-1-2: FM -Spectral Composition of Sine Waves Waveform


If you don’t have a display similar to Figure 8-3-1-2, slowly turn the VCO module’s Gain control anti-
clockwise until you get a similar pattern.
When viewed this way you can clearly see the highest frequency sine wave that the FM modulator is
outputting, the lowest frequency sine wave and many of the sine waves in between.

63 | P a g e
Draw the observed waveform:

7.4 Lab Outcomes


At the end of this lab you should know following:
1. Importance of frequency modulation in communication systems
2. Frequency modulation visualization
3. Frequency modulation as a combination of spectral composition of sine waves.
7.5 Simulation Task
1. Implement Frequency Modulation in MATLAB. Use 2 KHz Sine wave as message signal.

64 | P a g e
LAB 8 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-413. PLO-414. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

65 | P a g e
Frequency Demodulation of Signals

8.1 Apparatus
 EMONA 101 Trainer Kit
8.2 Introduction
There are as many methods of demodulating an FM signal as there are of generating one. Examples include:
the slope detector, the Foster-Seeley discriminator, the ratio detector, the phase-locked loop (PLL), the
quadrature FM demodulator and the zero-crossing detector. It’s possible to implement several of these
methods using the Emona Telecoms-Trainer 101 but, for an introduction to the principles of FM
demodulation, only the zero-crossing detector is used in this experiment.
8.2.1 Zero Crossing Detector
The zero-crossing detector is a simple yet effective means of recovering the message from FM signals. Its
block diagram is shown in Figure 9-2-1-1.

Figure 9-2-1-1: Zero Crossing Detector Block Diagram


The received FM signal is first passed through a comparator to heavily clip it, effectively converting it to a
square wave. This allows the signal to be used as a trigger signal for the zero-crossing detector circuit (ZCD).
The ZCD generates a pulse with a fixed duration every time the squared-up FM signal crosses zero volts
(either on the positive or the negative transition but not both). Given the squared-up FM signal is
continuously crossing zero, the ZCD effectively converts the square wave to a rectangular wave with a fixed
mark time.
When the FM signal’s frequency changes (in response to the message), so does the rectangular wave’s
frequency. Importantly though, as the rectangular wave’s mark is fixed, changing its frequency is achieved
by changing the duration of the space and hence the signal’s mark/space ratio (or duty cycle). This is shown
in Figure 9-2-1-2 using an FM signal that only switches between two frequencies (because it has been
generated by a square wave for the message).

66 | P a g e
Figure 9-2-1-2: Zero Crossing Detector Waveforms
Pulse trains are actually made up of sine waves and, in the case of Figure 9-2-1-2, a DC voltage. The size of
the DC voltage is affected by the pulse train’s duty cycle. The greater its duty cycle, the greater the DC
voltage.
That being the case, when the FM signal in Figure 9-2-1-2 above switches between the two frequencies, the
DC voltage that makes up the rectangular wave out of the ZCD changes between two values. In others words,
the DC component of the rectangular wave is a copy of the square wave that produced the FM signal in the
first place. Recovering this copy is a relatively simple matter of picking out the changing DC voltage using
a low-pass filter.

8.3 Experiment
In this experiment you’ll use the Emona Telecoms-Trainer 101 to generate an FM signal using a VCO. Then
you’ll set-up a zero-crossing detector and verify its operation for variations in the message’s amplitude.
To experiment with FM demodulation you need an FM signal. The first part of the experiment gets you to
set one up. To make viewing the signals around the demodulator possible, we’ll start with a DC voltage for
the message.

In order to achieve this follow the steps below:


1. Locate the VCO module and turn its Gain control fully clockwise.
2. Set the VCO module’s Frequency Adjust control to about the middle of its travel.
3. Set the VCO module’s Range control to the LO position.
4. Connect the setup as shown in Figure 9-3-1:

67 | P a g e
Figure 9-3-1: FM Modulator Step 1
5. Set the scope’s Timebase control to view two or so cycles of the VCO module’s SINE output.
6. Adjust the VCO module’s SINE output to 10kHz. (Note: You do this by adjusting the signal’s period
1
to 100µs (recall that P  ))
f
7. Set the scope’s Trigger Source control to the CH2 position.
8. Set the scope’s Channel 1 and Channel 2 Input Coupling controls to the DC position.
9. Set the scope’s Mode control to the DUAL position.
10. Connect the setup as shown in Figure 9-3-2

Figure 9-3-2: FM Modulator Step 2

68 | P a g e
The block diagram representation is of FM signal is shown in Figure 9-3-3.The Variable DCV module is
being used to provide a simple DC message and the VCO module implements an FM modulator with a carrier
frequency of 10kHz.

Figure 9-3-3: FM Modulator Block Diagram


Vary the Variable DCV module’s DC Voltage control and check that the VCO module’s output frequency
changes accordingly.
For a variety of reasons, an important operating parameter of an FM modulator is its sensitivity. This is how
much the FM modulator’s output frequency deviates from the carrier (or rest) frequency for a given change
in input voltage. It is typically expressed in Hertz per volt (ΔHz/ΔV).
For the FM demodulator that you’ll wire in this experiment, the FM modulator’s output frequency must not
exceed about 15kHz. And, as the sinewave that you’ll use for the message later in the experiment is 4Vp-p
(or ±2V peak), this means that sensitivity must not be greater than 2.5kHz/volt.
The VCO module’s sensitivity can be adjusted using its GAIN control and the next part of the experiment
gets you to do so.
Following steps must be followed:
1. Set the Variable DCV module’s output to +2V.
2. Adjust the VCO module’s GAIN control for a 15kHz output. (Note: You do this by adjusting the
signal’s period to 66µs.)
3. Set the Variable DCV module’s output to -2V.
4. Measure the VCO module’s new output frequency. (Note: If the VCO module’s operation is linear,
the new output frequency should be about 5kHz.)

8.4 Setting up Zero Crossing Detector


1. Return the scope’s Trigger Source control to the CH1 (or INT) position.
2. Locate the Twin Pulse Generator module and turn its Width control fully anti-clockwise.
3. Set the Twin Pulse Generator module’s Delay control fully anti-clockwise.
4. Connect the set-up shown in Figure 9-4-1. (Note: Don’t dismantle the existing set-up.)

69 | P a g e
Figure 9-4-1: Zero Crossing Detector Connections
Now,
5. Set the scope’s Timebase control to the 2µs/div position.
6. Adjust the Twin Pulse Generator module’s Width control for an output pulse that is 12µs long. (Note:
Generally speaking, the longer the pulse the greater it’s DC component and, in the case of the zero-
crossing detector, the greater the size of the recovered message. However, the pulses cannot be too
long otherwise the circuit’s operation breaks down due to other performance parameters of the TPG
module. In this case, 12µs is a compromise.)
7. Return the scope’s Timebase control to its previous position. (Tip: If you’re not sure, try 50µs/div.)
8. Setup the assembly as in Figure 9-4-2 to the FM modulator. (Remember: Dotted lines show leads
already in place.)

Figure 9-4-2: FM Demodulator Connections

70 | P a g e
The FM Demodulator can be shown in Figure 9-4-3. The comparator on the Utilities module is used to clip
the FM signal, effectively turning it into a square wave. The positive edge-triggered Twin Pulse Generator
module is used to implement the zero-crossing detector. To complete the FM demodulator, the Baseband
LPF on the Channel Module is used to pick-out the changing DC component of the Twin Pulse Generator
module’s output.

Utilities Twin Pulse Baseband


module Generator LPF

FM Demodulated
ZCD
signal message
To Ch.2

Figure 9-4-3: FM Demodulator Block Diagram


Draw the observed waveform:

71 | P a g e
8.5 Lab Outcomes
At the end of this lab you should know following:
1. Methods of frequency demodulation
2. Zero crossing detector setup
3. Frequency demodulation using zero crossing detector.
8.6 Simulation Task
1. Implement Frequency Modulation demodulation in MATLAB

72 | P a g e
LAB 9 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
16. Analyzes
15. PLO-4
CLO-4 and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

73 | P a g e
Pulse Code Modulation

9.1 Apparatus
 DC power Supply (726 86)
 Function generator (726 96)
 Oscilloscope
 PCM modulator (736 101)
9.2 Introduction
PCM is the most widely used and most useful form of pulse modulations. It is a tool for converting analogue
signal to digital signal. There are two main steps in digitizing an analog signal. First step is to take the
appropriate samples of the signal and the second step is the quantization. Sampling is performed with the
help of a pulse train. Quantization usually requires other methods which are explained below:
9.2.1 PAM Signal
It is the signal which is only discrete in time and in amplitude it is constant. So, in a true sense it is not analog
and not completely discrete. Actually it is an intermediate stage. In order to convert this into a digital signal,
quantization and coding have to be performed on the signal.
9.2.2 Quantization
By quantization we mean the narrowing down of all possible signal values to finite number. Whereas the
PAM signal can assume any random signal value between the modulating limits of the PAM modulator, the
quantified signal generally demonstrates a stepped shape. The modulating range of the PCM modulator is
broken down into a fixed number of intervals. Each interval is represented by assigning one signal value
only. This is set representatively for all signal values, which occur in their respective interval.
The quantization process takes an infinite number of all possible, continuous signal values and reduces them
to a finite number. This quantization process also referred to as value discretization, always results in an
additional error. This inevitable quantization error can be considered as a noise phenomenon and is this called
quantization noise. The quantization distortion is influenced by the input signal type. In addition to this the
magnitude and number of quantization intervals also play a decisive role.
The quantization interval can be either equidistant discrete or logarithmic steps. In the case of equidistant
quantization intervals this is referred to as linear quantization. In the case of logarithmic steps this is called
non-linear quantization.
9.2.3 Encoding
Evidently a sampled, discrete value signal of this kind is unsuitable for transmission via a real, noise distorted
transmission channel. The digital signal at the output of the quantifier requires a shape better suited to the
relationships prevailing on the channel. The conversion process required for this is called encoding. Coding
constitutes the allocation of a specific mapping between the elements of two different character sets.
9.2.4 Companding
In the analog world companding is a method for improving audio reproduction by altering the dynamic range
of the signals. On outgoing transmission, it raises the amplitude of weak signals and lowers the amplitude of
strong signals. On incoming transmission, it restores the signal to its original form. Such techniques are used
in dbx and Dolby noise reduction, AM, FM and SSB radio as well as in voice and musical instrument
amplification to reduce feedback. In the digital world companding is a compression technique used in pulse
code modulation (PCM). It reduces the number of bits used to represent digital voice samples in the loudest
parts of the conversation. In telecommunication and signal processing companding (occasionally called

74 | P a g e
compansion) is a method of mitigating the detrimental effects of a channel with limited dynamic range. The
name is a portmanteau of compressing and expanding.

Compressor characteristics Expander characteristics


10 10

5 5
Output Region

Output Region
0 0

-5 -5

-10 -10
-10 -5 0 5 10 -10 -5 0 5 10
Input Region Input Region

Figure 10-2-4-1: Compressor and Expander Characteristics


9.3 The Experiment
Arrange the apparatus as directed by the lab instructor. By pressing the MODE button several times switch
to the operating mode: PCM linear quantization (recognizable when appropriate LEDs light up). Enable all
of the bits. For this press the push button SELECT until all (red) LEDs on the PCM modulator indicate active.
The toggle switch on the PCM demodulator must be set to CH2.
9.3.1 Linear Quantization
Enable the all 8-bits. Feed the DC signal into the input of PCM modulator from the potentiometer. Measure
the voltage at the input of the PCM modulator and at the output of the PCM demodulator.

 U1 = voltage at the input of the PCM modulator


 U2 = voltage at the output of the demodulator
 Code = read it from the LEDs of the demodulator

Note the reading in the tables and draw the graph between U1 and U2

U1 [V] U2 [V] Code U1 [V] U2 [V] Code


-9.5 1
-9 2
-8 3
-7 4
-6 5
-5 6
-4 7
-3 8
-3 9
-1 9.5
0

75 | P a g e
Now disable the three least significant bits and change the input voltage from -9.5 to + 9.5. Record the
reading in the following table and draw the graph between U1 and U2.

U1 [V] U2 [V] Code U1 [V] U2 [V] Code


-9.5 1
-9 2
-8 3
-7 4
-6 5
-5 6
-4 7
-3 8
-3 9
-1 9.5
0

9.3.2 Non- Linear Quantization


Enable all the LEDs at the demodulator.
9.3.3 Compressor Characteristics
By pressing the MODE pushbutton on the PCM modulator several times switch to the operating mode: PCM,
non-linear quantization (recognizable by the corresponding LEDs lighting up). The PCM demodulator
remains in linear operation. Record the readings and plot the graph as done before.

U1 [V] U2 [V] Code U1 [V] U2 [V] Code


-9.5 1
-9 2
-8 3
-7 4
-6 5
-5 6
-4 7
-3 8
-3 9
-1 9.5
0

9.3.4 Expander Characteristics


For this set the PCM modulator to linear quantization, the PCM demodulator to non-linear quantization.
Record readings and plot the graph as done before.

76 | P a g e
U1 [V] U2 [V] Code U1 [V] U2 [V] Code
-9.5 1
-9 2
-8 3
-7 4
-6 5
-5 6
-4 7
-3 8
-3 9
-1 9.5
0

In the previous experiments you have separately recorded compressor and expander characteristics
respectively. Each of the two transmission functions, by themselves, lead to signal distortion. However, in
standard operation they are both active simultaneously. Select the non-linear mode on both the modulator
and demodulator. Record the readings and plot the graph as done before.

U1 [V] U2 [V] Code U1 [V] U2 [V] Code


-9.5 1
-9 2
-8 3
-7 4
-6 5
-5 6
-4 7
-3 8
-3 9
-1 9.5
0

9.4 Lab Outcomes


At the end of this lab you should know following:
1. Pulse Code Modulation
2. Companding
3. Linear and non-linear quantization

77 | P a g e
LAB 9 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-417. PLO-418. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

78 | P a g e
Pulse Width Modulation Demodulation

10.1 Apparatus
 EMONA 101 Trainer Kit
 Function Generator
10.2 Introduction

when an analog signal is periodically sampled, the sampled signal is a complex waveform that consists of the original
analog signal plus aliases (also known es images). This has been comprehensively demonstrated in another DATEx
experiment using pulse amplitude modulation (PAM) but the fact is true for all pulse modulation schemes. Another
type of pulse modulation is called pulse-width modulation (PWM) or sometimes pulse- duration modulation
(PDM). To understand PWM, let’s consider a simple method for generating it that involves a comparator with
a sawtooth waveform for one of its inputs. This is shown in Figure 1 below.

Figure 1

Recall that the comparator amplifies the difference between the voltages on its two inputs by an extremely
large amount. So, when the instantaneous analog voltage is smaller than the instantaneous sawtooth voltage,
the comparator ‘s output is logic-0. And when the instantaneous analog voltage is larger than the
instantaneous sawtooth voltage, the comparator ‘s output is logic-1. That being the case, the comparator ‘s
output is a pulse train with a pulse-width that is a function of the size of the voltage on the analog input.
Figure 2 on the next page demonstrates this by comparing the comparator ‘s output for two DC voltages on
the analog input.

79 | P a g e
An example of the effect on the comparator’s output for a sinewave analog input is shown in
Figure 3 below.

Figure 3

At this point it‘s useful to highlight the difference between PWM and PAM signals in the time
domain. Recall that PAM produces a series of pulses with a fixed width but with an amplitude that
is proportional to the instantaneous analog input voltage. PWM on the other hand produces a
series of pulses at only one voltage (other than zero) but with a pulse-width that is proportional
to the instantaneous analog input voltage

80 | P a g e
A comparison of PWM and PAM signals in the frequency domain shows an interesting similarity between the
two butt also a critical difference. Both signals contain a copy of the original message and they both contain
modulated carriers at each of the pulse’s harmonics. However, the modulation of these “harmonic carriers“ is
different. The mathematical analysis of PAM signals shows that their harmonic carriers are DSBSC modulated
Whereas the mathematical analysis of PWM signals (not provided here) shows that their harmonic carriers are
phase modulated. As such, the signals spectra are quite different which explains why the signals look so
different in the time domain.

Despite the differences in the spectral composition of PWM and PAM signals, the fact that they both contain
q copy of the message means that the message can be recovered in the same way (that is, by using a low-
pass filter). Of course, for this demodulation technique to work, the Nyquist Semple Rate must be observed
in the first instance.

10.3 The Experiment

For this experiment you’ll set up a pulse-width modulator (PWM) using the Emona DATEx comparator
module. You’ll then verify its operation and determine its Limits using a DC inputst voltage. Next you’ll
observe the PWM‘s operation for an AC message signal using a 2kHz tone then speech. Finally, you’ll
investigate the effects of reducing the effective sample rate below the Nyquist Sample Rate for the
message.
Part A - Generating the sawtooth waveform

Figure 4 Generating Sawtooth waveform

81 | P a g e
Plot the generated waveform in following table

82 | P a g e
Part B - Verifying the operation of the PWM using a DC analog input voltage
The next part of the experiment gets you to verify the operation of the comparator as a
pulse-width modulator using a DC analog input voltage. You’ll also experimentally determine
the lower and upper threshold voltages of the analog input that the PWM can reliably convert.

1. Modify the set-up es shown in Figure below.

6-6 O• 2008 Emona Instruments Experiment 6 - Pulse-width modulation 6 demodulation


Draw the output diagram below.

6-6 O• 2008 Emona Instruments Experiment 6 - Pulse-width modulation 6 demodulation


Part C - PWM operation with an AC analog input signal (a "message”)
The next part of the experiment gets you to verify the operation of the pulse-width
modulator using an AC analog input voltage for the message. Specifically, you’ll
use a 2kHz sinewave.
However, before you do, the analog input must be adjusted so that it changes only
over the range of the sawtooth waveform’s peaks.

Modify the set-up es shown in Figure below.

The change to this set-up can be represented by the block diagram in Figure 11 on the
next page. The Master Signals module’s 2kHz SINE output is connected to the pulse-
width modulator’s input via the Adder module. The Adder module is used to add a DC

EE 361L – Communication System Lab Page 85


offset to the sinewave to push it up between the sawtooth waveform’s peaks. Also, notice
that you’re using the Variable Power Supplies‘ negative output voltage. This is because
the Adder module’s gain is negative and so the final DC offset is positive as required.
Question
In relation to the message, when is the PWM signal’s mark-space ratio biggest*

Question
Why does the mark-space ratio of the PWM‘s output signal become more uniform as
the size of the message is reduced*

10.4 Recovery of Massage Signal


As you have just seen, the pulse-width modulator output signal’s spectral composition
includes
q copies of the original message. So, assuming the Nyquist Sample Rate has been observed,
it is a relatively simple matter to recover the message using a low-pass filter. The next part
of the experiment demonstrates this.

Question
What’s the name of this distortion*

EE 361L – Communication System Lab Page 86


Question
Describe the spectral composition of Tunable Low-pass Filter module’s output.

10.5 Simulation Task


1. Implement PWM in MATLAB

EE 361L – Communication System Lab Page 87


LAB 10 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score


3.0 2.0 1.0 0
CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
20. Analyzes
19. PLO-4
CLO-4 and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

EE 361L – Communication System Lab Page 88


Introduction to Shift Keying

11.1 Apparatus
 Emona 101 Trainer Kit
11.2 Introduction
The methods of communication or modulation which we have studied up till now are
valid for analog communication. To use such techniques for digital communication we
have to use the crunches of shift keying. Information can be transmitted purely by
switching a carrier on and off. The switching of carrier is called keying. As such you
could interpret the transmission of a message using smoke or light signals as keying. It is
typical of this method that the receiver or recipient of the message cannot decode the
message, unless he has the right code. In electrical communication engineering keying
means the modulation of a harmonic carrier with a digital signal. A harmonic carrier with
the form:
𝑆𝐶 (𝑡) = 𝐴𝐶 cos(2𝜋𝑓𝐶 𝑡 + Φ𝐶 )
The above equation has three parameters, all of which can be used for modulation.
 𝐴𝐶 : Amplitude
 𝑓𝐶 : Frequency
 Φ𝐶 : Phase
Accordingly, a distinction is drawn between the following 3 types of keying
 ASK: Amplitude Shift Keying
 FSK: Frequency Shift keying
 PSK: Phase Shift keying
The modulating, digital signal is binary, i.e. there are only 2 states which should be
transmitted using the harmonic carrier. Under this prerequisite this means that:
 ASK: Alternating between 2 amplitudes values of the carrier, e.g. changing from
0 to A
 FSK: Alternating between 2 defined carrier frequencies f1 and f2.
 PSK: Abrupt phase change of the carrier e.g. from Φ1 = 0° to Φ2 = 180°.
11.3 The Experiment
11.3.1 ASK Modulation
1. Use 2KHz Sine as carrier and 2KHz digital signal as message signal
2. Locate sequence generator and duel switch
3. Set up the apparatus as shown in 0000
4. Connect modulated signal to oscilloscope

EE 361L – Communication System Lab Page 89


Figure 11-3-1: Zero ASK Connections

Figure 11-3-2: Block Diagram of ASK

Notice that the ASK signal’s carrier and the Sequence Generator module’s clock are
the same frequency (2kHz). Moreover, notice that they’re from the same source –
the Master Signals modul.

Draw message signal and ASK modulated signal on following graph.

EE 361L – Communication System Lab Page 90


Question 1. What is the relationship between the digital signal and the presence of the
carrier in the ASK signal?

_____________________________________________________________________

Question 2. What is the ASK signal’s voltage when the digital signal is logic-0?

____________________________________________________________________

11.3.2 FSK Modulation


1. Use 2KHz digital signal as message signal
2. Locate sequence generator and function generator
3. Set up the apparatus as shown in 0000
4. Connect modulated signal to oscilloscope

Figure 11-3-3: FSK Connections

EE 361L – Communication System Lab Page 91


Figure 11-3-4: Block Diagram of FSK
Draw message signal and FSK modulated signal on following graph

Question 1. What’s the name for the VCO output frequency that corresponds with logic-
1s and 0s in the digital data?

____________________________________________________________________

Question 2. Based on your observations of the FSK signal, which of the two is the higher
frequency? Explain your answer?

_____________________________________________________________________

____________________________________________________________________

EE 361L – Communication System Lab Page 92


11.3.3 PSK Modulation
1. Use 100KHz Sine as carrier and 8KHz digital signal as message signal
2. Locate sequence generator and multiplier
3. Set up the apparatus as shown in 0000
4. Connect modulated signal to oscilloscope

Figure 11-3-5: PSK Connections

Figure 11-3-6: Block Diagram of PSK

EE 361L – Communication System Lab Page 93


Draw message signal and FSK modulated signal on following graph

Question 1. What happens to the BPSK signal on the data stream’s logic transitions?

____________________________________________________________________

With a choice of ASK, FSK and BPSK you might be wondering about which system
you’ll most likely see. All other things being equal, BPSK is the best performing system
in terms of its ability to ignore noise and so it produces the fewest errors at the receiver.
FM is the next best and AM is the worst. On that basis, you’d expect that BPSK is the
preferred system.
11.4 Lab Outcomes
At the end of this lab you should know following:
1. Amplitude Shift Keying- Modulation and Demodulation
2. Phase Shift Keying- Modulation and Demodulation
3. Frequency Shift Keying- Modulation and Demodulation
11.5 Simulation Task
1. Implement Shift Keyings in MATLAB

EE 361L – Communication System Lab Page 94


LAB 11 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score

3.0 2.0 1.0 0


CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-421. PLO-422. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

EE 361L – Communication System Lab Page 95


Hardware Implementation of PLL

12.1 Apparatus
 MC 14046B (Motorola)
 Oscilloscope
 Function generator
 Multi meter
 Double power supply (DC)
 Coupling board

12.2 Introduction

“Phase Lock loop is an electronically designed circuit which has linear output that is
phased locked with the phase of input signal with difference registered by Phase
Comparator controlled using Voltage Control Oscillator. The phase gets locked for
certain band of frequencies while shows non-linear behavior for other set of
Frequencies.”
Phase Lock Loop (PLL) has several applications in communication network of Radar
and GSM architecture while its major application is the demodulation of the FM
generated Signal. Based on its wide range of usage, many industries have generated
integrated circuits that have all in all solution including internal VCO, Phase Comparator
and LP filters.
In figure below the flow of processes that are taken in consideration for the design of
Phase Lock Loop are represented. It indicates 3 major steps starting from FM signal
Reception, in our case this is generated using Function Generator which is fed to VCO
section. Secondly, the signal is passed through the Low Pass Filter to take out the high
frequency components followed by gain or amplification section to get the original
signal at desirable value. This section has its advantages in advantages in real time
application and in major GSM/Satellite communication but in our experiment, it has
been avoided to reduce the complexity of the system. The Signal generated after step 2
is then fed and compared with the reference signal. Giving us linear state for certain
band of frequencies while the output behaves rather abnormally for other set of
frequencies. In doing so; we get the Acquisition and the Holding range of the Phase Lock
Loop. The important thing to consider here is that the acquisition range is always
imbedded in the holding range. The holding range is always greater than the acquisition
range.

EE 361L – Communication System Lab Page 96


Figure 1.2 Block Diagram of PLL Circuit

The figure shown above is the block diagram of the Phase Lock Loop with the
Input/Reference Signal as 𝑋𝑟 (t) and the output signal from VCO to be 𝐸𝑜 (t). Both of these
signals having varying phase whose difference is measured in the Phase Detector .
Mathematically the two signals can be represented as
𝑋𝑟 (t) = 𝐴𝑐 cos[ω𝑐 (t) +Ф(t)]

𝐸𝑜 (t) = 𝐴𝑣 sin[ω𝑐 (t) +Ф(t)]

Where Ф(t) and θ(t)] are the phase of the input and output signal respectively
The phase difference is calculated and then the accumulated signal is given to Low Pass
Filter (LPF) which removes the high frequency component of 2 ω𝑐 (t). In some of the
application a Notch filter may be required to cancel out a single unwanted frequency and
its ripple if there are any, generally notch is used to avoid electrical interference which
could be of 50Hz or 60 Hz. Similarly, there could be cascaded Low Pass Filters to
stabilize the output but that causes computational complexity of the system. The output
signal from the LPF is indicated by 𝐸𝑑 (t) which is proportional to the phase difference as
indicated in the expression 1.3. 𝐸𝑑 (t) Will behave linearly for small phase differences
while Ad is associated with the multiplier. The two major components i.e. Phase
Comparator and LPF are shown in Figure 1.3.

𝐸𝑑 (t) = ½𝐴𝑐 𝐴𝑣 𝐴𝑑 sin[Ф(t)+θ(t)]

Figure 1.3 Low Pass Filter Junction with Phase Comparator


12.3 Experimental Setup

With the wide range of applications of Phase Lock Loop, Integrated Circuits are made
that have all encompassing solution. All entities that are there for Solution of PLL are
embedded in a single IC. We have used MC14046B Motorola IC in out experiment and
its layout is shown in Figure 3.1[1].

EE 361L – Communication System Lab Page 97


Figure 3.1 MC1404B Used in PLL
3.1 Voltage Control Oscillator

Figure 3.2 Block Diagram of VCO


A Voltage Control Oscillator (VCO) is used to generate a frequency which is periodic
and in-accordance with the reference signal. Block diagram shown above is the
representation for VCO that is used in the experiment. There is couple of resistors that
are being used while taking different frequency references. The capacitor is connected in
position 6 and position 7 and the value of capitance is selected to be 271pF. Pin number
5 (INH) of the IC is the power saving function of IC and it has been grounded as a part
of experimental setup. Now Position 16 shown in Figure 3.1 is fed with 10V and is kept
constant throughout the experiment while the second power source whose Voltage can
be varied using potentiometer is connected to VCO in at Pin 9. 𝑉𝐶𝑂𝑜𝑢𝑡 is connected to
probe 2 of oscilloscope while the reference signal from the Function Generator is
connected to Probe 1 for its graphical display [1, 3].
3.2 Low Pass Filter Design

EE 361L – Communication System Lab Page 98


An external Low Pass Filter (LPF) is installed with the Voltage Controlled Oscillator to
remove the high frequency components and ripple effects of it. The Resistor used in the
setup is of 10 k-ohm while the capacitor that is connected is of capacitance 1nF as shown
in the Figure 3.3. The input of LPF is taken from point 2 of the IC while the output is
connected with the 𝑉𝐶𝑂𝑖𝑛 at Pin 9. It is often advisable to use a capacitor of value 4.7nF
as well for different more gated Phase Comparator.

Figure 3.3 External LPF connection with MC1404B

3.3 Voltage Divider and Phase Comparator

In the given integrated circuit of Motorola there are two phase comparators. First phase
comparator is using a Simple X-OR gate and its output is taken at pin 2 while more
Complex gating is employed for phase comparator with output at Pin13 as shown in
Figure 3.1. An additional voltage divider is also fabricated before the phase comparator
and the input of voltage divider is subjected to reference signal from Function Generator.
The phase difference is calculated by using Oscilloscope phase difference options of
channel 1 and channel 2 connected with Reference Signal and VCO signal respectively.
The overall layout of the design used is represented in the Figure 3.4 while the actual
implementation on Fabrication Board is shown in Figure 3.5.

Figure 3.4 Circuit Design Using MC1404B

12.4 Result and Analysis

Phase Lock Loop was approached in systematic manner to better understand the overall
system. The major tasks of it are defined as under.

EE 361L – Communication System Lab Page 99


4.1 Voltage Controlled Oscillator

Voltage Controlled Oscillator (VCO) is fabricated as mentioned in the section 2.2. VDD
is set at Fix peak to peak voltage of 10V while the 𝑉𝐶𝑂𝑖𝑛 is supplied with the varying
Voltage. Table 4.1 indicates the voltage with respect to frequency while Figure 4.1 is
tabular representation of the findings. Frequency is found using Oscilloscope and
Figure4.2 shows the representation of that.

Table4.1 Frequency with respect to Voltage

Volts Frequency
[V] [kHz]
0 204.1
1 210.1
2 256.8
3 304.4
4 352.1
5 394.4
6 436.6
7 476.5
8 511.5
9 514.1
10 517.1

600 12

500 10

400 8

300 6 Frequency(kHz)
Volts
200 4

100 2

0 0
1 2 3 4 5 6 7 8 9 10 11

Figure 4.1 Graphical Representation of voltage with respect to frequency

EE 361L – Communication System Lab Page 100


Figure 4.2 Frequency representation with 𝑉𝐷𝐷 at 10V and 𝑉𝐶𝑂𝑖𝑛 at 9V

12.5 4.2 Phase Lock Loop


In the first step frequency is varied and the voltage is calculated at VD at Pin 9 using
Multi-meter. The different reading that are calculated is shown in Table 4.2

Table 4.2 Voltage at Pin 9 with varying Frequency

Volts Pin9 VD
[V] [V]
0 0.7
1 0.99
2 2.04
3 2.99
4 4.03
5 4.99
6 6.01
7 7.04
8 8.04
9 8.31
10 9.52
Now by using the Phase Comparator operation of the integrated Circuit the Phase is
compared using the Phase Comparator Operation of Oscilloscope. Now by using the
procedure explained in section 2.4 Phase Difference is compared for both Comparator 1
and Phase Comparator 2 and are represented in Table 4.3 and the graphical representation
of it is shown in Figure 4.3.

EE 361L – Communication System Lab Page 101


Table 4.3 Phase Difference between Comparator 1 and Comparator 2

Comp. 1 Phase Comp. 2 Phase


Frequency(kHz) Diff. Diff.
204.1 15.5 65.0
210.1 21.4 57.3
256.8 41.2 44.7
304.4 58.4 28.0
352.1 77.6 7.8
394.4 97.0 4.5
436.6 113.0 5.0
476.5 126.0 3.2
511.5 149.0 1.1
514.1 156.3 4.0
517.1 180.0 6.0

600 200
180
500
160
Frequenc
140
400 y(kHz)
120
300 100
Comp. 1
80
200
Phase
60
Diff.
100
40 Comp. 2
20 Phase
0 0 Diff.
1 2 3 4 5 6 7 8 9 10 11

23. Figure 4.3 Graphical representation of the Phase Difference


between Comparators

Now by varying the reference frequency the hold in range and the acquisition range are
found out. The phase gets locked after reaching the threshold and gives us one acquisition
value and similarly the second acquisition value is obtained. Acquisition and Hold in
range are indicated in Figure 4.4 while Figure 4.5 shows the system in locked phase.

EE 361L – Communication System Lab Page 102


Figure 4.4 Holding and Acquisition Range of PLL
12.6 Lab Outcomes

This experiment is building block of the Modulation System and deals with the
application of Phase Lock Loop. The circuit is designed using Fabrication board and
making use of Motorola IC MC1404B. Linear behavior of frequency with respect to
voltage at 𝑉𝐶𝑂𝑖𝑛 is observed with increasing voltage until the voltage of VDD is
approached and after that it stabilizes itself. Through phase comparator the phase
difference between reference signal and the VCO signal is generated. For comparator 1,
phase increases until 180 degree and after that the holding range is vanished, but the phase
locks itself better when the comparator 2 with complex gating is employed. The
acquisition range is embedded within the holding range.

EE 361L – Communication System Lab Page 103


LAB 12 ASSESSMENT

Student Name: ______________________ Reg. #: _________________

PLOs Excellent Good Satisfactory Poor Score

3.0 2.0 1.0 0


CLO-1 PLO-5 Can independently Can setup and Can setup and Cannot setup
setup, operate and handle the handle the or handle the
handle the apparatus with apparatus apparatus
apparatus minimal help with some
help
CLO-2 PLO-5 All required data is Data recorded Data recorded Data recorded
recorded and and presented and presented only with
presented is complete but is partially considerable
accurately and accuracy is not complete. The assistance
completely in the as per required from
required format requirement. format is instructor
The required followed but
format is with few
followed deficiencies
CLO-3 PLO-8 Student hands Student does
over the not hand over
NA NA workstation in the
the required workstation in
manner the required
manner
CLO-4 PLO-424. Analyzes and Analyzes data Unable to
interprets data Analyzes and correctly analyze and
correctly for all interprets data however interpret data
tasks/ experiments correctly for unable to for any tasks/
in the lab
few tasks/ interpret it for experiments
experiments in tasks/ in the lab
the lab experiments
in the lab
Total Score in Lab/10

Instructor Signature: _________________

Date: _________________

EE 361L – Communication System Lab Page 104

You might also like