EL3003 - ADC Lab Manual
EL3003 - ADC Lab Manual
EL3003 - ADC Lab Manual
COMMUNICTION
LAB MANUAL
Date:
Page | 2
Lab Manual of ‘Analogue & Digital Communication’
Table of Contents
Sr. No. Description Page No.
1 List of Equipment 4
Page | 3
Lab Manual of ‘Analogue & Digital Communication’
List of Equipment
Sr. No. Description
1 Function generator
2 Oscilloscope
3 Digital Multi-meter
4 Power supply
5 IC XR-2206
6 IC CD4046
7 IC MC1496
8 IC LM565
9 IC Op-Amp 741
10 Capacitors
11 Resistors
12 Diode
13 Probes
Page | 4
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 1
GENERATION OF NOISE AND OBSERVATION OF ITS EFFECT
ON A SINUSODIAL SIGNAL
OBJECTIVE:
Familiarize students with the contents of the experiment and give them hands on experience
regarding the experiment
To learn the effect of noise on sinusoidal signal
Design and observe the filter output
EQUIPMENT:
Oscilloscope
Power supply
Functional generator
Op Amp 741
Resistors & Capacitor
BACKGROUND:
The unwanted signal that gets introduced in a signal when it passes through any communication
system is termed as Noise. Generally, Noise is classified with respect to its origin as internal or
external noise; the internal noise is generated by the components of the communication system itself
while the external noise is added to the signal due to the external fields developed due to other
communication systems, power lines or even due to human interference. With proper care, the
external noise can be minimized and can be even removed, similarly with proper care the internal
noise can be minimized but can never be eliminated. Noise is one of the basic factors that limit the
communication systems in terms of their performance. One of the important parameters to observe is
Signal to Noise ratio (S/N) which plays very important role in any communication system.
Noise can also be classified in terms of its spectrum. Thermal noise is one of the most common
sources of noise, also known as white noise because its spectrum is flat over the range of
frequencies.
Page | 5
Lab Manual of ‘Analogue & Digital Communication’
Circuit given in Figure 1.1, generates white noise and can be easily coupled with message signal.
The reason it works is that the base-emitter junction behaves like a Zener diode. What happens, the
most NPN small-signal transistors have a Veb breakdown voltage of somewhere around 5V. Feed a
larger voltage into the junction and it will breakdown and conduct, momentarily stop, then start
again. It all happens randomly and so fast that it produces a random output voltage to the 10uF
capacitor. Then summing Amplifier is used to sum up the white noise and message signal.
The low pass filter only allows low frequency signals from 0Hz to its cut-off frequency, ƒc point to
pass while blocking those any higher. Cutoff frequency for first order filter is obtained by setting
1
gain of circuit equals to .
√2
𝟏
fc =
𝟐𝝅𝑹𝑪
Passive Filter:
A simple passive RC Low Pass Filter, can be easily made by connecting together in series a
single Resistor with a single Capacitor as shown in figure 1.2. In this type of filter arrangement,
the input signal (Vin) is applied to the series combination (both the Resistor and Capacitor
together) but the output signal (Vout) is taken across the capacitor only. This type of filter is
known generally as a “first-order filter”
An active filter generally uses an operational amplifier (op-amp) within its design. Its principle
of operation and frequency response is exactly the same as those for the previously seen passive
filter, the only difference this time is that it uses an op-amp for amplification and gain control.
Page | 6
Figure 1.3: Non-Inverting Low Pass filter
Lab Manual of ‘Analogue & Digital Communication’
For a non-inverting amplifier circuit, the magnitude of the voltage gain for the filter is given as a
function of the feedback resistor (R2) divided by its corresponding input resistor (R1) value and is
given as:
𝑅2
Gain: 1 +
𝑅1
PROCEDURE:
1. Generate a white noise and message signal using noise circuit (shown in Figure 1.1) and
signal generator respectively.
2. Use summing amplifier to sum up the white noise and message signal generated in step 1.
3. Get the signal from the output pin of amplifier and observe it on the oscilloscope.
4. Design a passive RC low pass filter and compare this with the output you obtained in step 3.
5. Design an active RC low pass filter (non-inverting) and compare the output with the output
you obtained using passive low pass filter.
GRAPHICAL ANALYSIS:
Sketch the output waveforms of the active and passive low-pass filters as seen on the oscilloscope
for both uniform and Gaussian noises. Also mention the time/div and volts/div for each channel.
1. Derive the cutoff frequency expression for a first order passive RC low pass filter?
2. Design inverting Active low pass filter, Derive the expression for Gain?
3. What will happen if we use high order low pass filter?
Page | 7
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 2
GENERATION OF AMPLITUDE MODULATED SIGNALS
OBJECTIVE:
Familiarize students with the contents of the experiment and give them hands on experience
regarding the experiment
To observe the effect of modulation index in amplitude modulation
EQUIPMENT:
Oscilloscope
Power supply
Functional generator
MC1496
Connecting wires
BACKGROUND:
An amplitude modulated signal can be obtained by simply multiplying the message signal with the
carrier signal; that is, if m(t) is the message signal and c(t) is the carrier signal, then we can write the
modulated AM signal as
𝜑(𝑡) = 𝑚(𝑡). 𝑐(𝑡)
or
𝜑(𝑡) = 𝑚(𝑡). 𝐴𝐶 cos 𝜔𝑐 𝑡
Message Signal
1
-1
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Carrier Signal
1
-1
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Modulated Signal
1
-1
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Figure 2.1: Amplitude Modulation
Page | 8
Lab Manual of ‘Analogue & Digital Communication’
Therefore, we need a simple multiplying unit for amplitude modulation. However, there are different
types of modulators which include:
1. Multiplier Modulators
These modulators contain a simple analog multiplier circuit whose output is directly
proportional to the product of both signals
2. Non-linear modulators
These modulators use nonlinear devices such as semi-conductor diode or a transistor for the
purpose of modulation.
3. Switching modulators
These modulators use the principle of switching to obtain the approximate product of carrier
and the message signal, usually these modulators use square wave as carrier. Ring modulator
is an example of such a modulator.
In this experiment, a Gilbert multiplier cell (MC1496) is used to generate amplitude modulated
signal. Figure 2.2 shows the schematic of MC1496 along with the external components required to
realize an amplitude modulator. The potentiometer is used to set the DC level of the modulating
signal, which can be used to adjust the modulation index.
PROCEDURE:
USING MC 1496
1. Generate a 2Vp-p, 100 Hz sinusoidal message signal from the function generator 1.
2. Generate the sinusoidal carrier signal of 2Vp-p, 5 KHz from function generator 2.
3. Plug in the signal generated in step 1 to the pin 1 of MC 1496, labeled as “Modulating signal
input”.
4. Plug in the carrier signal generated in step 2 to the pin 10, labeled as “Carrier Signal Input”.
5. Get the output from the +Vo and –Vo and observe it on oscilloscope. Using the following
three controls achieve the desired modulation.
a. Amplitude of Modulating Signal (functional generator)
b. Offset of Modulating Signal (functional generator)
c. Carrier Null Setting (Carrier Adjust)
Page | 9
Lab Manual of ‘Analogue & Digital Communication’
GRAPHICAL ANALYSIS:
Sketch the waveforms of modulating signal, carrier signal and modulated signal. Also mention the
time/div and volts/div for each channel.
Modulation Index 𝝁 =
𝒎𝒑 1 0.75 0.5 0.25 1.25
𝑨𝑪
𝑨𝒄 (V) 1 1 1 1 1
𝒎𝒑 (V)
GRAPHICAL ANALYSIS:
Sketch the modulated waveforms for all cases of modulation index. Also mention the time/div and
volts/div for each channel.
Page | 10
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 3
DEMODULATION OF AMPLITUDE MODULATED SIGNALS
OBJECTIVE:
Familiarize students with the contents of the experiment and give them hands on experience
regarding the experiment
To demodulate the modulated wave using envelope detector
EQUIPMENT:
Oscilloscope
Functional generator
Diode
Capacitor
Resistor
BACKGROUND:
Demodulation of the amplitude modulated signal can be achieved by using the modulators which are
the circuits used for modulation can also be used for demodulation. However, we have to make
following changes:
The carrier input is also required. We can classify demodulators as either coherent or non-coherent
demodulators. Coherent demodulators require the carrier signal in addition to the modulated signal
for demodulating AM signal however non-coherent demodulators do not require carrier signal as
input. An example of such a demodulator is known as envelope detector which usually comprises of
a diode followed by a RC circuit.
Page | 11
Lab Manual of ‘Analogue & Digital Communication’
PROCEDURE:
COHERENT DEMODULATION
GRAPHICAL ANALYSIS:
Sketch the modulated signal and demodulated signal (mixer module) observe on the oscilloscope.
Also mention the time/div and volts/div for each channel.
NON-COHERENT DEMODULATION
GRAPHICAL ANALYSIS:
Sketch the AM signal (for 𝜇 = 1,𝜇 < 1 and 𝜇 > 1) and the demodulated signal obtained from
envelope detector. Also mention the time/div and volts/div for each channel.
Page | 12
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 4
FREQUENCY MODULATION
OBJECTIVE:
Familiarize students with the contents of the experiment and give them hands on experience
regarding the experiment
To demodulate the modulated wave using envelope detector
EQUIPMENT:
Oscilloscope
Functional generator
IC XR2206
Capacitor
Resistor
BACKGROUND:
The requirement of frequency modulation is to vary the frequency of the high frequency carrier
signal according to the amplitude of the message signal Frequency modulated signal can be
generated by using
1. Direct method
2. Indirect method
For indirect method, the signal is first integrated and then phase modulated to get the required FM
output. However, this type of modulation gives rise to Narrow Band FM signal which is then
converted to required range and bandwidth by using frequency multipliers and converters.
The modulation index is defined as the ratio of the maximum frequency deviation to the modulating
frequency. The maximum frequency deviation is the shift from center frequency 𝑓𝑐 when the
amplitude of the modulating signal is maximum.
Page | 13
Lab Manual of ‘Analogue & Digital Communication’
PROCEDURE:
GRAPHICAL ANALYSIS:
Draw the message signal, carrier signal and frequency modulated signal as seen on the oscilloscope.
Also mention the time/div and volts/div for each channel.
USING XR-2206
Design a Frequency modulator for carrier frequency of 45 KHz using VCO of XR2206. Data sheet
of IC XR2206 is attached with this manual. You may not use the other sections of the chip. Observe
the frequency modulated signal on oscilloscope and note down the readings in the given table. Find
the frequency deviation and calculate the modulation index.
GRAPHICAL ANALYSIS:
Draw the message signal, carrier signal and frequency modulated signal as seen on the oscilloscope.
Also mention the time/div and volts/div for each channel.
EXPERIMENTAL RESULTS:
Table 4.1
Amplitude Frequency
Message signal
Carrier Signal
∆𝒇 =______
𝜷 =_______
Page | 14
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 5
INTRODUCTION TO PHASE LOCKED LOOP
OBJECTIVE:
Learn the basic principles of Phase-locked loop (PLL)
Learn to set up practical circuit of PLL
Measure the characteristics of the PLL (CD4046)
EQUIPMENT:
Oscilloscope
Functional generator
IC CD4046
Capacitor
Resistor
BACKGROUND:
PLL stands for 'Phase-Locked Loop' and is basically a closed loop frequency control system, whose
functioning is based on the phase sensitive detection of phase difference between the input and
output signals of the controlled oscillator. The PLL is a useful building block in communication
circuits. There are a wide variety of uses for a PLL including FM and AM detection, phase tracking,
frequency synthesis, and frequency multiplication. The purpose of this lab is to look at the PLL
characteristics.
Figure 1 shows the classic configuration of a PLL. It consists of three main components: a voltage-
controlled oscillator (VCO), a phase comparator, and a loop filter.
Page | 15
Lab Manual of ‘Analogue & Digital Communication’
Free Running
When there is no signal or when the feedback loop is open, the VCO operates at a preset
frequency called its natural or free-running frequency (f0).
Capture
To be in the capture state there must be an input signal and the feedback loop must be closed.
In the capture state the PLL is in the process of acquiring a lock. The frequency range over
which the input will causes the loop to lock is called the acquisition range or capture range.
Pull-in range is the capture range expressed as a peak value. The lowest frequency the PLL
can lock onto is called the lower capture limit (𝑓𝐶𝑙 ), and the highest frequency the PLL can
lock onto is called the upper capture limit (𝑓𝐶𝑢 ).
Page | 16
Lab Manual of ‘Analogue & Digital Communication’
The first part of the experiment focuses on the Voltage Controlled Oscillator and measurements will
be made of frequency vs. voltage characteristics of the VCO. The second part entails building a PLL
with the VCO from part one. Here, lock and capture ranges will be measured. We will be using
CD4046 chip for VCO and PLL implementation. Data sheet is provided along with the manual.
In order to design a VCO with specific characteristics, Figure 5-7 of the data sheet provide the
necessary component information. For example, figure 5 shows how the center frequency varies
with the capacitance C1, resistance R1, and supply voltage VDD. Figure 6 & 7 gives information
about the minimum and maximum frequency respectively.
PROCEDURE:
Page | 17
Lab Manual of ‘Analogue & Digital Communication’
1. Using the following component values and Figure 3 assemble the VCO on bread board.
𝑉𝐷𝐷 = 15𝑉
𝑅1 = 10 𝑘Ω
𝑅2 = 100 𝑘Ω
𝐶1 = 0.01 𝜇𝐹
2. The INHIBIT pin must be grounded, and it is suitable for VSS (Pin 8) to be ground as well.
3. Make sure that the supply voltages are turned low and the power supply is initially off.
4. When this setup is complete, turn the power supply on.
5. Observe the output at Pin 4 on oscilloscope.
6. Increase the voltage on Pin 9, VCO in, up to 15V in steps. Record the frequency of the output
waveform at each step in Table 1.
OBSERVATIONS:
Table 5.1: VCO Data (Frequency vs. voltage)
VCO_OUT Frequency
VCO_IN (V)
(kHz)
Pin 9
Pin 4
0.0
1.5
3
4.5
6
7.5
9
10.5
12
13.5
15
To configure the CD4046 chip as a PLL we will use the VCO from the previous part and add the
external circuitry for loop filter. In this part we will observe the functioning of PLL and will measure
the lock and capture range of PLL. The lock range of a PLL is set by the VCO whereas the capture
range is set by the loop filter. The capture range can be equal to the lock range or smaller, but never
larger. In this experiment the loop components are chosen to make the capture range equal to the
lock range
PROCEDURE:
1. Set up the circuit as shown in figure 4 with following loop filter components.
Page | 18
Lab Manual of ‘Analogue & Digital Communication’
𝐶2 = 0.01𝜇𝐹
𝑅3 = 10 𝑘Ω
2. Select square wave from function generator and set the frequency close to center frequency
of VCO. Apply square wave signal at Pin 14 through the capacitor. Observe the applied
signal on channel 1, and the VCO (or PLL) output on channel 2 of oscilloscope. PLL should
show a stable waveform and have the same frequency as the input square wave.
3. To measure the lock range, start from the center frequency and slowly decrease the input
frequency until the signals are just unlocking, this is the lower lock limit 𝒇𝑳𝒍 .
4. Then increase the frequency until the signals start to lock again; this is the lower capture
limit𝒇𝑪𝒍 . Note that these frequencies will be pretty close to each other since the loop filter
was designed to give a capture range equal to the lock range.
5. Continue increasing the frequency until the signals are unlocked again this is the upper lock
limit 𝒇𝑳𝒖.
6. Lastly, decrease the frequency from this point until the signals are locked again; this is the
upper capture limit 𝒇𝑪𝒖.
OBSERVATIONS:
Table 5.2: PLL Characteristics
Page | 19
Lab Manual of ‘Analogue & Digital Communication’
Lock range 𝒇𝑳
Capture range𝒇𝑪
A PLL has a VCO with a free running frequency of 12MHz. As the frequency of the reference input
signal is gradually raised from zero, loop locks at 10MHz and comes out of lock again at 16MHz.
Find the capture range and lock range.
1. What is the function of Pin 5 in CD4046?
2. Explain the role of the resistance marked R2 in CD4046 circuit with reference to the
experiment performed.
EXPERIMENT 6
FM DEMODULATION
OBJECTIVE:
To understand the demodulation of an FM signal using PLL
EQUIPMENT:
Oscilloscope
DC power supply
Functional generator
IC LM565
Capacitors
Resistors
Connecting probes and cables
BACKGROUND:
1. Slope Detection
An operational amplifier differentiator followed by an envelope detector can serve the purpose of
FM demodulator.
Page | 20
Lab Manual of ‘Analogue & Digital Communication’
A simple tuned circuit followed by an envelope detector can serve the purpose of demodulator
because its frequency response below or above the tuned frequency is approximately
linear this method of demodulation is known as slope detection. However, the slope of |H (ω)| for
such a demodulator is linear only for a small band this problem can be removed by using Balanced
discriminator or ratio detectors.
2. Zero-crossing detector
These are the frequency counters designed to measure the instantaneous frequency by counting the
number of zero crossings. The rate of zero crossings is equal to the instantaneous frequency of the
signal.
3. Phase-locked loop
A basic phase locked loop is a simple control loop, which locks a VCO (voltage-controlled
oscillator) to some reference frequency. The VCO in an oscillator with output frequency
proportional to input control voltage. We consider here only the process by which the loop stays “in
lock” and the VCO tracks the phase/frequency of the reference input. Therefore, the VCO adjusts
itself so that the error signal e(t) tends to zero. When e(t) is close to zero, r(t)~s(t) and v(t) ~ m(t)
(the message signal).
Page | 21
Lab Manual of ‘Analogue & Digital Communication’
In this experiment we will introduce the operations of PLL frequency demodulator using LM565.
The PLL circuit of Figure 6.4 can be used as a frequency demodulator.
PROCEDURE:
GRAPHICAL ANALYSIS:
Sketch the frequency modulated and frequency demodulated waveforms as seen on the oscilloscope.
Also mention the time/div and volts/div for each channel.
Page | 22
Lab Manual of ‘Analogue & Digital Communication’
1. What effect does changing the amplitude of the modulation signal have on the demodulated
output?
2. Referring to Figure 6.4. How would you change the VCO free-running frequency from 20 to
50 KHz?
3. Why VCO control voltage used as the demodulated output?
EXPERIMENT 7
PRE-EMPHASIS AND DE-EMPHASIS
OBJECTIVE:
Learn how the characteristics of pre-emphasis and De-emphasis differ from each other
EQUIPMENT:
Oscilloscope
DC power supply
Functional generator
Op Amp 741
Capacitors
Resistors
Connecting probes and cables
BACKGROUND:
Page | 23
Lab Manual of ‘Analogue & Digital Communication’
The noise has an 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, thereby 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.
PROCEDURE:
PRE-EMPHASIS:
1k
3k
5k
7k
10 k
13 k
15 k
17 k
Page | 24
Lab Manual of ‘Analogue & Digital Communication’
20 k
GRAPHICAL ANALYSIS:
DE-EMPHASIS:
1k
3k
5k
7k
10 k
13 k
15 k
17 k
Page | 25
Lab Manual of ‘Analogue & Digital Communication’
20 k
GRAPHICAL ANALYSIS:
EXPERIMENT 8
DIGIAL MODULATION: FREQUENCY SHIFT KEYING (FSK)
OBJECTIVE:
Learn the basic concept of frequency shift keying (FSK)
Learn to implement FSK using XR2206
EQUIPMENT:
Oscilloscope
Dual DC power supply
Functional generator
XR 2206
Capacitors
Resistors
Page | 26
Lab Manual of ‘Analogue & Digital Communication’
THEORY:
FSK modulation requires the swapping of frequency from one level to another. A “0” is transmitted
by a pulse of frequency𝑓1 and “1” is transmitted by using a pulse of frequency 𝑓2 as show in figure 1.
Hence the binary
1
information is contained in the frequency of the carrier wave.
FSK signal can be generated by using two oscillators tuned at two different frequencies but
connectedto singleoutput terminal. ‘0’ canbe transmittedby selectingtheoutput ofoneof
theoscillatorswhile ‘1’ canbetransmittedbyselecting the other oscillator. Theselectionbetweenthetwo
oscillators will bedetermined by the messagesignal.
We will be using XR-2206 for Frequency Shift Keying. Datasheetisprovidedalong with themanual.
The XR-2206 can be operated with two separate timing resistors 𝑅1 and𝑅2 , connected to timing Pins
7 and 8 respectively, as shown in Figure 2. Depending on the polarity of the logic signal at Pin 9,
either one or the other of these timing resistors is activated. If Pin 9 is open-circuited or connected to
a bias voltage ≥ 2𝑉, only 𝑅1 is activated. Similarly, if the voltage level at Pin 9 is ≤ 1𝑉, only𝑅2 is
activated. Thus, the output frequency can be keyed between two levels, 𝑓1 and 𝑓2 , as
1 1
𝑓1 = and𝑓2 =
𝑅1 𝐶 𝑅2 𝐶
PROCEDURE:
1. DesignanFSK modulatorto havef1= 50,000 Hz and f2= 10,000 Hz. Useany valuesof resistors
orcapacitors. Butremember tolookat data sheet very carefully.
Table 7.1
Page | 27
Lab Manual of ‘Analogue & Digital Communication’
GRAPHICAL ANALYSIS:
Sketch the message signal and FSK modulated signal as seen on the oscilloscope. Also mention the
time/div and volts/div for each channel.
1. What will happen if we remove the resistor between 13 and 14 pin of XR-2206 IC?
2. What does variable resistor do in the given figure 2.
Page | 28
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 9
DIGIAL MODULATION: AMPLITUDE SHIF KEYING (ASK)
OBJECTIVE:
To understand the operational theory of Amplitude Shift Keying (ASK)/ On-Off
Keying(OOK)
To implement the OOK modulation using XR-2206 IC.
EQUIPMENT:
Oscilloscope
Dual DC power supply
Functional generator
XR 2206
Capacitors
Resistors
Connecting probes and cables
THEORY:
In digital communication the transmission of digital data is facilitated by modulation in order to send
the signal effectively over a distance. One of the ways is to use the digital data stream to change the
amplitude of the carrier, this kind of modulation is called amplitude modulation, and we call it as
amplitude shift keying (ASK) modulation in digital communication.
Figure 7.1 shows a basic serial digital signal of binary zeros and ones to be transmitted and the
corresponding AM signal resulting from modulation. There are two types of AM signals: on-off
keying (OOK) and amplitude shift keying (ASK).
Page | 29
Lab Manual of ‘Analogue & Digital Communication’
Figure 7. 1Digital modulation formats with low-data rate short range wireless applications: amplitude shift keying (a),
on-off keying (b). Coherent waveforms as the binary state change occurs at carrier zero crossing points.
In Figure 7.1(a), the carrier amplitude is shifted between two amplitude levels to produce ASK. In
Figure 7.1(b), the binary signal turns the carrier off and on to create OOK.
OOK signal can be generated by using a single oscillator tuned at a fixed frequency ‘𝑓1 ’ for one of
the two binary inputs. ‘0’ means off, i.e. no waveform or ground while ‘1’ i.e. on condition can be
transmitted by selecting some frequency for the oscillator circuit comprising 𝑅1 and 𝐶.
We will be using XR-2206 for On-Off Keying (OOK). Data sheet is provided along with the manual.
The XR-2206 can be operated with two separate timing resistors 𝑅1 and𝑅2 , connected to timing Pins
7 and 8 respectively, as shown in Figure 2. Depending on the polarity of the logic signal at Pin 9,
either one or the other of these timing resistors is activated. If Pin 9 is open-circuited or connected to
a bias voltage ≥ 2𝑉, only 𝑅1 is activated. Similarly, if the voltage level at Pin 9 is ≤ 1𝑉, only𝑅2 is
activated. The desired frequency can be selected from the following equations.
1 1
𝑓1 = and 𝑓2 =
𝑅1 𝐶 𝑅2 𝐶
PROCEDURE:
1. Design an OOK modulator to have f1 = 10,000 Hz and f2 = 0 Hz. Use any values of
resistors or capacitors. But remember to look at data sheet very carefully.
2. Set up the circuit as show in Figure 7.2.
Page | 30
Lab Manual of ‘Analogue & Digital Communication’
3. Generate a digital signal having frequency 2 KHz and amplitude 5Vp-p with dc bias from
function generator and apply it on Pin 9.
4. Observe the output at Pin 2 on oscilloscope.
5. Repeat the experiment by changing the frequency f1 to 0Hz and f2 = 50 kHz.
GRAPHICAL ANALYSIS:
Sketch the message signal and OOK modulated signal for both cases as seen on the oscilloscope.
Also mention the time/div and volts/div for each channel.
Page | 31
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 10
DIGIAL MODULATION: BINARY PHASE SHIFT KEYING (BPSK)
OBJECTIVE:
To understand the operational theory of Phase Shift Keying (PSK).
To implement the Binary PSK modulation using XR-2206 IC.
EQUIPMENT:
Oscilloscope
Dual DC power supply
Functional generator
XR 2206
Capacitors
Resistors
Connecting probes and cables
THEORY:
In digital communication the transmission of digital data is facilitated by modulation in order to send
the signal effectively over a distance. One of the ways is to use the digital data stream to change the
phase of the carrier, this kind of modulation is called phase modulation, and we call it as phase shift
keying (PSK) modulation in digital communication.
In PSK, the information about the bit stream is contained in the changes of phase of the transmitted
signal. BPSK shifts the carrier sine wave 180° for each change in binary state. A snap-shot of a
BPSK signal in time-domain is shown in the Fig 8.1 below.
Figure 8. 1: The phase changes when the binary state switches between 0 & 1 in a BPSK
In this experiment the XR-2206 monolithic function generator is used for the BPSK modulator.
Page | 32
Lab Manual of ‘Analogue & Digital Communication’
In this section both the output amplitude and the output phase versus input voltage
characteristics of XR-2206 function generator are examined. The schematic diagram is shown
in Fig 8.2. Pin 1 is one input to the function generator output differential amplifier. The other
input is internally biased at 𝑉 + ⁄2. The function generator output voltage can therefore be varied
by applying a dc-controlled voltage ‘𝑉𝐶 ’ to pin 1. As 𝑉𝐶 increases from 0 to 𝑉 + ⁄2, the output
amplitude decreases. When 𝑉𝐶 = 𝑉 + ⁄2, the output goes to 0V (Vout nulls); and as 𝑉𝐶 is
increased beyond 𝑉 + ⁄2, the output amplitude increases except with opposite phase. This
property is suitable for both BPSK and suppressed-carrier amplitude modulation.
1. Construct the function generator circuit shown in Fig 8.2 (set 𝑉𝐶 = 0V)
2. Select a suitable resistance 𝑅2 until a sine wave with minimum distortion is observed at 𝑉𝑜𝑢𝑡 .
3. Adjust 𝑅𝑥 until the output frequency 𝑓𝑜 = 100𝑘𝐻𝑧.
4. Slowly increase the dc control voltage until 𝑉𝐶 = 𝑉 + ⁄2, and observe the output waveform.
5. Increase the dc control voltage until 𝑉𝐶 = +10𝑉, and again observe the output waveform.
6. Set the dc control voltage to 0V, and connect the oscilloscope external trigger input
(1 𝑉𝑝−𝑝 , 1𝑘𝐻𝑧) to pin 11 of XR-2206. (Pin 11 is a square wave output signal with a
frequency equal to the VCO output frequency. Synchronizing the oscilloscope to this signal
establishes a phase reference for 𝑉𝑜𝑢𝑡 .
7. Calculate the dc control voltage where the output signal undergoes a 180° phase reversal
using the formula,
𝑉+
𝑉𝑥 =
2
Page | 33
Lab Manual of ‘Analogue & Digital Communication’
where, 𝑉𝑥 = control voltage value where an output phase reversal occurs (volts)
𝑉 + = DC supply voltage (volts)
8. Slowly increase the dc control voltage from 0 to +10V dc while observing 𝑉𝑜𝑢𝑡 .
In this section, the operation of a BPSK modulator is examined. The same that is shown in Fig 8.2 is
used for the modulator except that a function generator is placed in series with the dc control voltage
supply. The function generator simulates a binary digital input signal. The XR-2206 acts like a phase
reversing switch that is controlled by the external input voltage applied to pin 1. If the input voltage
has an average voltage equal to 𝑉 + ⁄2 and varies above and below this value, the phase of the output
signal will reverse phase proportionally.
Vary the function generator (i) output frequency and then (ii) the output voltage, and observe what
effect varying it has on the BPSK waveform in both cases.
1. What is the relationship between a BPSK modulator output phase and its input signal level?
2. What is the relationship between a BPSK modulator output phase and its input signal
frequency?
3. Brief the basic operation of the XR-2206 as a BPSK modulator.
Page | 34
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 11
MATLAB BASICS FOR COMMUNICATION SYSTEM DESIGN
OBJECTIVE:
To understand the use of MATLAB for solving communication engineering problems.
Learn the basics of MATLAB as used in Analogue Communication.
To develop understanding of MATLAB environment, commands and syntax.
THEORY
MATLAB is a powerful tool that is utilized by the engineers and others professionals in
development and testing of various projects. It is versatile software, with the help of which you can
solve and develop any sort of engineering problem. The name MATLAB stands for MATRIX
LABORAORY. All the work done in MATLAB is basically in the form of matrices. Scalars are
referred as 1-to-1 matrix and vectors are matrices having more than 1 row and column. MATLAB is
programmable and have the same logical, relational, conditional and loop structures as in other
programming languages, such as C, Java etc. It’s very easy to use MATLAB, all we need is to
practice it and become a friend of it.
Summary:
Scalars
Vectors
Matrices
Plotting
m-files
functions
Getting Started:
a. Go to the start button, then programs, MATLAB and then start MATLAB. It is preferred that
you have MATLAB7. You can then start MATLAB by double clicking on its icon on
Desktop, if there is any.
b. The Prompt:
>>
The operator shows above is the prompt in MATLAB. MATLAB is interactive language like
C, Java etc. We can write the commands over here.
a. In MATLAB we can see our previous commands and instructions by pressing the up key.
Press the key once to see the previous entry, twice to see the entry before that and so on. We
can also edit the text by using forward and back-word keys.
Help in MATLAB
In order to use the built-in help of the MATLAB we use the help keyword. Write it on the prompt
and see the output.
Page | 35
Lab Manual of ‘Analogue & Digital Communication’
Also try
>>lookfor sin
Scalars
A scalar is a single number. A scalar is stored in the MATLAB as a 1 x 1 matrix. Try these on the
prompt.
>> A = 2;
>> B = 3;
>> C = A^B
>> C = A*B
>> C = A+B
>> C = A-B
>> C = A/B
>> C = A\B
Note the difference between last two instructions.
Try to implement these two relations and show the result in the provided space
a = 2.5, b = 5, c = -6
Vectors
Vectors are also called arrays in MATLAB. Vectors are declared in the following format.
>> X = [1 2 3 4]
>> Y = [2 5 8 9]
Page | 36
Lab Manual of ‘Analogue & Digital Communication’
>> X’ = __________________
Also try some new instructions for this like and notice the outputs in each case.
>> ones (1,4)
>> ones (2,4)
>> ones (4,1)
>>zeros(1,4)
>>zeros(2,4)
There is an important operator, the colon operator (:), it is very important operator and frequently
used during these labs. Try this one.
>> X = [0:0.1:1]
What did the first and second number represent in the output of last instruction?
________________________________________________________________________________________
____________________________________________________________________
Length = ____________________
Size = ____________________
Try ‘help ones’ and ‘help zeros’ as well, and note down its important features.
MATRICES
Also take help on mod, rem, det, inv and eye and try to implement them. Try to use length and size
commandswith these matrices as well and see the results.
Page | 37
Lab Manual of ‘Analogue & Digital Communication’
1. 6x + 12y + 4z = 70
7x – 2y + 3z= 5
2x + 8y -9z = 64
2. A = [2 3 4 5; 1 8 9 0; 2 3 1 3; 5 8 9 3]
Solve 6A – 2I + A2 =
PLOTTING
Plotting is very important as we have to deal with various type of waves and we have to view them
as well. Try these and have a look on the results.
>> x = [0:0.1:10];
>> y = sin (x);
>> z = cos (x);
>> subplot (3,1,1);
>> plot (x,y);
>> grid on;
>> subplot (3,1,2);
>> plot (x,z);
>> grid on; hold on;
>> subplot (3,1,3);
>> stem (x,z);
>> grid on;
>> hold on;
>> subplot (3,1,3);
>> stem (x,y, ,'r');
Take help on the functions and commands that you don’t know. See the difference between the stem
and plot.
See help on plot, figure, grid, hold, subplot, stem and other features of it.
M-FILES
MATLAB can execute a sequence of statements stored in disk files. Such files are called M-files
because they must have the file type ‘.m’. Lot of our work will be done with creation of m-files.
There are two types of m-files: Script and function files.
Script Files
We can use script files in order to write long programs such as one on the previous page. A script
file may contain any command that can be entered on the prompt. Script files can have any name but
they should be saved with “.m” extension. In order to excurse an m-file from the prompt, just type its
Page | 38
Lab Manual of ‘Analogue & Digital Communication’
name on the prompt. You can make an m-file by typing edit on the prompt or by clicking on the file
then new and m-file. See an example of m-file. Write it and see the results.
% This is comment
% A comment begins with a percent symbol
% The text written in the comments is ignored by the MATLAB
% comments in your m-files.
x = [0:0.1:10];
y = sin (x);
subplot (2,2,1);
plot (x,y, ,'r');
grid on;
z = cos (x);
subplot (2,2,2);
plot (x,z);
grid on;
w = 90;
yy = 2*pi*sin (x+w)
subplot (2,2,3);
plot (x,yy);
grid on;
zz = sin (x+2*w);
subplot (2,2,4);
stem (x,zz, ,'g'); Figure 11.1 Plot of sin and cosine signals
hold on;
stem (x,y, ,'r');
grid on;
Function Files
MATLAB have many built-in functions including trigonometry, logarithm, calculus and hyperbolic
functions etc. In addition we can define our own functions and we can use built-in functions in our
functions files as well. The function files should be started with the function definition and should be
saved with the name of function. The general format of the function file is
Generation of Signals
Signals are represented mathematically as a function of one or more independent variables. We will generally
refer to the independent variable as time. Therefore, we can say a signal is a function of time. Write these
instructions in m-file as execute to see the result.
Page | 39
Lab Manual of ‘Analogue & Digital Communication’
Sinusoidal Sequence:
% Sinusoidal signals
% 2sin( 2πτ-π/2)
t=[-5:0.01:5];
x=2*sin((2*pi*t)-(pi/2));
plot(t,x)
grid on;
axis([-6 6 -3 3])
ylabel (‘x(t)’)
xlabel (‘Time(sec)’)
title (‘Figure 2.1’)
See the output, change the phase shift value and observe the differences.
Delta (n) = 1 n = 0
=0 n≠0
We are making a function named imseq and we further use this function in next experiments of this
lab. The MATLAB code is given below:
Page | 40
Lab Manual of ‘Analogue & Digital Communication’
x = [(n-n0) == 0];
Unit Step Sequence:
It is defined as
u(n) = 1 n ≥ 0
0 n≤0
It is defined as:
We require an array operator “ .^ ” to implement a real exponential sequence. See the MATLAB
code below
>> n = [0:10];
>> x = (0.9).^n;
It is defined as:
Where ais called the attenuation and b is the frequency in radians. It can be implemented by
following MATLAB script.
>> n = [0:10];
>> x = exp ((2+3j)*n);
Random Sequence:
Many practical sequences cannot be described by the mathematical expressions like above, these are
called random sequences. They depend upon the parameters like probability density function or their
statistical moments. In MATLAB two types of random sequences are available. See the code below:
Page | 41
Lab Manual of ‘Analogue & Digital Communication’
And
>>randn (1,N)
The above instruction generates a length N random sequence whose elements are uniformly
distributed between [0,1]. And the last instruction, randn generates a length N Gaussian random
sequence with mean 0 and variance 1. Plot these sequences.
% example 2.3
%Generation of random sequence
n = [0:10];
x = rand (1, length (n));
y = randn (1, length (n));
plot (n,x) ;
grid on;
hold on;
plot(n,y,'r');
ylabel ('x & y')
xlabel ('n')
title ('Figure 2.3')
Periodic Sequences:
A sequence is periodic if it repeats itself after equal interval of time. The smallest interval is called
the fundamental period. Implement code given below and see the periodicity.
% Example 2.4
% Generation of periodic sequences
n = [0:4];
x = [1 1 2 -1 0];
subplot (2,1,1);
stem (n,x);
grid on;
axis ([0 14 -1 2]);
xlabel ('n');
ylabel ('x(n)');
title ('Figure 2.4(a)');
xtilde = [x,x,x];
length_xtilde = length (xtilde);
n_new = [0:length_xtilde-1];
subplot (2,1,2);
stem (n_new,xtilde,'r');
grid on;
xlabel ('n');
ylabel ('perodic x(n)');
title ('Figure 2.4(b)');
Page | 42
Lab Manual of ‘Analogue & Digital Communication’
Page | 43
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 12
COMMUNICATION SIGNALS: OPERATIONS
OBJECTIVE:
To learn the use of MATLAB for different operations on signals.
To develop a thorough understanding of communication signals and their basic operations as
used in Analogue Communication.
THEORY
SIGNALS OPERATIONS:
Signal Addition
This is basically sample by sample addition. The definition is given below:
The length of x1 and x2 should be equal. See the MATLAB code below:
function [y,n] = sigadd(x1,n1,x2,n2)
% implement y(n) = x1(n) + x2 (n)
% y = sum sequence over n, which include n1 and n2
% x1 = first sequence over n1
% x2 = second sequence over n2 (n2 can be different from n1)
n = min(min(n1),min(n2)): max(max(n1),max(n2)); %duration of y(n)
y1 = zeros(1,length(n)); % initialization
y2 = y1;
y1(find((n>=min(n1))&(n<=max(n1))==1))=x1; % x1 with duration of y
y2(find((n>=min(n2))&(n<=max(n2))==1))=x2; % x2 with duration of y
y = y1 + y2;
Page | 44
Lab Manual of ‘Analogue & Digital Communication’
Signal Multiplication:
The multiplication of two signals is basically sample by sample multiplication or you can say dot
multiplication. By definition it is
It is implemented by the array operator ‘ .* ‘ that we studied in last lab. A signal multiplication
function is developed that is similar to the sigadd function. See the code below:
_______________________________________________________
Page | 45
Lab Manual of ‘Analogue & Digital Communication’
n1 = [0:0.1:10];
x1 = sin (n1);
n2 = [-5:0.1:7];
x2 = 4*sin (n2);
[y,n] = sigmult(x1,n1,x2,n2);
subplot (3,1,1);
stem (n1,x1);
grid on;
axis ([-5 10 -5 5]);
xlabel ('n1');
ylabel ('x1(n)');
title ('1st signal');
subplot (3,1,2);
stem (n2,x2);
grid on;
hold on;
axis ([-5 10 -5 5]);
xlabel ('n2');
ylabel ('x2(n)');
title ('2nd signal');
subplot (3,1,3);
stem (n,y,'r');
grid on;
axis ([-5 10 -5 5]);
xlabel ('n');
ylabel ('y(n)');
title ('Multiplied Signals');
Scaling:
Page | 46
Lab Manual of ‘Analogue & Digital Communication’
In this operation the samples of the signal is multiplied by a scalar α. The mathematical operator * is
used for the implementation of the scaling property.
α{x(n)} = { α x(n)}
1. Shifting
In this operation, each sample of the signal is shifted by k to get a shifted signal. By definition:
y(n) = {x (n-k)}
In this operation there is no change in the array or vector x, that contains the samples of the signal.
Only n is changed be adding k to each element. The function is given below:
%----------------------------------------------
[y1,n1] = sigshift(x,n,2.5);
subplot (3,2,2);
stem (n1,y1);
axis ([-12 12 0 3]);
grid on;
xlabel ('n');
ylabel ('y1(n)');
Page | 47
Lab Manual of ‘Analogue & Digital Communication’
Page | 48
Lab Manual of ‘Analogue & Digital Communication’
Folding:
In this operation each sample of x(n) is flipped around n=0 to obtain a folded signal y(n).
y (n) = {x(-n)}
In MATLAB, this function is implemented by using a built-in function fliplr(x) and –fliplr(x). Its
implementation is given below:
Sample Summation:
This operation is different from sigadd function. In this operation we add all the sample values of
any signal x(n) between any two of its index values. By definition
In MATLAB it is implemented by the sum(x(n1:n2)) command. See the code below for the
demonstration of above function.
Sample Product:
This operation also differs from the sigmult function. It implies the sample values over the range
n1:n2. It is implemented by the prod(x(n1:n2)). See the code below.
>> x = [0 1 2 3 4 5]
>> prod(x(2:5))
Energy:
The energy of any signal x is computed by the mathematical relation:
Where the subscript * is used for complex conjugate of the signal x. The energy of the finite duration
signal is computed in MATLAB as.
>> Ex = sum (x.*conj(x));
Or
Page | 49
Lab Manual of ‘Analogue & Digital Communication’
xe(-n) = xe(n)
xo(-n) = -xo(n)
See the example below:
% Generation of even and odd signals
n1 = [0:0.01:1];
x1 = 2*n1;
n2 = [1:0.01:2];
x2 = -2*n2+4;
n = [n1,n2];
x = [x1,x2];
%Even Signal
[xe,ne] = sigfold(x,n);
%Plotting of original signal
subplot (3,1,1);
plot (n,x);
axis ([-4 4 0 2.5]);
grid on;
%Plotting of original signal + even signal
subplot (3,1,2);
plot (n,x/2,ne,xe/2);
axis ([-4 4 0 2.5]);
grid on;
% Plotting of original signal + odd signal
xo = -xe;
no = ne;
subplot (3,1,3);
plot (n,x/2,no,xo/2);
axis ([-4 4 -2.5 2.5]);
grid on;
Page | 50
Lab Manual of ‘Analogue & Digital Communication’
The above example shows to develop the even and odd signals from a given signal. Now we are
going to develop a function to compute the even and odd signals for ourselves. See the code of
function file below:
Now change the example 3.2 code to implement the same example with this function.
2. Convolution:
The convolution is very important operation as far the system as their impulse responses are concern.
It is mathematically defines as:
y (n) = x(n) * h(n)
Where h(n) is the impulse response of the system. The above definition is best depicted by the
following diagram.
>> x = [1 5 3 9 1 2 3 8 5 -3 0 4];
>> h = [1 0 2 3];
>> y = conv(x,h);
A function is developed which will evaluate convolution in a more precise form and also calculate
the indexes to help us plot the sequences.
Page | 51
Lab Manual of ‘Analogue & Digital Communication’
% x = original signal
% nx = index values
% h = impulse response signal
% nh = index values for impulse response
nyb = nx(1) + nh(1);
nye = nx(length(x)) + nh(length(h));
ny = [nyb:nye];
y = conv(x,h);
1. x(n) = u(n) – u(n-5). Decompose into even and odd components and plot them.
2. The impulse response of LTI system is h (n) = delta (n-2), if the input to this system is a arbitrary
sequence x(n) of length 10, then plot the original and the convolved outputs of the system. What
is the change if the h(n) = x(n) and input signal is now the previous impulse response of the
system.
3. n = [-2:2]
x1 = [3,2,1,-2,-3];
x2 = [1,1,1,1,1]
Implement y = x1*x2
Page | 52
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 13
INTRODUCTION TO AMPLITUDE MODULATION
(SIMULINK IMPLEMENTATION)
OBJECTIVE:
To identify the spectrum analyzer as used in frequency domain analysis
To identify various types of linear modulated waveforms in time and frequency domain
representation
To implement theoretically functional circuits using the Communication Module Design
System (CMDS)
BACKGROUND:
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 in figure 13.1.
Figure 13.1
Spectrumofasimplesinewave:-Figure13.2showsthedesign forviewingthespectrumofa simplesine
wave.
Page | 53
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.2
Figure13.3showsthetime-domainsinewaveandthecorrespondingfrequencydomainisshown in figure
13.4. The frequency domain spectrum is obtained through a buffered-FFT scope,which
comprisesofaFastFourier Transformof128sampleswhichalsohasabuffering of64ofthem in one frame.
The property block ofthe B-FFTisalsodisplayedinfigure13.5.
Figure 13.3
Page | 54
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.4
Thisis the property box of the Spectrum Analyzer
Figure 13.5
Page | 55
Lab Manual of ‘Analogue & Digital Communication’
FromthepropertyboxoftheB-FFTscopetheaxispropertiescanbechangedandthe
Linepropertiescanbechanged.The lineproperties arenot showninthe above.The Frequency
rangecanbechangedbyusingthefrequencyrange popdown menu andsocanbethey-axisthe
amplitudescalingbechangedtoeitherrealmagnitudeorthedB(logofmagnitude)scale. The
upperlimitcanbespecifiedasshownbytheMinandMaxY-limitseditbox.Thesamplingtime in thiscase has
been set to1/5000.
Note:ThesamplingfrequencyoftheB-FFTscopeshouldmatchwiththesamplingtimeofthe input
timesignal.
AlsoasindicatedabovetheFFTistakenfor128pointsandbufferedwithhalfofthemforan overlap.
CalculatingthePower:
Thepowercanbecalculatedbysquaringthevalueofthevoltageofthe spectrumanalyzer.
Note:Thesignalanalyzerifchosenwithhalfthescale,thespectrumisthesingle-sidedanalyzer, so the
powerin the spectrum isthe total power.
Figure 13.6
Page | 56
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.7
Figure 13.8
Page | 57
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.9
Figure 13.10
Page | 58
Lab Manual of ‘Analogue & Digital Communication’
Theoutputisshownbelow.Itcanbeseenthattheoutputconsistsofjusttwosidebandsat+(fc+
fm)andthe otherat –(fc+fm),i.e.at9kHzand 11kHz.
Figure 13.11
Weobservetheoutputtohaveno10 KHzcomponenti.e.,thecarrierisnotpresent.Theoutput
containsabandat9 KHz(fc-fm)andabandat11 KHz(fc + fm).Thusweobserveadoubleside band
suppressedcarrier. All the transmittedpower isin the2 sidebands.
Byvaryingthecarrierandmessagesignalfrequencies,weobservethatthe2sidebandsmove according to
equation fc ± fm.
Next,thechangestothewaveformparametershavebeenmadeandthentheoutputshavebeen observed.
Andhereare thechangesthat have been made
Page | 59
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.12
Amplitude Modulation
Thisexperiment istheamplitudemodulationformodulationindex a=1 and0.5.
From the equation oftheAM
y=km(1+a⋅cos(2π(1000)t)⋅cos(2π(10000)t
Therepresentationofthesignalinbothtime-domainandfrequencydomainwhenkm=1fora=1
anda=0.5werefoundto be asshowninfigures.
The experimentalset upfor generatinganAM signal lookslikethis:-
Page | 60
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.12
Figure 13.13
Page | 61
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.14
Figure 13.15
Page | 62
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.16
Figure 13.17
Page | 63
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.18
Figure 13.19
Page | 64
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.20
Figure 13.21
Page | 65
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.21
TheDSB-SCsignaloccupiestwicethespacenecessarythanrequiredforholdingthe information.
Therefore,bychoppingoffonepartoftheDSBSC,moresignaltransmissioncanbe
achieved.FilteringtheDSBSCgivestheoutputaseitheraLSB (Lowersideband)ora USB (Upper side
band).The simulationset up for theSSBsignal isshownin figure below
Page | 66
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.22
Figure 13.23
Page | 67
Lab Manual of ‘Analogue & Digital Communication’
Without filtering
Figure 13.24
Figure 13.25
Page | 68
Lab Manual of ‘Analogue & Digital Communication’
Figure 13.26
Figure 13.27
Page | 69
Lab Manual of ‘Analogue & Digital Communication’
CONCLUSION:
1. If message and carrier signal is a square and sine wave having frequency 1KHz and 10Khz
respectively. Then Sketch the spectrum of modulated signal?
2. Draw simulink block diagram of given spectrum?
Magnitude Response
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5
Frequency (in hertz) 4
x 10
Figure 13.29
Page | 70
Lab Manual of ‘Analogue & Digital Communication’
EXPERIMENT 14
INTRODUCTION TO AMPLITUDE MODULATION
(MATLAB IMPLEMENTATION)
OBJECTIVE:
To analyze the spectrum, in time and frequency domain, of Amplitude Modulation.
IMPLEMENTATION:
In this first part of the lab we will focus on a couple of simple examples and plot their spectrum, in
time and in frequency domain. In second part of this lab we will write the code for Amplitude
modulation with carrier and suppress carrier and then focus on two tune modulation and at the end of
this lab we will write a code for single side band.
CODE:
%% Time specifications:
Fs = 10000; 1
dt = 1/Fs;
StopTime = 0.5; 0.5
Magnitude
t = (0:dt:StopTime-dt)';
0
N = size(t,1);
-0.5
Fc = 1000;
x = cos(2*pi*Fc*t); -1
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Time
subplot(2,1,1)
plot(t,x); 0.8
axis([0 1/100 -1 1]);
0.6
xlabel('Time');
Magnitude
ylabel('Magnitude') 0.4
%% Fourier Transform:
X = fftshift(fft(x)); 0.2
%% Frequency specifications:
dF = Fs/N; 0
-5000 -4000 -3000 -2000 -1000 0 1000 2000 3000 4000 5000
f = -Fs/2:dF:Fs/2-dF; Frequency (in hertz)
%% Plot the spectrum:
subplot(2,1,2) Figure 14.1 Spectrum of Cos2πft where f = 1kHz
plot(f,abs(X)/N);
xlabel('Frequency (in hertz)');
ylabel('Magnitude')
Page | 71
Lab Manual of ‘Analogue & Digital Communication’
Fs = 1000000; 2
dt = 1/Fs;
StopTime = 0.5; 1
Magnitude
t = (0:dt:StopTime-dt)';
N = size(t,1); 0
Fc = 1000; -1
x = SQUARE(2*3.14*Fc*t);
-2
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
subplot(2,1,1)
Time -3
plot(t,x); x 10
axis([0 1/200 -2 2]);
xlabel('Time');
ylabel('Magnitude'); 0.4
%% Fourier Transform:
Magnitude
X = fftshift(fft(x)); 0.3
%% Frequency specifications: 0.2
dF = Fs/N;
f = -Fs/2:dF:Fs/2-dF; 0.1
%% Plot the spectrum:
subplot(2,1,2) 0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
plot(f,abs(X)/N); Frequency (in hertz) 5
axis([-100000 100000 0 0.5]); x 10
xlabel('Frequency (in hertz)');
Figure 14.2 Spectrum of Square Wave (1000 Hz)
ylabel('Magnitude');
Cos2(2πft) f = 1kHz
1
Fs = 30000;
dt = 1/Fs; 0.5
Magnitude
StopTime = 0.5;
t = (0:dt:StopTime-dt)'; 0
N = size(t,1);
-0.5
Fc = 1000;
x = cos(2*pi*Fc*t); -1
x=x.*x; 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Time
subplot(2,1,1)
plot(t,x);
xlabel('Time'); 0.6
ylabel('Magnitude');
Magnitude
Page | 72
Lab Manual of ‘Analogue & Digital Communication’
Doubleside-band –suppressedcarriermodulation
1
Fs = 30000;
dt = 1/Fs; 0.5
Magnitude
StopTime = 0.5;
t = (0:dt:StopTime-dt)'; 0
N = size(t,1);
Fc1 = 300; -0.5
x1 = cos(2*pi*Fc1*t);
Fc2 = 5000; -1
x2 = cos(2*pi*Fc2*t); 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
x=x1.*x2; Time
subplot(2,1,1)
plot(t,x);
axis([0 1/100 -1 1]); 0.4
xlabel('Time');
Magnitude
ylabel('Magnitude'); 0.3
X = fftshift(fft(x)); 0.2
dF = Fs/N; 0.1
f = -Fs/2:dF:Fs/2-dF;
subplot(2,1,2) 0
-6000 -4000 -2000 0 2000 4000 6000
plot(f,abs(X)/N);
Frequency (in hertz)
axis([-6000 6000 0 0.5]);
xlabel('Frequency (in hertz)'); Figure 14.4 Spectrum of AM-SC (DSB)
ylabel('Magnitude');
t = (0:dt:StopTime-dt)';
N = size(t,1); 0
Fc1 = 300;
x1 = cos(2*pi*Fc1*t); -1
Fc2 = 5000;
x2 = cos(2*pi*Fc2*t);
-2
x=(1+x1).*x2; 0 0.002 0.004 0.006 0.008 0.01
subplot(2,1,1) Time
plot(t,x);
axis([0 1/100 -2 2]);
xlabel('Time');
ylabel('Magnitude')
X = fftshift(fft(x)); 0.4
Magnitude
dF = Fs/N;
f = -Fs/2:dF:Fs/2-dF;
%% Plot the spectrum: 0.2
subplot(2,1,2)
plot(f,abs(X)/N);
xlabel('Frequency (in hertz)'); 0
ylabel('Magnitude') -6000 -4000 -2000 0 2000 4000 6000 8000
Frequency (in hertz)
Figure 14.5 Spectrum of AM-WC (µ = 1)
Page | 73
Lab Manual of ‘Analogue & Digital Communication’
Magnitude
t = (0:dt:StopTime-dt)';
0
N = size(t,1);
Fc1 = 300;
x1 = cos(2*pi*Fc1*t); -1
Fc2 = 5000;
x2 = cos(2*pi*Fc2*t); -2
x=(1+0.5*x1).*x2; 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
subplot(2,1,1) Time
plot(t,x);
axis([0 1/100 -2 2]);
xlabel('Time');
0.6
ylabel('Magnitude');
Magnitude
X = fftshift(fft(x));
dF = Fs/N; 0.4
f = -Fs/2:dF:Fs/2-dF;
subplot(2,1,2) 0.2
plot(f,abs(X)/N);
zoom on
xlabel('Frequency (in hertz)'); -6000 -4000 -2000 0 2000 4000 6000
ylabel('Magnitude'); Frequency (in hertz)
Figure 14.6 Spectrum of AM-WC (µ = 0.5)
StopTime = 0.5;
t = (0:dt:StopTime-dt)'; 0
N = size(t,1);
Fc1 = 1000; -1
x1 = cos(2*pi*Fc1*t);
Fc2 = 2000;
-2
x2 = cos(2*pi*Fc2*t); 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Fc3 = 10000; Time
x3 = cos(2*pi*Fc3*t);
x=(x1+x2).*x3; 0.4
subplot(2,1,1)
plot(t,x); 0.3
xlabel('Time');
Magnitude
ylabel('Magnitude');
axis([0 1/100 -2 2]); 0.2
X = fftshift(fft(x));
dF = Fs/N; 0.1
f = -Fs/2:dF:Fs/2-dF;
subplot(2,1,2) 0
plot(f,abs(X)/N); -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5
xlabel('Frequency (in hertz)'); Frequency (in hertz) 4
x 10
ylabel('Magnitude'); Figure 14.7 Spectrum of Two Tune Modulation (SC)
Page | 74
Lab Manual of ‘Analogue & Digital Communication’
Magnitude
t = (0:dt:StopTime-dt)';
N = size(t,1); 0
Fc1 = 1000;
x1 = cos(2*pi*Fc1*t); -1
Fc2 = 2000;
x2 = cos(2*pi*Fc2*t); -2
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
Fc3 = 10000;
Time
x3 = cos(2*pi*Fc3*t);
x=(1+(x1+x2)).*x3; 0.8
subplot(2,1,1)
plot(t,x); 0.6
xlabel('Time');
Magnitude
ylabel('Magnitude'); 0.4
axis([0 1/100 -2 2]);
X = fftshift(fft(x)); 0.2
dF = Fs/N;
f = -Fs/2:dF:Fs/2-dF; 0
subplot(2,1,2) -2 -1.5 -1 -0.5 0 0.5 1 1.5 2
plot(f,abs(X)/N); Figure 14.8 Spectrum of Two
Frequency Tune Modulation ( µ =1)
(in hertz) 4
x 10
xlabel('Frequency (in hertz)');
ylabel('Magnitude');
-2
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
-2
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
0.8
Amplitude
0.6
0.4
0.2
-1 -0.5 0 0.5 1
Frequency (in hertz) 4
x 10
Figure 14.9 Spectrum of Two Tune Modulation ( µ = 0.5)
Page | 75
Lab Manual of ‘Analogue & Digital Communication’
-2
0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
0.5
0
-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5
4
x 10
Uper Side Band (USB)
1
0.5
0
-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5
4
x 10
Figure 14.8 Spectrum of SSB
Page | 76
Lab Manual of ‘Analogue & Digital Communication’
Page | 77
Lab Manual of ‘Analogue & Digital Communication’
Page | 78
Lab Manual of ‘Analogue & Digital Communication’
Page | 79
Lab Manual of ‘Analogue & Digital Communication’
Page | 80
Lab Manual of ‘Analogue & Digital Communication’
Page | 81
Lab Manual of ‘Analogue & Digital Communication’
Page | 82
Lab Manual of ‘Analogue & Digital Communication’
Page | 83
Lab Manual of ‘Analogue & Digital Communication’
Page | 84
Lab Manual of ‘Analogue & Digital Communication’
Page | 85
Lab Manual of ‘Analogue & Digital Communication’
Page | 86
Lab Manual of ‘Analogue & Digital Communication’
Page | 87
Lab Manual of ‘Analogue & Digital Communication’
Page | 88
Lab Manual of ‘Analogue & Digital Communication’
Page | 89
Lab Manual of ‘Analogue & Digital Communication’
Page | 90
Lab Manual of ‘Analogue & Digital Communication’
Page | 91
Lab Manual of ‘Analogue & Digital Communication’
Page | 92
Lab Manual of ‘Analogue & Digital Communication’
Page | 93
Lab Manual of ‘Analogue & Digital Communication’
Page | 94
Lab Manual of ‘Analogue & Digital Communication’
Notice:
Copying and plagiarism of lab reports is a serious academic misconduct. First instance of copying
may entail ZERO in that experiment. Second instance of copying may be reported to DC. This may
result in awarding FAIL in the lab course.
Page | 95
Lab Manual of ‘Analogue & Digital Communication’
Remember that the voltage of the electricity and the available electrical current in EE labs
has enough power to cause death/injury by electrocution. It is around 50V/10 mA that the
“cannot let go” level is reached. “The key to survival is to decrease our exposure to energized
circuits.”
If a person touches an energized bare wire or faulty equipment while grounded, electricity
will instantly pass through the body to the ground, causing a harmful, potentially fatal, shock.
Each circuit must be protected by a fuse or circuit breaker that will blow or “trip” when its
safe carrying capacity is surpassed. If a fuse blows or circuit breaker trips repeatedly while in
normal use (not overloaded), check for shorts and other faults in the line or devices. Do not
resume use until the trouble is fixed.
It is hazardous to overload electrical circuits by using extension cords and multi-plug outlets.
Use extension cords only when necessary and make sure they are heavy enough for the job.
Avoid creating an “octopus” by inserting several plugs into a multi-plug outlet connected to a
single wall outlet. Extension cords should ONLY be used on a temporary basis in situations
where fixed wiring is not feasible.
Dimmed lights, reduced output from heaters and poor monitor pictures are all symptoms of
an overloaded circuit. Keep the total load at any one time safely below maximum capacity.
If wires are exposed, they may cause a shock to a person who comes into contact with them.
Cords should not be hung on nails, run over or wrapped around objects, knotted or twisted.
This may break the wire or insulation. Short circuits are usually caused by bare wires
touching due to breakdown of insulation. Electrical tape or any other kind of tape is not
adequate for insulation!
Electrical cords should be examined visually before use for external defects such as: Fraying
(worn out) and exposed wiring, loose parts, deformed or missing parts, damage to outer
jacket or insulation, evidence of internal damage such as pinched or crushed outer jacket. If
any defects are found the electric cords should be removed from service immediately.
Pull the plug not the cord. Pulling the cord could break a wire, causing a short circuit.
Plug your heavy current consuming or any other large appliances into an outlet that is not
shared with other appliances. Do not tamper with fuses as this is a potential fire hazard. Do
not overload circuits as this may cause the wires to heat and ignite insulation or other
combustibles.
Keep lab equipment properly cleaned and maintained.
Ensure lamps are free from contact with flammable material. Always use lights bulbs with
the recommended wattage for your lamp and equipment.
Be aware of the odor of burning plastic or wire.
ALWAYS follow the manufacturer recommendations when using or installing new lab
equipment. Wiring installations should always be made by a licensed electrician or other
qualified person. All electrical lab equipment should have the label of a testing laboratory.
Be aware of missing ground prong and outlet cover, pinched wires, damaged casings on
electrical outlets.
Page | 96
Lab Manual of ‘Analogue & Digital Communication’
Inform Lab engineer / Lab assistant of any failure of safety preventive measures and safe
practices as soon you notice it. Be alert and proceed with caution at all times in the
laboratory.
Conduct yourself in a responsible manner at all times in the EE Labs.
Follow all written and verbal instructions carefully. If you do not understand a direction or
part of a procedure, ASK YOUR LAB ENGINEER / LAB ASSISTANT BEFORE
PROCEEDING WITH THE ACTIVITY.
Never work alone in the laboratory. No student may work in EE Labs without the presence
of the Lab engineer / Lab assistant.
Perform only those experiments authorized by your teacher. Carefully follow all
instructions, both written and oral. Unauthorized experiments are not allowed.
Be prepared for your work in the EE Labs. Read all procedures thoroughly before entering
the laboratory. Never fool around in the laboratory. Horseplay, practical jokes, and pranks
are dangerous and prohibited.
Always work in a well-ventilated area.
Observe good housekeeping practices. Work areas should be kept clean and tidy at all times.
Experiments must be personally monitored at all times. Do not wander around the room,
distract other students, startle other students or interfere with the laboratory experiments of
others.
Dress properly during a laboratory activity. Long hair, dangling jewelry, and loose or baggy
clothing are a hazard in the laboratory. Long hair must be tied back, and dangling jewelry
and baggy clothing must be secured. Shoes must completely cover the foot.
Know the locations and operating procedures of all safety equipment including fire
extinguisher. Know what to do if there is a fire during a lab period; “Turn off equipment, if
possible and exit EE lab immediately.”
Page | 97
Lab Manual of ‘Analogue & Digital Communication’
For hardware based labs, the format of the report will include:
Introduction
An RC circuit is a first order circuit that utilizes a capacitor as an energy storage element whereas a
resistor as an energy wastage element. RC circuits are building blocks of electronic devices and their
thorough understanding is important in comprehending advance engineering systems such as
transistors and transmission lines.
An RC circuit can be operated with both DC and AC sources. In this lab we study transient response
of RC circuits with a square wave as a DC source. During the DC operation of an RC circuit the
voltage across the capacitor or the resistor show energy storing (capacitor charging) and dissipating
(capacitor discharging via resistor) mechanisms of the circuit. The capacitor charging or discharging
curves then lead to determine time constant of the circuit where the time constant signifies time
required by the RC circuit to store or waste energy.
Objective:
Measurements:
Page | 98
Lab Manual of ‘Analogue & Digital Communication’
Both input (a square wave) and output (voltage across capacitor) waveforms are monitored on an
oscilloscope. The capacitor charging is observed during "on" part of the square waveform whereas
the capacitor discharging is observed during "off" part of the square waveform (Fig. 2). We measure
the time constant from the capacitor charging or discharging curve. While keeping the capacitor
value constant, we also measure time constants with various resistor values (Table I).
Resistance
270 Ω 330 Ω 470 Ω 1 kΩ 2.2 kΩ 3.3 kΩ
(Nominal)
Resistance
(Measured)
Time constant
(Calculated)
Time constant
(Measured)
Capacitance
(Measured)
Page | 99
Lab Manual of ‘Analogue & Digital Communication’
Issues:
Mention any issue(s) you encountered during the experiment and how they were resolved
Conclusions:
Both of the above conclusions are also easily verifiable by solving differential equation for the RC
circuit.
Applications:
An RC circuit can be employed for a camera flash. The capacitor discharges through the flash light
during a picture taking event.
Page | 100