Академический Документы
Профессиональный Документы
Культура Документы
LAB MANUAL
(STUDENT COPY)
INDEX
S.NO.
PAGE NO.
1
2
3
Introduction to MATLAB
1-12
13-17
18-22
23-25
4
5
6
Introduction to SIMULINK
Amplitude Modulation & Demodulation
DSB-SC Modulation and Demodulation
Frequency Modulation
26-35
36-38
39-41
42-43
USING HARDWARE
7
44-50
8
9
10
11
51-53
54-58
59-62
63-67
Spectrum Analyzer
77-79
12
13
14
68-71
72-76
1
2
80-81
82-86
Characteristics of Mixer
87-90
4
5
6
91-93
94-97
98-100
APPENDIX -A
101-104
APPENDIX -B
105-128
REFERENCES
129
Additional Experiments
(Using Software)
Additional Experiments
(Using Hardware)
APPENDIX
INTRODUCTION TO MATLAB
The name MATLAB stands for matrix laboratory. MATLAB is a highperformance language for technical computing. It integrates computation,
visualization, and programming in an easy-to-use environment where problems
and solutions are expressed in familiar mathematical notation.MATLAB is an
interactive system whose basic data element is an array that does not require
dimensioning. This allows you to solve many technical computing problems,
especially those with matrix and vector formulations, in a fraction of the time it
would take to write a program in a scalar noninteractive language such as C or
Fortran.
Typical uses include
Math and computation
Algorithm development
Data acquisition
Modeling, simulation, and prototyping
Data analysis, exploration, and visualization
Scientific and engineering graphics
Application development, including graphical user interface building
To start MATLAB on a Microsoft Windows platform, select the Start ->
Programs -> MATLAB 7.0.1 -> MATLAB 7.0.1, or double-click the MATLAB
shortcut icon on your Windows desktop. The shortcut was automatically created
when you installed MATLAB. If you have trouble starting MATLAB, see
troubleshooting information in the Installation Guide for Windows.
When you start MATLAB, it displays the MATLAB desktop, a set of tools
(graphical user interfaces or GUIs) for managing files, variables, and applications
associated with MATLAB.
The toolbar in the desktop provides easy access to frequently used operations.
Position the cursor over a button for a second or two and a tooltip appears that
describes the item.
The Command Window is one of the main tools you use to enter data, run
MATLAB functions and other M-files, and display results.
Use the Help browser to search and view documentation and
demonstrations for MATLAB and all other installed MathWorks products.
MATLAB automatically installs the documentation and demos for a product when
ANALOG COMMUNICATIONS LAB
you install that product. The Help browser is an HTML browser integrated with
the MATLAB desktop.
To open the Help browser, click the Help button
type helpbrowser in the Command Window, or use the Help menu in any tool.
There are two panes:
The following
sections will describe the most commonly used commands on MATLAB and give
simple examples using them.
Expressions:
Like most other programming languages, MATLAB provides mathematical
expressions, but unlike most programming languages, these expressions involve
entire matrices. The building blocks of expressions are
Variables
Numbers
Operators
Variables:
MATLAB does not require any type declarations or dimension statements.
When MATLAB encounters a new variable name, it automatically creates the
variable and allocates the appropriate amount of storage. If the variable already
exists, MATLAB changes its contents and, if necessary, allocates new
storage.Variable names consist of a letter, followed by any number of letters,
digits, or underscores. MATLAB uses only the first 31 characters of a variable
name. MATLAB is case sensitive; it distinguishes between uppercase and
lowercase letters. A and a are not the same variable. To view the matrix
assigned to any variable, simply enter the variable name.
You can assign the values to variables by typing in equations. For example, if
you type
ANALOG COMMUNICATIONS LAB
>>x=5
MATLAB creates a 1-by-1 matrix named xand stores the value 5 in its single
element. The output produced by the MATLAB
x=
5
MATLAB uses ans for any expression you don't assign to a variable.
For
0.0001
9.6397238
1i
-3.14159j
1.60210e-20
6.02252e23
3e5i
All numbers are stored internally using the long format specified by the
IEEE floating-point standard. Floating-point numbers have a finite precision of
roughly 16 significant decimal digits and a finite range of roughly 10-308 to
10+308.
Operators:
Expressions use familiar arithmetic operators and precedence rules.
Symbol
Operation
Addition
Subtraction
Multiplication
Division
Left division
Power
'
( )
You can optionally give the colon a step size. For instance,
>>x=8:-1:5 will give
x=
8
and
>> x = 0:0.25: 1.25will return
x=
0
0.25
0.5
0.75
1.0
1.25
The colon is a subtle and powerful operator, and we'll see more uses of it later.
Flow Control:
MATLAB has several flow control constructs:
if, else, and elseif
x = i;
else
x = -a^2
end
For this command, it will see if a is positive, then if a is not positive, it will check if
a is zero, finally it will do the else clause. So, if a positive, x will be a squared, if
a is 0, x will be i, and if a is negative,
then x will be the negative of a squared. Again, note we only have a single end
after all the clauses.
For:
The for loop repeats a group of statements a fixed, predetermined number of
times. A matching end delineates the statements.
. It is functionally very similar to the for function in C. For example, typing
for i= 1:4
end
will cause MATLAB to make the variable i count from 1 to 4, and print its value
for each step. So, you would see
i=1
i=2
i=3
i=4
Every command must have a matching end statement to indicate which
commands should be executed several times. You can have nested for loops.
For example, typing
Form = 1:3
for n= 1:3
x(m,n)=m+n*i;
end
end
will define x to be the matrix
x=
ANALOG COMMUNICATIONS LAB
1.0000 + 1.0000i
1.0000 + 2.0000i
1.0000 + 3.0000i
2.0000 + 1.0000i
2.0000 + 9.0000i
2.0000 + 3.0000i
3.0000 + 1.0000i
3.0000 + 2.0000i
3.0000 + 3.0000i
The indentations in the for structure are optional, but they make it easier to figure
out what the commands are doing.
While:
The while command allows you to execute a group of commands until
some condition is no longer true. These commands appear between the while
and its matching end statement. For instance, if we want to keep squaring x until
it is greater than a million,
we would type
while x < 1000000
x = x^2;
end
Scripts and Functions:
MATLAB is a powerful programming language as well as an interactive
computational environment. Files that contain code in the MATLAB language are
called M-files. You create M-files using a text editor, then use them as you would
any other MATLAB function or command.
There are two kinds of M-files: Scripts, which do not accept input arguments or
return output arguments. They operate on data in the workspace. Functions,
which can accept input arguments and return output arguments. Internal
variables are local to the function.
Scripts:
When you invoke a script, MATLAB simply executes the commands found in the
file. Scripts can operate on existing data in the workspace, or they can create
new data on which to operate. Although scripts do not return output arguments,
any variables that they create remain in the workspace, to be used in subsequent
computations.
ANALOG COMMUNICATIONS LAB
Functions:
Functions are M-files that can accept input arguments and return output
arguments. The names of the M-file and of the function should be the same.
Functions operate on variables within their own workspace, separate from the
workspace you access at the MATLAB command prompt.
Procedure:
1. Open the MATLAB software by double clicking its icon
2. MATLAB logo will appear and after few moments Command Prompt will
appear.
3. Go to the File Menu and select a New M- file. (File ?New?M-file) or in the left
hand corner a blank white paper icon will be there. Click it once.
10
11
5. Now start typing your program. After completing, save the M- file with
appropriate name. Toexecute the program Press F5 or go to Debug Menu and
select Run.
6. After execution output will appear in the Command window .If there is an error
then with an
alarm, type of error will appear in red color.
7. Rectify the error if any and go to Debug Menu and select Run.
12
13
exactly; hence, the name. Some version of this circuit is used in almost all
commercial AM radio receivers.
PROGRAM:
AM without functions:
clc
clearall
closeall
t=linspace(0,0.02,10000);%defining time range for the signal
fc=5000;%frequency of carrier signal
fm=200;%frequency of message signaql
fs=40000;%sampling frequency---------fs>=2(fc+BW)
Am=5;%amplitude of the message signal
Ac=10;%amplitude of the carrier signal
m=Am/Ac%modulation index for the AM wave
wc=2*pi*fc*t;%carrier frequency in radians
wm=2*pi*fm*t;%message frequency in radians
ec=Ac*sin(wc);%carrier signal
em=Am*sin(wm);%messagesignal
y=Ac*(1+m*sin(wm)).*sin(wc);%amplitude modulated signal
z=y.*ec;
14
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MODULATING SIGNAL');
subplot(4,1,2),plot(t(1:l/2),ec(1:l/2))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('CARRIER SIGNAL');
subplot(4,1,3),plot(t(1:l),y(1:l))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('AMPLITUDE MODULATED SIGNAL');
subplot(4,1,4),plot(t(1:l),z1(1:l))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('DEMODULATED SIGNAL');
Model Waveforms:
15
AM with functions:
clc
clearall
closeall
t=linspace(0,0.2,100000);%defining time range for the signal
fc=1000;%frequency of carrier signal
fm=200;%frequency of message signal
fs=100000;%sampling frequency---------fs>=2(fc+BW)
Am=5;%amplitude of the message signal
Ac=10;%amplitude of the carrier signal
m=Am/Ac%modulation index for the AM wave
wc=2*pi*fc*t;%carrier frequency in radians
wm=2*pi*fm*t;%message frequency in radians
ec=Ac*sin(wc);%carrier signal
em=Am*sin(wm);%messagesignal
y=ammod(em,fc,fs,0,Ac);%amplitude modulated signal
z=amdemod(y,fc,fs,0,Ac);%demodulated AM signal
l=100000;
subplot(4,1,1),plot(t(1:l),em(1:l))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MODULATING SIGNAL');
subplot(4,1,2),plot(t(1:l/2),ec(1:l/2))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('CARRIER SIGNAL');
subplot(4,1,3),plot(t(1:l),y(1:l))
axis([0 0.02 -20 20])%setting axis dimensions
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
ANALOG COMMUNICATIONS LAB
16
Result:
17
18
19
20
21
Model Waveforms:
Result:
The AM-DSBSC wave is generated for the given message and carrier
signals and the message signal is recovered from the modulated wave using
synchronous detector.
22
value
of the modulating
voltage.Thus the amplitude ofthe carrier does not change due to frequency
modulation. Let the modulating voltage begiven by expression:
Vm=Vmcoswmt.
Where wmis angular frequency of the signal &Vmis the amplitude. Let the
carriervoltage be given by expression,
On frequency modulation, the instantaneous value of modulated carrier voltage is
given by,
23
FM with functions:
clc
clearall
closeall
Fs = 8000; % Sampling rate of signal
Fc = 100; % Carrier frequency
t = linspace(0,1,10000); % Sampling times
x = sin(2*pi*10*t) % Channel 1
dev = 50; % Frequency deviation in modulated signal
y = fmmod(x,Fc,Fs,dev); % Modulate both channels.
z = fmdemod(y,Fc,Fs,dev); % Demodulate both channels.
subplot(411),plot(t,x)
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MODULATING SIGNAL');
subplot(412),plot(t,sin(2*pi*Fc*t))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('CARRIER SIGNAL');
subplot(413),plot(t,y)
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('FREQUENCY MODULATED SIGNAL');
subplot(414),plot(t,z)
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('DEMODULATED SIGNAL');
24
Model waveforms:
Result:
25
INTRODUCTION TO SIMULINK
Introduction:
Simulink is a software package that enables you to model, simulate, and
analyze systems whose outputs change over time. Such systems are often
referred to as dynamic systems. Simulink can be used to explore the behavior of
a wide range of real-world dynamic systems, including electrical circuits, shock
absorbers, braking systems, and many other electrical, mechanical, and
thermodynamic systems. This section explains how Simulink works.
Simulating a dynamic system is a two-step process with Simulink. First, a
user creates a block diagram, using the Simulink model editor, that graphically
depicts time-dependent mathematical relationships among the system's inputs,
states, and outputs. The user then commands Simulink to simulate the system
represented by the model from a specified start time to a specified stop time.
In general, block and lines can be used to describe many "models of
computations." One example would be a flow chart. A flow chart consists of
blocks and lines, but one cannot describe general dynamic systems using flow
chart semantics.
The term "time-based block diagram" is used to distinguish block
diagrams that describe dynamic systems from that of other forms of block
diagrams. In Simulink, we use the term block diagram (or model) to refer to a
time-based block diagram unless the context requires explicit distinction.
Simulink block diagrams define time-based relationships between signals
and state variables. The solution of a block diagram is obtained by evaluating
these relationships over time, where time starts at a user specified "start time"
and ends at a user specified "stop time." Each evaluation of these relationships is
referred to as a time step. Signals represent quantities that change over time and
are defined for all points in time between the block diagram's start and stop time.
The relationships between signals and state variables are defined by a set of
equations represented by blocks. Each block consists of a set of equations (block
methods). These equations define a relationship between the input signals,
ANALOG COMMUNICATIONS LAB
26
output signals and the state variables. Inherent in the definition of a equation is
the notion of parameters, which are the coefficients found within the equation.
Starting Simulink
To start Simulink, you must first start MATLAB. You can then start
Simulink in two ways:
27
SIMULINK EDITOR:
When you open a Simulink model or library, Simulink displays the model
or library in an instance of the Simulink Editor.
Editor Components:
The Simulink Editor includes the following components.
Menu Bar
The Simulink menu bar contains commands for creating, editing, viewing,
printing, and simulating models. The menu commands apply to the model
displayed in the editor. See Creating a Model and Running Simulations for more
information.
Toolbar
28
Canvas
The canvas displays the model's block diagram. The canvas allows you to
edit the block diagram. You can use your system's mouse and keyboard to
create and connect blocks, selelect and move blocks, edit block labels, display
block dialog boxes, and so on. See Working with Blocks for more information.
Context Menus
Simulink displays a context-sensitive menu when you click the right mouse
button over the canvas. The contents of the menu depend on whether a block is
selected. If a block is selected, the menu displays commands that apply only to
the selected block. If no block is selected, the menu displays commands that
apply to a model or library as a whole.
Status Bar
The status bar appears only in the Windows version of the Simulink Editor.
When a simulation is running, the status bar displays the status of the simulation,
including the current simulation time and the name of the current solver. You can
display or hide the status bar by selecting or clearing the Status Bar option on the
Simulink View menu.
Building a Model
This example shows you how to build a model using many of the modelbuilding commands and actions you will use to build your own models.
The model integrates a sine wave and displays the result along with the
sine wave. The block diagram of the model looks like this.
29
To create a new model , click the New Model button on the Library
Browser's toolbar.
To create this model, you need to copy blocks into the model from the following
Simulink block libraries:
To copy the Sine Wave block from the Library Browser, first expand the Library
Browser tree to display the blocks in the Sources library. Do this by clicking the
30
Sources node to display the Sources library blocks. Finally, click the Sine Wave
node to select the Sine Wave block.
Here is how the Library Browser should look after you have done this
Now drag a copy of the Sine Wave block from the browser and drop it in the
model window.
Copy the rest of the blocks in a similar manner from their respective
libraries into the model window. You can move a block from one place in the
model window to another by dragging the block. You can move a block a short
distance by selecting the block, then pressing the arrow keys.
With all the blocks copied into the model window, the model should look
something like this.
ANALOG COMMUNICATIONS LAB
31
If you examine the blocks, you see an angle bracket on the right of the
Sine Wave block and two on the left of the Mux block. The > symbol pointing out
of a block is an output port; if the symbol points to a block, it is an input port. A
signal travels out of an output port and into an input port of another block through
a connecting line. When the blocks are connected, the port symbols disappear.
Now it's time to connect the blocks. Connect the Sine Wave block to the
top input port of the Mux block. Position the pointer over the output port on the
right side of the Sine Wave block. Notice that the cursor shape changes to
crosshairs.
Hold down the mouse button and move the cursor to the top input port of
the Mux block.
Notice that the line is dashed while the mouse button is down and that the cursor
shape changes to double-lined crosshairs as it approaches the Mux block.
32
Now release the mouse button. The blocks are connected. You can also
connect the line to the block by releasing the mouse button while the pointer is
over the block. If you do, the line is connected to the input port closest to the
cursor's position.
If you look again at the model at the beginning of this section, you'll notice
that most of the lines connect output ports of blocks to input ports of other blocks.
However, one line connects a line to the input port of another block. This line,
called a branch line, connects the Sine Wave output to the Integrator block, and
carries the same signal that passes from the Sine Wave block to the Mux block.
Drawing a branch line is slightly different from drawing the line you just drew. To
weld a connection to an existing line, follow these steps:
1. First, position the pointer on the line between the Sine Wave and the Mux
block.
2. Press and hold down the Ctrl key (or click the right mouse button).Press
the mouse button, then drag the pointer to the Integrator block's input port
or over the Integrator block itself.
33
3. Release the mouse button. Simulink draws a line between the starting point and
the Integrator block's input port.
Finish making block connections. When you're done, your model should look something
like this.
34
You can also use the keyboard shortcut, Ctrl+T, to start the simulation.
Note: A common mistake that new Simulink users make is to start a simulation while the
Simulink block library is the active window. Make sure your model window is the active
window before starting a simulation.
Simulink starts executing the model at the start time specified on the
Configuration Parameters dialog box. Execution continues until the simulation reaches
the final time step specified on the Configuration Parameters dialog box, an error occurs,
or you pause or terminate the simulation.
While the simulation is running, a progress bar at the bottom of the model
window shows how far the simulation has progressed. A Stop command replaces the
Start command on the Simulation menu. A Pause command appears on the menu and
replaces the Start button on the model toolbar.
35
Software Required:
MATLAB 7.0.4
Simulink
Theory:
Amplitude Modulation is defined as a process in which the amplitude of
the carrier wave c(t) is varied linearly with the instantaneous amplitude of the
message signal m(t).The standard form of an amplitude modulated (AM) wave is
defined by
s (t ) = Ac [1+ K a m(t ) cos(2f c t )]
Where K a is a constant called the amplitude sensitivity of the modulator.
Basically
amplitude
modulated
signal
is
generated
by
product
modulator.The inputs to the product modulator are message signal and carrier
signal. Demodulation is the process of extracting the baseband message signal
from the carrier so that it may be processed at the receiver. For that purpose
various methods are used like diode detector method, product detector
method, filter detector etc. The same has been implemented on simulink model.
Low pass filter has been implemented to extract the carrier from the modulated
signal. Low pass filter (LPF), filters out the high frequency component and allows
the low frequency component to pass. Since the carrier signal is of relatively
much higher frequency than that of message signal, carrier signal is attenuated
while the message signal is received at the receiver.
36
Circuit diagram:
Procedure:
1. open the MATLAB window and then select a simulink
2. select Create a new blank model and open the Simulink Library browser
3. select Signal generator from sources of simulink and drag it to the New
model
4. Select the sine wave as message signal and set the input voltage signal to
5Vp-p and signal frequency to 500Hz
5. Again select the signal generator then sine wave. Give the name as
Carrier signal. Set the carrier voltage 8Vp-p,frequency 1KHz
6. Select constant from commonly used block of simulink
7. Select Add, Product Blocks from Math Operations
8. All the above blocks connect as per the diagram shown to get the
Amplitude modulation signal. observe the output in scope
9. For demodulation select Analog Filter Design block from Filter Designs
Library Links of Simulink
10. Connect the filter output to the scope and observe the results
37
Model Waveform:
Results:
38
Software Required:
MATLAB 7.0.4
SIMULINK
Theory:
In the double-sideband suppressed-carrier transmission (DSB-SC) modulation,
unlike AM, the wave carrier is not transmitted; thus, a great percentage of power
that is dedicated to it is distributed between the sidebands, which imply an
increase of the cover in DSB-SC, compared to AM, for the same power used.
The DSB-SC modulator output as follows
A low pass filter filters out the message signal from above.
39
Circuit diagram:
Procedure:
1. open the MATLAB window and then select a simulink
2. select Create a new blank model and open the Simulink Library browser
3. select Signal generator from sources of simulink and drag it to the New
model
4. Select the sine wave as message signal and set the input voltage signal to
5Vp-p and signal frequency to 500Hz
5. Again select the signal generator then sine wave. Give the name as
Carrier signal. Set the carrier voltage 8Vp-p,frequency 1KHz
6. Select Product Block from Math Operations
7. All the above blocks connect as per the diagram shown to get the
Amplitude modulation signal. observe the output in scope
8. For demodulation select Analog Filter Design block from Filter Designs
Library Links of Simulink
9. Connect the filter output to the scope and observe the results
40
Model waveform:
Result:
41
6. Frequency Modulation
Aim:
To generate frequency modulated signal using communication block set of
SIMULINK
Software Required:
MATLAB 7.0.4
SIMULINK
Theory:
In Frequency Modulation (FM), the amplitude of the sinusoidal carrier wave was
modulated in AM, this time the instantaneous frequency of a sinusoidal carrier
wave will be modified proportionally to the variation of amplitude of the message
signal.
The FM signal is expressed as
s (t ) = Ac cos(2f c + sin (2f m t ))
Where AC is amplitude of the carrier signal,
Circuit diagram:
42
Procedure:
1. open the MATLAB window and then select a simulink
2. select Create a new blank model and open the Simulink Library browser
3. select Signal generator from sources of simulink and drag it to the New
model
4. Select FM modulator from Communication Block set of Simulink Library
Browser
5. Observe FM modulated output in scope
Model waveform:
Results:
43
Apparatus Required:
Name of the
Specifications/Range
Quantity
Component/Equipment
fT = 300 MHz
Transistor(BC 107)
Pd = 1W
Ic(max) = 100 mA
Diode(0A79)
Resistors
1 each
Capacitor
0.01F
Inductor
130mH
CRO
20MHz
Function Generator
1MHz
0-30V, 1A
Theory:
Amplitude Modulation is defined as a process in which the amplitude of the
carrier wave c(t) is varied linearly with the instantaneous amplitude of the message
signal m(t).The standard form of an amplitude modulated (AM) wave is defined by
s (t ) = Ac [1 + K a m(t ) cos(2f c t )]
Where
incoming AM wave at the receiver. An envelope detector is a simple and yet highly
effective device that is well suited for the demodulation of AM wave, for which the
percentage modulation is less than 100%.Ideally, an envelop detector produces an
44
output signal that follows the envelop of the input signal wave form exactly; hence, the
name. Some version of this circuit is used in almost all commercial AM radio receivers.
The Modulation Index is defined as, m =
( Emax E min )
( E max + E min )
Where Emax and Emin are the maximum and minimum amplitudes of the
modulated wave.
Circuit Diagrams:
For modulation:
Fig.1. AM modulator
45
For demodulation:
Fig.2. AM demodulator
Procedure:
1. The circuit is connected as per the circuit diagram shown in Fig.1.
2. Switch on + 12 volts VCC supply.
3. Apply sinusoidal signal of 1 KHz frequency and amplitude 2 Vp-p as modulating
signal, and carrier signal of frequency 11 KHz and amplitude 15 Vp-p.
4. Now slowly increase the amplitude of the modulating signal up to 7V and note down
values of Emax and Emin.
5. Calculate modulation index using equation
6. Repeat step 5 by varying frequency of the modulating signal.
7. Plot the graphs: Modulation index vs Amplitude & Frequency
8. Find the value of R from f m =
1
taking C = 0.01F
2RC
Observation Table:
Table 1:
S.No.
fm =
Vm(Volts)
fc =
Emax(volts)
Ac=
Emin (Volts)
%m
(m x100)
1
2
3
46
Table 2:
S.No.
Am=
fm(KHz)
Emax(volts)
fc =
Ac =
Emin(Volts)
%m
(m x100)
1
2
3
47
48
49
Precautions:
1. Check the connections before giving the power supply
2. Observations should be done carefully.
Result:
Inferences:
Questions:
50
Apparatus Required:
Name of the
Specifications/Range
Quantity
Diode(0A79)
Resistor
10K
Capacitor
0.1F
CRO
20MHz
AM/FM Generator
0.1MHz-110MHz
0-30V, 1A
Component/Equipment
Theory:
The AM signal is applied to a basic half-wave rectifier circuit consisting of diode
and resistor. The diode conducts when the positive half of the AM signals occur. During
the negative half cycles, the diode is reverse-biased and no current flows through it. As a
result, the voltage across resistor is a series of positive pulses whose amplitude varies
with the modulating signal. To recover the original modulating signal a capacitor is
connected across resistor. Its value is critical to good performance. The result is that the
carrier is absent there by leaving the original modulating signal.
Circuit Diagram:
51
Procedure:
1. Connect the circuit diagram as per Fig.1.
2. Set the input amplitude modulated wave from AM generator.
3. Observe the modulating signal changes by varying the amplitudes of the AM
signal.
4. Note down the Amplitude of the demodulated wave.
5. Plot a graph between Emax Vs Detector wave amplitude as shown in Fig.2
Sample readings:
TABLE 1: Reading of diode detector
S.No.
Emax(mV)
Emin (mV)
Detector O/P
(mV)
1
2
3
4
5
Model Graphs:
52
Result:
Inferences:
Questions:
1. Classify Amplitude modulation detector or demodulators.
2. Why envelope detector is most popular in commercial receiver circuits?
53
Apparatus required:
Name of the
Specifications/Range
Component/Equipment
IC 566
IC 8038
Quantity
Operating current-Max.12.5 mA
Power dissipation 750mW
IC 565
1,2,1
39 K , 560
2,2
2,1
100pF , 0.001F
1,1 each
CRO
100MHz
Function Generator
1MHz
0-30 v, 1A
Resistors
Capacitors
Theory:
The process, in which the frequency of the carrier is varied in accordance with
the instantaneous amplitude of the modulating signal, is called Frequency Modulation.
The FM signal is expressed as
54
Circuit Diagrams:
By using IC 8038:
55
Procedure:
Modulation:
1. The circuit is connected as per the circuit diagram shown in Fig.2( Fig.1 for IC 566)
2. Without giving modulating signal observe the carrier signal at pin no.2 (at pin no.3 for
IC 566). Measure amplitude and frequency of the carrier signal. To obtain carrier
signal of desired frequency, find value of R from f = 1/ (2RC) taking C=100pF.
3. Apply the sinusoidal modulating signal of frequency 4KHz and amplitude 3Vp-p at
pin no.7. ( pin no.5 for IC 566)
Now slowly increase the amplitude of modulating signal and measure
fmin and
maximum frequency deviation f at each step. Evaluate the modulating index (mf =
) using f / fm where f = |fc - fmin|. Calculate Band width. BW = 2 ( + 1)fm = 2(f +
fm )
4. Repeat step 4 by varying frequency of the modulating signal.
56
Demodulation:
1. Connections are made as per circuit diagram shown in Fig.3
2. Check the functioning of PLL (IC 565) by giving square wave to input and
observing the output
3. Frequency of input signal is varied till input and output are locked.
4. Now modulated signal is fed as input and observe the demodulated signal
(output) on CRO.
5. Draw the demodulated wave form.
Observation Table:
Table: 1 fc =
S.No.
f m(KHz)
Tmax (sec)
f min(KHz)
f(KHz)
fmin(KHz)
f (KHz)
BW (KHz)
1
2
Table 2:
S.No.
fm =
fc =
Am (Volts)
T (sec)
BW(KHZ)
01
02
Model Waveforms:
57
Precautions:
1. Check the connections before giving the power supply
2. observations should be done carefully
Result:
Inferences:
Questions:
1. Effect of the modulation index on FM signal?
2. In commercial FM broadcasting, what is highest value of frequency deviation and
audio frequency to be transmitted?
58
4. Balanced Modulator
Aim:
To generate AM-Double Side Band Suppressed Carrier (DSB-SC) signal.
Apparatus Required:
Name of the
Component/Equipment
Specifications/Range
Wide frequency response up to 100 MHz
IC 1496
Resistors
Capacitors
Variable Resistor
(Linear Pot)
Quantity
6.8K
10 K, 3.9 K
2 each
1K ,51 K
3 each
0.1 F
0-50K
CRO
100MHz
Function Generator
1MHz
0-30 v, 1A
Theory:
Balanced modulator is used for generating DSB-SC signal.
A balanced
59
Circuit Diagram:
Procedure:
1. Connect the circuit diagram as shown in Fig.1.
2. An Carrier signal of 1Vp-p amplitude and frequency of 83 KHz is applied as carrier to
pin no.10.
3. An AF signal of 0.5Vp-p amplitude and frequency of 5 KHz is given as message
signal to pin no.1.
4. Observe the DSB-SC waveform at pin no.12.
60
Observation Table:
Signal
AMPLITUDE (Volts)
Frequency (Hz)
Message signal
Carrier signal
DSB-SC Signal
Model Waveforms:
61
Precautions:
1. Check the connections before giving the supply
2. Observations should be done carefully
Results:
Inferences:
Questions:
1. What is the efficiency of the DSB-SC modulating system?
2. What are the applications of balanced modulator?
3. What is the effect of amplitude of message on DSB-Sc signal?
62
Apparatus Required:
Name of the
Component/Equipment
Specifications/Range
Quantity
fT = 300 MHz
Transistor (BC 107)
Pd = 1W
Ic(max) = 100 mA
Resistors
10 K, 7.5 K, 6.8 K
1 each
10 nF
0.1 F
CRO
20MHZ
Function Generator
1MHZ
0-30V, 1A
Capacitors
Theory:
The noise has a effect on the higher modulating frequencies than on the lower
ones. Thus, if the higher frequencies were artificially boosted at the transmitter and
correspondingly cut at the receiver, an improvement in noise immunity could be
expected, there by increasing the SNR ratio. This boosting of the higher modulating
frequencies at the transmitter is known as pre-emphasis and the compensation at the
receiver is called de-emphasis.
63
Circuit Diagrams:
For Pre-emphasis:
For De-emphasis:
Procedure:
1. Connect the circuit as per circuit diagram as shown in Fig.1.
2. Apply the sinusoidal signal of amplitude 20mV as input signal to pre emphasis
circuit.
3. Then by increasing the input signal frequency from 500Hz to 20KHz, observe
the output voltage (vo) and calculate gain (20 log (vo/vi).
4. Plot the graph between gain Vs frequency.
ANALOG COMMUNICATIONS LAB
64
Sample readings:
Table1: Pre-emphasis
Vi =
Frequency(KHz)
Vo(mV)
Vo(Volts)
0.5
1
2
4
5
6
7
10
15
Table2: De-emphasis
Frequency(KHz)
Vi =
0.150
1
2
3
5
65
Graphs:
66
Precautions:
1. Check the connections before giving the power supply
2. Observation should be done carefully
Result:
Inferences:
Questions:
1.
67
6. Synchronous Detector
Aim:
To demodulate the DSB-SC signal.
Apparatus Required:
Name of the
Component/Equipment
Specifications/Range
Maximum voltage - 30 V
IC 1496
Resistors
Capacitors
Quantity
100 ,6.8 K , , 22 K
1 each
3.9 K
4.7 K
1K
0.0047 F
1 F
Theory:
The message signal m(t) is recovered from a DSB-SC wave s(t) by first
multiplying s(t) with locally generated carrier wave and then low-pass filtering as shown
in the block diagram in Fig.1
It is assumed that the local oscillator output in the detector is exactly coherent or
synchronized, in both frequency and phase; with the carrier wave c(t) used to generate
s(t).This method of demodulation is known as coherent detection or synchronous
detection.
68
Circuit Diagram:
Procedure:
1. Connect the circuit diagram as shown in Fig.2
2. Apply the RF signal of frequency 83 KHz at pin no.1.
3. Apply modulated (DSB-SC) signal at pin no.8.
4. Observe the synchronous detector output at the pin no.12 on the oscilloscope
(CRO).
Observation Table:
Signal
Amplitude (V)
Frequency(KHz)
Carrier signal
83
Output signal
0.5
69
Precautions:
1. Check the connections before giving the supply
2. Observations should be done carefully
Result:
Inferences:
70
Questions:
1. Write the applications of synchronous detector?
2. What are the drawbacks of synchronous detector?
3. What is the Effect of Carrier signal on output signal?
71
7. SSB System
Aim:
To generate the SSB modulated wave.
Apparatus Required:
Name of the
Specifications
Quantity
---
CRO
30MHz
Component/Equipment
Theory:
An SSB signal is produced by passing the DSB signal through a highly selective
band pass filter. This filter selects either the upper or the lower sideband. Hence
transmission bandwidth can be cut by half if one sideband is entirely suppressed. This
leads to single-sideband modulation (SSB). In SSB modulation bandwidth saving is
accompanied by a considerable increase in equipment complexity.
Circuit Diagram:
72
Procedure:
1. Switch on the trainer and measure the output of the regulated power supply i.e.,
12V and -8V.
2. Observe the output of the RF generator using CRO. There are 2 outputs from the
RF generator, one is direct output and another is 90o out of phase with the direct
output.
73
14. Measure and record the SSB upper side band signal frequency.
15. Calculate theoretical value of the SSB(USB) frequency and compare it with practical
value. USB frequency = RF frequency + AF frequency
Observations:
Signal
Amplitude (volts)
Frequency (KHz)
Message signal
Carrier signal
SSB (LSB)
SSB (USB)
Model Waveforms:
74
75
Precautions:
1. Check the connections before giving the power supply
2. Observations should be done carefully.
Results:
Inferences:
Question:
1. What are difficulties in practical implementation of SSB-C system?
2. Why SSB-SC is not used in broadcasting?
76
Apparatus Required:
Name of the Component/Equipment
Specifications
Quantity
Spectrum analyzer
AM/FM generator
0.1MHz-110MHz
CRO
30MHz
Theory:
A spectrum analyzer provides a calibrated graphical display on its CRT with
frequency on the horizontal axis and amplitude on the vertical axis. Displayed as vertical
lines against these coordinates are sinusoidal components of which the input signal in
composed. The height represents the absolute magnitude, and horizontal location
represents the frequency. This instrument provide a display of the frequency spectrum
over a given frequency band.
Block diagram:
77
Procedure:
1. AM signal is given to the spectrum analyzer.
2. Adjust the zero marker to carrier frequency and measure spectrum of AM.
3. For different values of fc and fm, observe the spectrum of AM.
4. Now remove AM signal and give FM signal to the spectrum analyzer.
5. Adjust the zero marker to carrier frequency and observe spectrum of FM.
6. Plot the spectrums of FM and AM.
Observation Table:
Table1: Readings for AM signal
S.No.
fc (MHz)
fm (KHz)
(fm+ fc ) (MHz)
fm (KHz)
(fm+ fc ) (MHz)
1
Table2: Readings for FM signal
S.No.
fc (MHz)
Model Graphs:
Fig.2 AM spectrum
Fig. 3 FM spectrum
ANALOG COMMUNICATIONS LAB
78
Precautions:
1. Check the probe connections.
2. Observations should be done carefully
Inferences:
Results:
Questions:
1. Distinguish between CRO and Spectrum analyzer?
2. What are the functions of span/div control and reference level control?
79
80
elseif (m(i)<=s(i))
pwm(i)=1;
end
end
subplot(211),plot(t,m,'-r',t,s,'-b');axis([0 2 -1.5 1.5]);
title('message signal with sawtoothcoparison')
xlabel('time(sec)');
ylabel('voltage(V)');
subplot(212),plot(t,pwm,'-k')
axis([0 2 -0.5 1.5]);
title('PWM wave');
xlabel('time(sec)');
ylabel('voltage(V)');
Model Waveforms:
81
82
the design becomes quite simple. In this short note we will discuss only the
fundamentals of the PLL and how you can use nonlinear simulation and
linearised approximation to get a better understanding of the PLL.
Program:
clc;
closeall;
clearall;
reg1 =0;
reg2 =0;
reg3 = 0;
eta =sqrt(2)/2;
theta =2*pi*1/100;
Kp = [(4*eta*theta)/(1+2*eta*theta+theta^2)];
Ki = [(4*theta^2)/(1+2*eta*theta+theta^2)];
d_phi_1 = 1/20;
n_data = 100;
for nn =1:n_data
phi1= reg1 +d_phi_1;
phi1_reg(nn) = phi1;
s1 =exp(j*2*pi*reg1);
s2 =exp(j*2*pi*reg2);
s1_reg(nn) =s1;
s2_reg(nn) =s2;
t =s1*conj(s2);
phi_error =atan(imag(t)/real(t))/(2*pi);
phi_error_reg(nn) = phi_error;
sum1 =Kp*phi_error + phi_error*Ki+reg3;
reg1_reg(nn) =reg1;
reg2_reg(nn) = reg2;
reg1 =phi1;
ANALOG COMMUNICATIONS LAB
83
reg2=reg2+sum1;
reg3 =reg3+phi_error*Ki;
phi2_reg(nn) =reg2;
end
figure(1)
plot(phi1_reg);
holdon
plot(phi2_reg,'r');
holdoff;
gridon;
title('phase plot');
xlabel('Samples');
ylabel('Phase');
figure(2)
plot(phi_error_reg);
title('phase Error of phase detector');
gridon;
xlabel('samples(n)');
ylabel('Phase error(degrees)');
figure(3)
plot(real(s1_reg));
holdon;
plot(real(s2_reg),'r');
holdoff;
gridon;
title('Input signal & Output signal of VCO');
xlabel('Samples');
ylabel('Amplitude');
axis([0 n_data -1.1 1.1]);
84
Phase plot:
85
Result:
86
3. Characteristics of Mixer
Aim:
To obtain the characteristics of a mixer circuit.
Apparatus Required:
Name of the
Component/Equipment
Specifications/Range
Quantity
fT = 300 MHz
Transistors (BC 107)
Pd = 1W
Ic(max) = 100 mA
Resistors
1 K , 6.8 K, 10K
1 each
Capacitor
0.01F
Inductor
1mH
CRO
20MHZ
Function Generator
1MHz
0-30v, 1A
Theory:
The mixer is a nonlinear device having two sets of input terminals and one set of
output terminals. Mixer will have several frequencies present in its output, including the
difference between the two input frequencies and other harmonic components.
87
Circuit Diagram:
Procedure:
1. Connect the circuit as per the circuit diagram as shown in Fig.1. Assume C=0.1F
and calculate value of L1 using f=
1
where f=7KHz
2 L1C1
Observation Table:
Signal
Amplitude (Volts)
Frequency(KHz)
Input signal1
Input signal 2
Output signal
88
Waveforms:
89
Precautions:
1.Check the connections before giving the supply
2.Observations should be done carefully
Result:
Inferences:
Questions:
1. How can we use mixer circuit to generate AM signal?
2. What are the applications of mixer?
3. In which region BJT will be operated?
4. What is the roll of LC circuit?
90
Apparatus Required:
Name of the
Component/Equipment
IC LM 565
Resistors
Capacitors
CRO
Function Generator
Regulated Power Supply
Specifications/Range
Supply voltage 12V
Power dissipation 1400mw
Quantity
12 K
10pF
0.01F
20MHZ
0- 1MHz
0-30v, 1A
Theory:
The best frequency demodulator is the phase locked loop(PLL). A PLL is a frequency or
phase sensitive feedback control circuit. It used not only in frequency demodulation but
also in frequency synthesizers. All PLLs have three basic elements as illustrated in
Fig.1. A phase detector or mixer is used to compare the input or reference signal with
the output of a
91
VCO. The VCO frequency is varied by the dc output voltage from a low pass filter. It is
the output of the phase detector that the low pass filter uses to produce dc control
voltage. This dc control voltage is called the error signal and is also the feedback in this
circuit and will control the VCO.
Circuit Diagram:
Procedure:
1. Connect the circuit as shown in Fig. 2.
2. Obtain the free running frequency fo without giving any input signal.
3. Apply the square wave as input signal at pin no.2 and then vary the input signal
frequency. When input signal is locked with VCO output in forward direction then
note down the value of input signal frequency (fC1). Again increase the input
signal frequency and observe the frequency at which the PLL becomes unlocked,
note down the value of input signal frequency (fL2).
4. Again the frequency of input is reduced in backward direction and note down the
frequency of the input signal (fc2) at which input signal is locked with VCO output.
92
And the frequency of input signal is still reduced, note down the frequency of
input signal (fL1) at which the PLL becomes unlocked.
5. Now by using formulae given calculate lock range and capture range and verify
them experimentally.
Observation Table:
Theoretical(KHz)
Practical(KHz)
fo
fL
fC
2
fL
fC = capture range =
= 60.7Hz
2 R1C1
Precautions:
1. Check the connections before giving the supply
2. Observations should be done carefully
Inferences:
Questions:
1. Write the application of PLL?
2. What is the capture range of PLL.
3. What is the effect of R1 and C1 values and Vcc on output signal?
93
5. Squelch Circuit
Aim:
To Study the performance characteristics of Squelch Circuit .
Apparatus Required:
Name of the
Specifications/Range
Quantity
fT = 300 MHz
Component/Equipment
Transistor(BC107)
Pd = 1W
Ic(max) = 100 mA
Resistor
1,1,1,2
Capacitor
10F
CRO
20MHz
Function generator
0-1MHz
0-30V, 1A
Theory:
A squelch circuit also known as a mute circuit. It is designed to keep the receiver
audio turned off until an RF signal appears at the receiver input. The Squelch circuit
provides a means of keeping the audio amplifier turned off during the time that noise is
received in the background when an RF signal appears at the input, the audio amplifier
is enabled. There are two types of squelch circuits used in communication receivers;
they are (i). Amplitude squelch circuit (ii). Noise squelch circuit.
94
Circuit Diagram:
Procedure:
1. Connect the circuit as shown in Fig.1
2. Set the input signal (say 180mv, 1 KHz) using function generator.
3. Vary the voltage of AGC in different steps and observe corresponding signal
output Voltages (Vo) in CRO and tabulate them.
4. Plot the graph between AGC voltage Vs Gain(dB) as shown in Fig.2
95
Observation Table:
TABLE 1: Readings of a squelch circuit
S.No.
AGC(volts)
Vo (mV)
Gain=Vo/Vi
Gain in
dB=20log(Vo/Vi)
1
2
3
4
5
6
Graphs:
Result:
Inferences:
96
Questions:
1. What is the function of Squelch circuit?
2. What is Amplitude squelch or Gate squelch circuit?
3. What is true noise squelch?
97
6. Frequency Synthesizer
Aim:
To construct a frequency synthesizer circuit.
Apparatus Required:
Name of the
Specifications/Range
Quantity
Component/Equipment
fT = 300 MHz
Transistor(BC107)
Pd = 1W
Ic(max) = 100 mA
Supply voltage :12V
IC 565
IC 7490
Resistor
1each
Capacitor
1each
CRO
0-20MHz
Function generator
0-1MHz
0-30V, 1A
Theory:
The frequency divider is inserted between the VCO and the phase comparator of PLL.
Since the output of the divider is locked to the input frequency fin, the VCO is actually
running at a multiple of the input frequency . The desired amount of multiplication can be
obtained by selecting a proper divide by N network ,where N is an integer. To obtain
the output frequency fOUT=5fIN, a divide by N = 5 network is needed. One must
determine the input frequency range and then adjust the free running fOUT of the VCO by
means of R1 (20kpot) and C1 (10F) so that the output frequency of the divider is
midway within the predetermined input frequency range. The output of the VCO now
ANALOG COMMUNICATIONS LAB
98
should be 5fIN. The output of the VCO now should be adjusted from 1.5 KHz to 15 KHz
by varying potentiometer R1 .this means that the input frequency fin range has to be with
in 300Hz to 3KHz. In addition, the input wave form may be applied to inputs pin2 or pin3.
Input output waveforms forms for fOUT= 5fIN. A small capacitor typically 1000pf is
connected between pin7 and pin8 to eliminate possible oscillations. Also, capacitor C2
should be large enough to stabilize the VCO frequency.
Circuit Diagram:
Procedure:
1. Connect the circuit diagram as shown in Fig.1.
2. Measure the free running frequency of PLL (IC565) at pin no.4 with the input
signal set to zero volt.
3. Compare the output with the calculated theoretical value 0.25/RTCT.
4. Set the input signal (say 2 Vp-p, 1KHz square wave form ) using function
generator.
5. Vary the frequency by adjusting the 20K Potentiometer till the PLL(IC565)is
locked.
6. Measure (frequency counter) the frequency of the output signal. It must be 5
times the input signal frequency.
7. Observe and note down the waveform and frequency of various signals using
CRO .
ANALOG COMMUNICATIONS LAB
99
Observation Table:
TABLE 1: Readings of a Frequency Synthesizer
S.No.
f i/p (KHz)
f o/p (KHz)
1.
2.
Result:
Inferences:
Questions:
1. How to achieve fout = 2 fin ?
2. What is the effect of C1 on the output frequency?
100
Appendix A
Component/
Specifications
Pin diagram
Equipment
fT= 300 MHz
IC(max)= 100 mA
Transistor
Pd=1W,VCEO=45V
BC 107
hfe (min) = 40
hfe (max) = 450
Operating voltage Max-24 Volts
Operating temperature range
0.70oC
Operating current-Max.12.5 mA
Max. operating frequency 1 MHz
NE 566
IC 8038
101
to +125oC
Operating temperature range 0o to
+70oC
Wide frequency response up to 100
MHz
Dual-in-line package
Carrier feed through
LM 1496
12V
Power dissipation
1400mw
100 KHz
__
102
1496
Radio Receiver MW 550kHz to 1.5mHz
Measurement
Trainer
Consists of
__
1. Internal AM generator
2. Internal AF generator
3. Internal RF generator
Frequency:
LPT-2250
Spectrum
analyzer
GHz
__
AM-FM
generator
__
103
BFW10
Idss :8mA
Min Temperature -40oC
Max Temperature 150oC
Ge-Diode
Max Voltage 45V
OA79
7490
104
Appendix B
PLOT(X,Y):
Plots vector Y versus vector X. If X or Y is a matrix, then the vector is
plotted versus the rows or columns of the matrix, whichever line up. If X is a
scalar and Y is a vector, length(Y) disconnected points are plotted.
SUBPLOT(m,n,p) or SUBPLOT(mnp):
Breaks the Figure window into an m-by-n matrix of small axes, selects the
p-th axes for for the current plot, and returns the axis handle. The axes are
counted along the top row of the Figure window, then the second row, etc. For
example,
SUBPLOT(2,1,1), PLOT(income)
SUBPLOT(2,1,2), PLOT(outgo)
plots income on the top half of the window and outgo on the bottom half. If the
current axes is nested in a uipanel the panel is used as the parent for the subplot
instead of the current figure.
LINSPACE(a,b,n):
The linspace function generates linearly spaced vectors. It is similar to the
colon operator ":", but gives direct control over the number of points.
y = linspace(a,b,n) generates a row vector y of n points linearly spaced between
and including a and b.
AXIS([xmin xmax ymin ymax]):
Controls axis scaling and appearance.
AXIS([XMIN XMAX YMIN YMAX]) sets scaling for the x- and y-axes on the
current plot.
ANALOG COMMUNICATIONS LAB
105
AMMOD(x,Fc,Fs,ini_phase,carramp):
Uses the message signal x to modulate a carrier signal with frequency Fc
(Hz) using amplitude modulation. The carrier signal and x have sample frequency
Fs (Hz). The modulated signal has initial phase specified by ini_phase.
AMDEMOD(Y,Fc,Fs,INI_PHASE,CARRAMP):Demodulates
the
amplitude
modulated signal Y from the carrier frequency Fc (Hz). Y and Fc have sample
frequency Fs (Hz).The modulated signal Y has specified initial phase, and
specified carrier amplitude.
MODULATE(x,fc,fs,'method'):
Modulate the real message signal x with a carrier frequency fc and
sampling frequency fs, using one of the options listed below for 'method'. Fs must
satisfy Fs > 2*Fc + BW, where BW is the bandwidth of the modulated signal.
Method
Description
am or amdsb-sc
'amssb'
'fm'
Frequency modulation
'pm'
Phase modulation
'pwm'
'ppm'
106
DEMOD(y,fc,fs,'method'):
Demodulates the carrier signal Y with a carrier frequency Fc and sampling
frequency Fs, using the demodulation scheme in METHOD.
FMMOD(X,Fc,Fs,FREQDEV):
Uses the message signal X to modulate the carrier frequency Fc (Hz) and
sample frequency Fs (Hz), where Fs > 2*Fc. FREQDEV (Hz) is the frequency
deviation of the modulated signal.
Method
Description
am or amdsb-sc
Amplitude
demodulation,
double
sideband
suppressed carrier
'amssb'
'fm'
Frequency demodulation
'pm'
Phase demodulation
'pwm'
'ppm'
107
SIMULINK:
BLOCK NAME
Sine / cosine Wave
LIBRARY
DESCRIPTION
Simulink--
Generates sine/cosine
Sources
wave
with
amplitude,
required
frequency
and phase
constant
scope
Simulink--
Generates
constant
Sources
value
Simulink--
Sinks
Add,subtract,multiply,divide Simulink--
Math
Signal generator
Mathematical
operations
operators
Simulink--
Generates
Sources
sine/square/triangular
waves with required
amplitude, frequency
and phase
Analog passband
Communications
Generates various
modulation
blockset--
Analog
analog modulation
passband
waves
modulation
108
Sine wave:
We can generate the sine wave in two ways one is by using the directly sinewave
block and other way is by using the signal generator block
Sine wave block:
Symbol
The Sine Wave block provides a sinusoid. The block can operate in either timebased or sample-based mode.
Sine type
Type of sine wave generated by this block, either time- or sample-based. Some
of the other options presented by the Sine Wave dialog box depend on whether
you select time-based or sample-based as the value of Sine type parameter.
109
Time
Specifies whether to use simulation time as the source of values for the sine
wave's time variable or an external source. If you specify an external time source,
the block displays an input port for the time source.
Amplitude
The amplitude of the signal. The default is 1.
Bias
Constant value added to the sine to produce the output of this block.
Frequency
The frequency, in radians/second. The default is 1 rad/s. This parameter
appears only if you choose time-based as the Sine type of the block.
Samples per period
Number of samples per period. This parameter appears only if you choose
sample-based as the Sine type of the block.
Phase
The phase shift, in radians. The default is 0 radians. This parameter appears
only if you choose time-based as the Sine type of the block.
Number of offset samples
The offset (discrete phase shift) in number of sample times. This parameter
appears only if you choose sample-based as the Sine type of the block.
110
Sample time
The sample period. The default is 0. If the sine type is sample-based, the
sample time must be greater than 0. See Specifying Sample Time in the online
documentation for more information.
Interpret vector parameters as 1-D
If selected, column or row matrix values for the Sine Wave block's numeric
parameters result in a vector output signal; otherwise, the block outputs a signal
of the same dimensionality as the parameters. If this option is not selected, the
block always outputs a signal of the same dimensionality as the block's numeric
parameters.
Signal generator:
The Signal Generator block can produce one of three different waveforms:
sine wave, square wave, and sawtooth wave. The signal parameters can be
expressed in Hertz (the default) or radians per second. This figure shows each
signal displayed on a Scope using default parameter values.
Symbol
The block's Amplitude and Frequency parameters determine the amplitude and
frequency of the output signal. The parameters must be of the same dimensions
after scalar expansion.
111
Wave form
The wave form: a sine wave, square wave, or sawtooth wave. The default is a
sine wave. This parameter cannot be changed while a simulation is running.
Time
Specifies whether to use simulation time as the source of values for the
waveform's time variable or an external signal. If you specify an external time
source, the block displays an input port for the time source.
Amplitude
The signal amplitude. The default is 1.
Frequency
The signal frequency. The default is 1.
Units
The signal units: Hertz or radians/sec. The default is Hertz.
112
Symbol
The output of the block has the same dimensions and elements as the Constant
value parameter. If you specify a vector for this parameter, and you want the
block to interpret it as a vector (i.e., a 1-D array), select the Interpret vector
parameters as 1-D parameter; otherwise, the block treats the Constant value
parameter as a matrix (i.e., a 2-D array).
113
Constant value
Specify the constant value output by the block. You can enter any MATLAB
expression in this field, including the Boolean keywords, true or false, that
evaluates to a matrix value. The Constant value parameter is converted from its
data type to the specified output data type offline using round-to-nearest and
saturation.
Interpret vector parameters as 1-D
If you select this check box, the Constant block outputs a vector of length N if
the Constant value parameter evaluates to an N-element row or column vector,
i.e., a matrix of dimension 1xN or Nx1.
Sample time
Specify the interval between times that the Constant block's output can change
during simulation (e.g., as a result of tuning its Constant value parameter). The
default sample time is inf, i.e., the block's output can never change. This setting
speeds simulation and generated code by avoiding the need to recompute the
block's output. See Specifying Sample Time in the online documentation for more
information.
Scope
The Scope block displays its input with respect to simulation time. The Scope
block can have multiple axes (one per port); all axes have a common time range
with independent y-axes. The Scope allows you to adjust the amount of time and
the range of input values displayed. You can move and resize the Scope window
and you can modify the Scope's parameter values during the simulation.
Symbol
114
When you start a simulation, Simulink does not open Scope windows, although it
does write data to connected Scopes. As a result, if you open a Scope after a
simulation, the Scope's input signal or signals will be displayed.
If the signal is continuous, the Scope produces a point-to-point plot. If the signal
is discrete, the Scope produces a stair-step plot.
The Scope provides toolbar buttons that enable you to zoom in on displayed
data, display all the data input to the Scope, preserve axis settings from one
simulation to the next, limit data displayed, and save data to the workspace. The
toolbar buttons are labeled in this figure, which shows the Scope window as it
appears when you open a Scope block.
115
Number of axes
Set the number of y-axes in this data field. With the exception of the floating
scope, there is no limit to the number of axes the Scope block can contain. All
axes share the same time base (x-axis), but have independent y-axes. Note that
the number of axes is equal to the number of input ports.
Time range
Change the x-axis limits by entering a number or auto in the Time range field.
Entering a number of seconds causes each screen to display the amount of data
that corresponds to that number of seconds. Enter auto to set the x-axis to the
duration of the simulation. Do not enter variable names in these fields.
Sum (Add or subtract)
The Sum block performs addition or subtraction on its inputs. This block can add
or subtract scalar, vector, or matrix inputs. It can also collapse the elements of a
single input vector.
Symbol
ANALOG COMMUNICATIONS LAB
116
The Sum block first converts the input data type(s) to the output data type using
the specified rounding and overflow modes, and then performs the specified
operations.
List of signs
Enter as many plus (+) and minus (-) characters as there are inputs. Addition
is the default operation, so if you only want to add the inputs, enter the number of
input ports. For a single vector input, "+" or "-" will collapse the vector using the
specified operation.
You can manipulate the positions of the input ports on the block by inserting
spacers (|) between the signs in the List of signs parameter. For example, "++|--"
creates an extra space between the second and third input ports.
117
Symbol
Number of inputs
118
Enter the number of inputs or a combination of "*" and "/" symbols. See
Description above for a complete discussion of this parameter.
Multiplication
Specify element-wise or matrix multiplication. See Description above for a
complete discussion of this parameter.
Sample time (-1 for inherited)
Specify the time interval between samples. To inherit the sample time, set this
parameter to -1. See Specifying Sample Time in the online documentation for
more information.
DSB AM (Amplitude modulation and de-modulation)
Modulation
The DSB AM Modulator Passband block modulates using doublesideband amplitude modulation. The output is a passband representation of the
modulated signal. Both the input and output signals are real sample-based scalar
signals.
Symbol
119
Symbol
120
In the course of demodulating, this block uses a filter whose transfer function is
described by the Lowpass filter numerator and Lowpass filter denominator
parameters.
Offset factor
The same as the Input signal offset parameter in the corresponding DSB AM
Modulator Passband block.
Carrier frequency (Hz)
The frequency of the carrier in the corresponding DSB AM Modulator
Passband block.
Initial phase (rad)
The initial phase of the carrier in radians.
Lowpass filter numerator
The numerator of the lowpass filter transfer function. It is represented as a
vector that lists the coefficients in order of descending powers of s.
Lowpass filter denominator
121
amplitude
modulation.
The
output
is
passband
representation of the modulated signal. Both the input and output signals are real
sample-based scalar signals.
Symbol
where fc is the Carrier frequency parameter and is the Initial phase parameter.
122
Symbol
In the course of demodulating, this block uses a filter whose transfer function is
described by the Lowpass filter numerator and Lowpass filter denominator
parameters.
123
124
Symbol
where:
fc is the Carrier frequency parameter.
is the Initial phase parameter.
Kc is the Modulation constant parameter.
125
126
Symbol
In the course of demodulating, the block uses a filter whose transfer function is
described by the Lowpass filter numerator and Lowpass filter denominator
parameters.
The block uses a voltage-controlled oscillator (VCO) in the demodulation. The
Initial phase parameter gives the initial phase of the VCO.
127
128
REFERENCES:
129