D C Lab Manual
D C Lab Manual
CONTENTS
Sl.
Experiments Page Nos.
No.
1. Verification of Sampling Theorem 7-9
2. Delta Modulation 10-12
3. Adaptive Delta Modulation 13-15
4. TDM of two band limited Signals 16-19
5. ASK generation and detection 20-22
6. FSK generation and detection 23-26
7. PSK generation and detection 27-29
8. Line Coding and Decoding 30-38
9. DPSK generation and detection 39-42
10. QPSK generation and detection 43-47
11. PCM generation and detection using a CODEC chip 48-50
12. Optical Fiber (propagation loss, Bending loss, Numerical aperture) 51-55
13. Analog and Digital (with TDM) Communication link using OFC 56-60
B19EC5090 L T P C
Digital Communications Lab
Duration :14 Wks 0 0 2 2
Prerequisites:
Fundamentals of communications
Course Description:
Digital communication has proliferated in a big way in previous and today’s
electronic and telecommunication industries. It allows devices to exchange information digitally
while making the communication more clear and accurate without losses. In addition to
changing our daily lives, the transformation in digital communications paves a way to many
applications in fields such as signal processing, video compression, data compression, mobile
technology, etc. This course helps students to get a good idea of how the signals are digitized
and why digitization is needed. Various waveform coding techniques are discussed in detail.
The clear intentions behind choosing an appropriate digital modulation scheme are taught. This
course also covers different techniques to share a common channel among multiple devices for
data transmission. Finally, it presents various methods of spread spectrum technology in pursuit
of achieving secured communication.
Course Objectives:
The objectives of this course are to:
1. Demonstrate the Digital communication experiments.
1. Verify Sampling theorem for different frequencies.
2. Demonstrate different waveform coding techniques.
3. Demonstrate different digital modulation techniques.
4. Demonstrate losses and multiplexing techniques over an OFC.
Course Outcomes:
On completion of this course the student will be able to
1. Develop ability to verify sampling theorem.
1. Demonstrate multiplexing of two signals.
2. Construct the circuits for various digital modulation techniques.
3. Develop ability to generate PCM signals.
I –CYCLE
Delta Modulation
II –CYCLE
FSK generation and detection.
III -CYCLE
QPSK generation and detection
THEORY: Sampling theorem states that a base band signal band limited to fm Hz can be
reconstructed from its samples only when it is sampled at a rate, fs greater than or equal to 2
fm.Flat top sampling is one of the practical aspects of sampling & signal recovery. In practice,
the sampling of analog signal is accomplished by means of high speed switching transistor
circuits. The operation of a physical switching circuit, however fast, generates a sequence of
rectangular samples of the signal. On another hand, rectangular sampling reduces the required
transmission bandwidth compared to ideal sampling.
Flat top sampling introduces amplitude distortion as well as a delay of T / 2, where T is
the duration of rectangular sample. The distortion caused by lengthening the samples is
referred to as ‘aperture effect’. This distortion may be corrected by connecting an equalizer in
cascade with the low-pass reconstruction filter.
TRANSISTOR BC 107:
CIRCUIT DIAGRAM:
Sampling Circuit:
PROCEDURE:
1. Connections are made as shown in the circuit diagram.
2. Apply a sine wave of 5Vpp, 500 Hz as the test modulating signal.
3. Apply a pulse carrier signal of about 5-10Vpp, 5 KHz as the carrier signal.
4. The wave forms for the sampled output using reconstruction signal are
observed on the CRO.
5. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
RESULT: Sampling Theorem has been verified for fc<2fm, fc=2fm, fc>2fm.
BLOCK DIAGRAM:
PROCEDURE:
2. Apply an input sine wave of 250 HZ of 0 V through pot p1 and connect port 250 Hz to
port IN of the input buffer.
3. Connect output of buffer port out to digital sampler input port IN1.
4. Selecta a clock rate of 8 KHz by pressing Switch S1.The selected clock is indicated by
LED glow.
6. Connect the output of digital sampler port OUT to input port IN of integrator 1.
7. Connect the output of integrator 1 port OUT to input port IN2 of digital sampler.
8. Observe the Delta modulated output at the output of digital sampler port OUT and
compare it with the clock rate selected.
9. Repeat the above mentioned procedure with different signal sources and selecting the
different clock rates and observe the response of delta modulator.
10. Connect the Delta modulated output port OUT of digital sampler to the input of Delta
Demodulator section port IN of Demodulator.
11. Connect output of demodulator port OUT to the input of integrator 3 port IN.
12. Connect output of integrator 3 port OUT to the input of output buffer port IN.
13. Connect output of output buffer port OUT to the input of 2nd order filter port IN.
14. Connect output of 2nd order filter port OUT to the input of 4th order filter port IN.
16. Observe the reconstructed signal through 2nd order filter and 4th order filter.
WAVEFORMS:
THEORY: Adaptive delta modulation is a modification of delta modulation in which the step
size is not fixed and is in time varying form. In particular, during a steep segment of the input
signal the step size is increased .Conversely, when the input signal is varying slowly, the step
size is reduced. In this way the step size is adapted to the level of the input signal. The resulting
method is called as adaptive delta modulation. ADM reduces slope error, at the expense of
increasing quantizing error. This error can be reduced by using a low pass filter.
BLOCK DIAGRAM:
PROCEDURE:
2. Apply a input sine wave of 500 HZ of 2 V or above through pot P2 and connect port
1KHz to port IN of the input buffer.
3. Connect output of buffer port OUT to digital sampler input port IN1.
4. Select a clock rate of 32 KHz by pressing Switch S1.The selected clock is indicated by
LED glow.
6. Connect the output of digital sampler port OUT to input port IN of integrator 2.
7. Connect the output of integrator 2 port OUT to input port IN2 of digital sampler.
9. Connect the Delta modulated output port OUT of digital sampler to the input of Delta
Demodulator section port IN of Demodulator.
10. Connect output of demodulator port OUT to the input of integrator 3 port IN.
11. Connect output of integrator 3 port OUT to the input of output buffer port IN.
12. Connect output of output buffer port OUT to the input of 2nd order filter port IN.
13. Connect output of 2nd order filter post OUT to the input of 4th order filter post IN.
15. Observe the reconstructed signal through 2nd order filter and 4th order filter.
WAVEFORMS:
AIM: To illustrate the working of Time division multiplexing and recovery of two
bandlimited signals.
APPARATUS REQUIRED: Transistor SL100, SK100, Op-amp μA 741, Resistors 1KΩ
8nos, 1.5KΩ, Function Generator, Regulated DC Power supply, CRO.
THEORY: TDM is a technique used for transmitting several message signals over a
communication channel by dividing the time frame into slots, one slot for each message signal.
This is a digital technique in which the circuit is highly modular in nature and provides reliable
and efficient operation. There is no cross talk in TDM due to circuit non-linearity since the
pulses are completely isolated. But it also has disadvantages, which include timing jitter and
synchronization is required.
Here, the carrier used is a square wave like in pulse modulation techniques. When the
carrier is ON, one of the messages gets sampled and is output. When the carrier is OFF,
another message gets sampled and is output. The amplitude of a periodic train of pulses is thus
varied in proportion to the message signals. TDM provides an effective method for sharing a
communication channel.
CIRCUIT DIAGRAM:
Modulation:
Demodulation:
PROCEDURE:
1. Rig up the circuit as shown in the circuit diagram for Multiplexer.
2. Apply two input message signals m1 (sinewave) and m2 (Triangular) of 2V (P-P),
200Hz.
3. Apply a carrier signal of 2V (P-P), 2 kHz.
4. Observe the multiplexed output in CRO.
5. Rig up the Demodulator circuit as shown in the circuit diagram for Demultiplexer.
6. Observe the Demultiplexer output in the CRO.
7. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
MULTIPLEXED OUTPUT:
DEMULTIPLEXED OUTPUT:
RESULT: TDM and its recovery has been verified by observing the waveforms.
5. ASK GENERATION AND DETECTION
AIM: To Generate and detect ASK to transmit digital data using a suitable carrier signal.
CIRCUIT DIAGRAM:
Modulation:
Demodulation:
DESIGN:
(a) Modulation:
Let ICsat = 2mA, hfe = 30 VBEsat = 0.7V, VCEsat = 0.2v
We know that IB > IC/ hfe
= 2mA/30
IB = 0.06667mA
Choose IB = 1 mA
Then RE = VE/IE == (Vc-VCE)/IE (IE=IB+IC)
= (5-0.2)/3mA
= 1.6KΩ (Choose standard value 1.5KΩ)
Also RB= (Vm-VBE-VE)/IB
= (10-0.7-0-4.8)/ 1mA
=4.5K Ω (Choose standard value 4.7KΩ)
(b) Demodulation:
We know that for envelope detector 1/fc < RC < 1/fm
Take fcmax = 10 kHz
Then, 1/10 kHz < R x C <1/1 kHz
So, 0.1ms< R x C < 1ms.
Take R x C = 0.22ms, and let C = 0.22F
Then R = 1KΩ
PROCEDURE:
1. Rig up the modulation circuit as shown in the figure.
2. Apply a message signal of pulse wave of 10 V (P-P), 1 kHz.
3. Apply a carrier signal of sinusoidal wave of 10V (P-P), 10 kHz.
4. Note the peak to peak value of the ASK modulated signal from the CRO.
5. Rig up the demodulation circuit and observe demodulated signal in CRO.
6. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
RESULT: Amplitude shift keying generation and detection has been verified.
AIM: To generate and detect FSK to transmit digital data using a suitable carrier signal.
THEORY: Frequency Shift Keying is the process of generating a modulated signal from a
digital data input. If the incoming bit is 1, a signal with frequency f1 is sent for the duration of
the bit Tb. If the bit is 0, a signal with frequency f2 is sent for the duration of this bit. This is
the basic principle behind FSK modulation.
Two transistors are used in switching configuration to obtain FSK signal. When the input bit is
1, NPN transistor is ON and the corresponding carrier signal is output. If the input bit is 0, PNP
transistor is ON and the corresponding carrier is output. The output is given to an OP-AMP to
achieve amplification.
In the demodulator circuit, the FSK modulated signal is applied to a low pass filter. This filter
passes the frequency of either 0 or 1. This filter passes the selected frequency and rejects the
other. Thus ASK is obtained and then demodulated using envelope detector and comparator.
CIRCUIT DIAGRAM:
Modulation:
Demodulation:
DESIGN:
Modulation:
ICsat = 2mA; hfe = 30; VBEsat = 0.7V; VCEsat = 0.2v
We know that IB =IC/ hfe
= 2mA/0.3
IB = 0.0667mA
Choose IB=6.67mA (To make Q point be very much in the saturation region)
Also RE = VE/IE == (Vc-VCE)/IE
= (5-0.2)/8.667mA
= 553.82Ω (=560 Ω)
Also RB= (Vm-VBE-VE)/IB
= (10-0.7-0-4.8)/ IB
RB=675 Ω (=680 Ω)
Demodulation:
For LPF:
To convert FSK signal to ASK, the LPF must allow 1 KHz signal but reject 3 KHz signal
or vice versa.
1
1KHz f c , LPF 3KHz
2RC .
1
R 1.06 K
Let C=0.1 F, then 2f c , LPF C
(Choose R=1KΩ)
Then R = 10KΩ
PROCEDURE:
1. Rig up the modulation circuit as shown in the figure.
3. Generate two carrier signals of sinusoidal wave C1 (t) of 5-10V (P-P), 3 KHz and
4. Note the frequencies fmax and fmin of the FSK modulated signal from the CRO.
WAVEFORMS:
RESULT: Frequency shift keying generation and detection has been verified.
7. PSK GENERATION AND DETECTION
AIM: To generate and detect PSK to transmit digital data using a suitable carrier signal.
CIRCUIT DIAGRAM:
Modulation:
Demodulation:
DESIGN:
Modulation:
ICsat = 2mA; hfe = 30; VBEsat = 0.7V; VCEsat = 0.2v
We know that IB > IC / hfe
> 2mA/30
IB >0.0667mA. So choose IB=6.67mA
Also RE = VE/IE == (Vc-VCE)/IE
= (5-0.2)/8.667mA = 553.82Ω (=560 Ω)
Also RB= (Vm-VBE-VE)/IB
= (10-0.7-0-4.8)/ IB =675 Ω (=680 Ω)
Demodulation:
PROCEDURE:
1. Rig up the modulation circuit as shown in the circuit diagram.
4. Note down the 180 degree phase shift of the PSK modulated signal from the CRO.
WAVEFORMS:
RESULT: Phase shift keying generation and detection has been verified.
8. LINE CODING & DECODING
AIM: To demonstrate several line coding and decoding formats for a given 8 bit binary data.
APPARATUS REQUIRED: Line coding and decoding Trainer Kits, Patch Cords and CRO.
THEORY: A line code is the code used for data transmission of a digital signal over a
transmission line. This process of coding is chosen so as to avoid overlap and distortion of
signal such as inter-symbol interference. A line code is a code chosen for use within a
communications system for transmitting a digital signal down a line. The common types of line
encoding are unipolar, polar, bipolar and Manchester encoding.
Non-Return to Zero (NRZ) - The most common and easiest way to transmit digital signals is to
use two different voltage levels for the two binary digits. These signals don’t return to zero
with the clock.
Logic 1 bit is sent as a high level/ high value/ positive voltage
Logic 0 bit is sent as a low level/ low value/ negative voltage
i) NRZ – L (Non return to zero level)
This is the standard positive logic signal format most extensively used in digital circuits.
Logic 1 bit is sent as a high value/ high level
Logic 0 bit is sent as a low value/ low level
ii) NRZ-M (Non return to zero mark)
These are most extensively used in magnetic tape recording.
Logic 1’s bit are marked by change in the levels
Logic 0’s bit are sent by no transitions (keeps sending the previous level).
iii) NRZ-S (Non return to zero space)
These are also used in magnetic tape recording. It is used in wireless and satellite applications.
This is complimentary to NRZ-M.
Logic 1’s bit are sent by no transitions (keeps sending the previous level).
Logic 0’s bit are marked by change in the levels
iv) Unipolar
In unipolar encoding technique, only one voltage levels are used. It uses only one polarity of
voltage level. It is used in non-coherent communication.
Logic 1’s bit are sent when there is a transition between 0 to + Vcc.
Logic 0’s bit are sent when no pulse (zero pulse)
v) Bipolar
In bipolar encoding technique, two voltage levels are used.
Logic 1’s bit are sent when there is a transition between +Vcc to –Vcc (ie, positive or negative
pulse for half the bit period).
0 keeps a zero level during bit period
Biphase (Phase Encoded)
To overcome the limitations of NRZ encoding, biphase encoding techniques can be adopted.
These are used in magnetic tape recording, OFC etc. It uses only half bit duration of pulse
transition. It is a synchronous clock coding technique used by physical layer (in LAN) to
encode the clock and data of synchronous bit stream.
vi) BIO-L (Biphase – Level / Manchester coding)
Two consecutive bits of the same type have a transition at the beginning of a bit period. In
Manchester coding the mid-bit transition serves as a clocking mechanism and also as data.
Logic 1 bit is represented by half bit duration pulse positioned at first half of the bit interval.
Logic 0 bit is represented by half bit duration pulse positioned at second half of the bit interval.
vii) BIO-M (Biphase – Mark / Differential Manchester coding)
In Biphase-M, a transition occurs at the beginning of every bit interval. There is always a
transition halfway between the conditioned transitions.
Logic 1 bit is represented by half bit duration pulse at second transition of the bit interval
Logic 0 bit is represented by no transition (keeps level constant).
viii) BIO-S(Biphase – Space / Differential Manchester coding)
In Biphase-M, a transition occurs at the beginning of every bit interval. There is always a
transition halfway between the conditioned transitions. Thus, used in token ring. In this,
inversion in the middle of each bit is used for synchronization.
Logic 1 bit is represented by no transition (keeps level constant).
Logic 0 bit is represented by half bit duration pulse at second transition of the bit interval
ix) URZ (Unipolar Return to Zero)
Return to Zero signals return to zero with the clock. Thus it is Unipolar Return to Zero.
Logic 1 bit is represented by half bit duration pulse and return to zero
Logic 0 bit is represented by absence of a pulse.
x) RZ - AMI (Return to Zero – Alternate Mark Inversion)
It is commonly used multilevel signal (three or more levels of voltages) to represent the binary
data. It is used in satellites, telemetry systems.
Logic 1 bit is represented by equal amplitudes of alternating pulses (between +Vcc to –Vcc).
This return to zero after every half bit interval.
Logic 0 bit is represented by absence of a pulse.
BLOCK DIAGRAM:
PROCEDURE:
1. Refer to the block diagram and carry out the following connections and switch settings.
2. Connect power supply in proper polarity to the kit DCL-05 and switch it on.
3. Select desired data pattern using switch SW1.
4. Connect DATA CLK and SERIAL DATA generated on board to CODE CLK and
DATA IN of DATA ENCODER respectively by means of the patch-chords provided.
5. Observe the encoded signal at respective outputs of DATA ENCODER on the
oscilloscope.
6. For decoding the signal connect DATA CLK to DECODE CLK and NRZ-L, NRZ-
M, NRZ-S, URZ, BIO-L, BIO-M, BIO-S output of DATA ENCODER to respective
inputs i.e. IN1, IN2, IN3, IN4, IN5, IN6, IN7 of DATA DECODER.
7. Observe the decoded signal at respective outputs i.e. OUT1, OUT2, OUT3, OUT4,
OUT5, OUT6, OUT7 of DATA DECODER on the oscilloscope. It should be same as
DATA IN.
8. Use RST switch for clear data observation if necessary.
9. Unipolar to Bipolar / Bipolar to Unipolar (Refer to the block diagram):
a. Connect SERIAL DATA signal to the input post IN10 of Unipolar to Bipolar and
Observe the Bipolar output at post OUT10 of Unipolar to Bipolar.
b. Then connect bipolar output signal OUT10 of Unipolar to Bipolar to the input post
IN11 of Bipolar to Unipolar and observe unipolar output at post OUT11 of Bipolar
to Unipolar. It should be same as IN10 of Unipolar to Bipolar.
10. AMI Encoder and Decoder (Refer to the block diagram):
a. Connect SERIAL DATA signal to the input post IN8 of AMI Encoder should be
same as serial data.
b. Observe the AMI Encoder output at post OUT8.
c. Then connect OUT8 of AMI Encoder to the input post IN9 of AMI Decoder and
Observe the AMI Decoder output at post OUT9. It should be same as IN8
WAVEFORMS:
CH 1 : IN 10 & CH 2: OUT 11
RESULT: Various line coding and decoding formats as been verified for a given 8 bit binary
data.
THEORY: Differential phase shift keying (DPSK) is a common form of phase modulation
conveys data by changing the phase of carrier wave. Thus it can be regarded as a noncoherent
version of BPSK. DPSK eliminates the need for a coherent reference signal at the receiver by
combination of two basic operations: i) Differential encoding of binary input ii) Phase Shift
keying (PSK). For symbol 0, a carrier signal with 180˚ phase shift is transmitted and for
symbol 1, a carrier signal with 0˚ phase shift (phase unchanged) is transmitted. In DPSK
Transmitter, Binary input data with an arbitrary bit as reference is differentially encoded with
XOR encoder.
DPSK receiver implementation merely requires that sample values be stored, thereby avoiding
the need for delay lines that may be needed otherwise. During the demodulation, the DPSK
signal is converted into a +5v square wave signal using a transistor and is applied to one input
of an EXOR gate. To the second input of the gate, carrier signal is applied after conversion into
a +5v signal. So the, EX-OR gate output is equivalent to the differential signal of the
modulating data. This differential data is applied to the one input of an XOR gate and to the
second input, after one-bit delay the same signal is given. So the output of this is modulating
signal.
PROCEDURE:
1. Connect the power supply in proper polarity to the DPSK trainer kit and switch it on.
2. Connect the carrier output of carrier SIN0 (TP3) and SIN180 (TP4) degree to the
PSK/DPSK modulator Block TP9 and TP7 respectively as show in the connection
diagram.
3. Connect the Serial Data Bit output (TP14) to the Differential Encoder-2 (EX-OR logic)
input at TP20.
4. Observe the differential data with EX-OR logic at the output of Differential Encoder -2
at TP23.
5. Connect the Differential Encoder-2 output at TP23 to Data input (TP11) of PSK/DPSK
Modulator block.
6. Observe the DPSK output signal at TP13 using CRO.
7. Connect the DPSK signal at TP13 to PSK/DPSK Demodulator at TP23/TP24.
8. Observe the DPSK demodulated data (ie, recovered data from DPSK signal) at TP27
using CRO.
9. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
RESULT: DPSK generation and detection has been verified for the given 8 bit binary data
input.
EQUIPMENTS:
Experimenter Kit ADCL-01.
Connecting Cords.
Power supply.
20 MHz Dual Trace Oscilloscope.
PROCEDURE:
1. Refer to the block diagram and carry out the following connections and switch settings.
2. Connect the power supply in proper polarity to the kits ADCL-01 and switch it on.
5. Connect the NRZ-L DATA out to the DATA IN of the DIFFERENTIAL ENCODER.
8. Connect carrier component SIN 1 to IN1 and SIN 2 to IN2 of the Carrier modulator Logic.
9. Connect DPSK modulated signal MOD OUT to MOD IN of the BPSK DEMODULATOR.
10.Connect output of BPSK demodulator b(t) OUT to input of DELAY SECTION b(t) IN and
one output b(t) IN of decision device.
11. Connect the output of delay section b (t-Tb) OUT to the input b (t-Tb) IN of Decision
device
12. Compare the DPSK decoded data at DATA OUT with respect to input SDATA.
13.Observe the various waveforms as, if recovered data mismatches with respect to the
transmitter data, then use RESET switch for clear observation of data output.
RESULT: DPSK generation and detection has been verified for the given 8 bit binary data
input.
THEORY: The “PSK” in QPSK refers to the use of Phased Shift Keying. PSK refers to
discrete number of states. With half the number of states, it is BPSK. With twice the number of
states as QPSK. QPSK refers to PSK with 4 states, ie, “Quad” in QPSK refers to four phases
in which a carrier is sent in 0º, 90º, 180º, and 270º.There are various methods to modulate and
demodulate. One way is of modulating the data bits is, the incoming data stream is divided into
2 streams, one containing the odd bit stream (I bit at TP7), and the other having even bit stream
(Q bit at TP8). Both are converted into PSK modulated signals. The carriers used for
modulating the two data streams have same frequency but are 900 out-of-phase with each other.
The thus obtained two BPSK modulated signals are added together to produce a QPSK
modulated signal.
QPSK modulator generates four modified carrier phases (0°, 90°, 180°, and 270°) obtained in
the modulator by rotating the angles of the QPSK constellation. Then, a simple XNOR
operation between each phase and the modulated signal will produce a logic "1" only if both
coincide. If the received phase is 0° (related to dibit 00), all XNORs produce a logic "0" .If the
phase is 90° (dibit 10), only the upper branch gives a "1". This situation is inverted for 270°
(dibit 01). In this case, the logic "1" is produced at the lower branch. But if the phase is 180°
(dibit 11), a logic "1" is added to both branches. The result is the demodulated PCM signal.
PROCEDURE:
QPSK Modulation
1. Connect the power supply in proper polarity to the QPSK trainer kit and switch it on.
2. For the given 8 bit binary input data, observe the 8 bit Serial data out at Testpoint1(TP1)
and Testpoint2(TP2).
3. Connect the Serial Output Data (TP2) to Serial Data input (TP5).
4. Observe the carrier SIN0, SIN90, SIN180 and SIN270 in TP15, TP13, TP17 and TP11
respectively.
5. Connect the TP15 (SIN0) to TP18 (SIN0) of QPSK Modulator.
6. Connect the TP13 (SIN90) to TP19 (SIN90) of QPSK Modulator.
7. Connect the TP 17 (SIN180) to TP20 (SIN180) of QPSK Modulator.
8. Connect the TP11 (SIN270) to TP21 (SIN270) of QPSK Modulator.
9. Observe the Even (I bits) and odd (Q bits) bits at TP7 and TP9 respectively.
10. Connect the Even bit (TP7) to the Even bits (TP22) of QPSK Modulator.
11. Connect the Odd bit (TP9) to the Odd (TP23) of QPSK Modulator.
12. Observe and Sketch the QPSK Modulated output at TP25 using CRO.
QPSK Demodulation
1. Connect the QPSK Modulated output (TP25) to the QPSK input (TP27).
2. Observe and sketch the Even Bit at TP30.
3. Observe and sketch the Odd Bit at TP31.
4. Combine the EVEN and Odd bits to get original Data bits at the TP32.
5. Observe and Sketch the QPSK demodulated output at TP32 using CRO.
6. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
RESULT: QPSK generation and detection has been verified for the given 8 bit binary data
input.
EQUIPMENTS:
Experimenter kits ADCL-02 & ADCL-03
Connecting Chords
Power supply
20 MHz Dual Trace Oscilloscope
PROCEDURE:
1. Refer to the block diagram and carry out the following connections and switch settings.
2. Connect power supply in proper polarity to the kits ADCL-02 & ADCL-03 and switch
it on.
3. Select Data pattern of simulated data using switch SW1.
4. Connect SDATA generated to DATA IN of the NRZ-L CODER.
5. Connect NRZ-L to DATA IN of the DIBIT CONVERSION.
6. Connect SCLOCK to CLK IN of the DIBIT CONVERSION.
7. Connect the dibit data 1 & Q bit to control input C1 and C2 of CARRIER
MODULATIOR respectively. NOTE: Adjust 1 & Q bit as shown in fig by operating
RST Switch on ADCL-2 before connecting it to C1 & C2.
8. Connect carrier component to input of CARRIER MODULATOR as follows:
a. SIN 1 to IN1
b. SIN 2 to IN2
c. SIN 3 to IN3
d. SIN 4 to IN4
9. Connect QPSK modulated signal MOD OUT on ADCL-02 to the MOD IN of the
QPSK DEMODULATOR on ADCL-03. NOTE: Adjust recovered 1 & Q bit an
ADCL-03 as per ADCL-02 by RST switch on ADCL-03.
10. Connect 1BIT, Q BIT & CLK OUT outputs of QPSK Demodulator to 1 BIT IN, Q
BIT & CLK IN posts of Data Decoder respectively.
11. Observe various waveforms as mentioned below fig.
WAVEFORMS:
RESULT: QPSK generation and detection has been verified for the given 8 bit binary data
input.
THEORY: PCM is a digital representation of an analog signal where the magnitude of the
signal is sampled regularly at uniform intervals, then quantized to a series of symbols in a
numeric (usually binary) code.
It refers to a system in which the standard values of a quantized wave are indicated by a
series of coded pulses. When these pulses are decoded, they indicate the standard values of the
original quantized wave. In this method of signal coding, the message signal is sampled and the
amplitude of each sample is rounded off (approximated) to the nearest one of a finite set of
discrete levels, so that both time and amplitude are represented in discrete form. This allows
the message to be transmitted by means of a digital (coded) waveform, thereby distinguishing
pulse-code modulation form all analog modulation techniques. The essential operations in the
transmitter of a PCM system are sampling, quantizing and encoding and the whole process is
called as analog- to- digital conversion. At the receiver the operations of decoding and
reconstruction are performed to recover the analog message signal and whole process is called
as digital-to-analog conversion.
CIRCUIT DIAGRAM:
PROCEDURE:
1. Connections are made as per the circuit diagram.
2. A TLL, clock of 2MHz is applied to the counter IC 7493 at pin number 14 and observe
the output at pin number 11 and it should be 125 kHz (divided by 16 of 2MHz).
3. Check the output at pin number 11 of the 2nd IC7493, which will be approximately 8 kHz
(divided by 16 of 2MHz).
4. Apply a sinusoidal message 1 V (P-P), 1 kHz at pin no 1 of IC44233.
5. Observe the PCM output at pin number 8 of IC44233. You may have to change the time
range of oscilloscope to convenient range to observe the frame time (50 μs range) and the
8-bit word length (0.5 μs range).
6. Observe the demodulated output at pin number 5 of IC44233 and compare it with
original message signal.
7. Observe the changes at the PCM output and demodulated output by changing the
frequency and amplitude of the message signal.
8. Plot the input and output waveforms on a graph sheet.
WAVEFORMS:
RESULT: Generation and detection of PCM signal has been verified using a CODEC chip.
APPARATUS REQUIRED: Optical fiber trainer Kit, Optical Fiber Cables (1m & 3m),
Numerical aperture measurement jig, Function generator, CRO.
THEORY: Optical Fibers are available in different variety of materials. These materials are
usually selected by taking into account their absorption characteristics for different
wavelengths of light. In case of Optical Fiber, since the signal is transmitted in the form of
light, which is completely different in nature to study the losses in fiber.
Losses are introduced in fiber due to various reasons. As light propagates from one end of
Fiber to another end, part of it is absorbed in the material exhibiting absorption loss. Also part
of the light is reflected back or in some other directions from the impurity particles present in
the material contributing to the loss of the signal at the other end of the Fiber. In general terms
it is known as propagation loss.
Whenever the condition for angle of incidence of the incident light is violated the losses are
introduced due to refraction of light. This occurs when fiber is subjected to bending loss.
Lower the radius of curvature more is the loss.
Numerical aperture refers to the maximum angle at the light incident on the fiber end is
totally internally reflected and is transmitted properly along the Fiber. The cone formed by the
rotations of this angle along the axis of the Fiber is the cone of acceptance of the Fiber. The
light ray should strike the fiber end within its cone of acceptance; else it is refracted out of the
fiber core.
BLOCK DIAGRAM:
Propagation loss and bending loss:
1 8 cm
2 6 cm
3 5 cm
4 4 cm
5 3 cm
Numerical Aperture:
PROCEDURE:
1. Make connections as shown in fig. and connect the power supply cables with proper
polarity to Link-B kit. While connecting this, ensure that the power supply is off.
2. Keep Intensity control pot P2 towards minimum position.
3. Keep Bias control pot P1 fully clockwise position.
4. Switch on the power supply.
5. Slightly unscrew the cap of SFH756V (660nm). Do not remove the cap from the
connector. Once the cap is loosened, insert the 1 Meter Fiber into the cap. Now
RESULT: Optical fiber communication conducted with the the propagation loss =________,
Bending loss =____________ and numerical aperture=____________
AIM: To demonstrate the working of analog and digital communication link (with TDM) using
Optical Fiber.
APPARATUS REQUIRED: Optical Fiber trainer Kit, Optical Fiber Cables (1m & 3m),
Function generator, CRO.
THEORY: Fiber optic links can be used for transmission of analog as well as digital signals.
Basically a fiber optic link contains three main elements a transmitter, an optical fiber and a
receiver. The transmitter module takes the input signal in electrical form and transforms it into
optical (light) energy containing the same information. The optical fiber is the medium which
carries this energy to the receiver. At the receiver, the light energy is converted back into
electrical form with the same pattern as originally fed to the transmitter.
In TDM various signals are sampled and transmitted for a fixed duration of time
one after the other. At the receiving end, these signals are extracted in the same order and form
of transmission. Using this technique, more number of data channels can be transmitted on a
single transmission link. The time slot for each channel repeats after regular intervals. Marker
used in TDM is a unique bit pattern placed at some fixed position in the frame and used to
determine the start of the frame at the receiver.
BLOCKDIAGRAM:
PROCEDURE:
1. Observe & measure the frequencies for DATA CLK, MUX CLK & FRM CLK (FRAME
CLOCK).
2. Observe the marker at test point MRTX1 on the channel & frame clock on the CRO
channel.
3. Observe the second marker MRTX2 & frame clock similarly at the output of OR gate.
4. Now observe the test point of marker i.e.channel-1 with respect to MRTX1 & MRTX2
and plot the waveform.
5. Observe the channel-1 signal with respect to the frame clock. You will find the markers
are present alternately in each frame.
2. Put the channel switch ON & OFF & observe the position of each channel in a frame.
Observe how the frame respects itself at regular intervals.
3. Observe the marker MRTX1 & MRTX2 with respect to the frame data & see how the
two markers are transmitted in alternate frame.
4. Observe the PCM coded voice date at the PCM OUT test points of codec 1 & codec 2
with respect to the frame clock & also with respect to the TDM OUT test point.
Observe the position of PCM data in the frame.
WAVEFORMS:
RESULT: Analog and digital communication link (with TDM) has been verified.
CHALLENGE
EXPERIMENTS
MATLAB
SIMULATION
BLOCK DIAGRAM:
MATLAB PROGRAM:
% FSK modulation
clc;
clf;
clear all;
close all;
b=input('enter binary data:');
f1=4000;f2=12000;
t=linspace(0,1/4000,50);
ec1=cos(2*pi*f1*t);
ec2=cos(2*pi*f2*t);
fskout=[ ];
bin=[ ];
car1=[ ];
car2=[ ];
for i=1:length(b);
if b(i)==1
fskout=[fskout,b(i)*ec2];
else
fskout=[fskout,(1-b(i))*ec1];
end;
bin=[bin,b(i)*ones(1,50)];
car1=[car1,ec1];
car2=[car2,ec2];
end;
% FSK demodulation
Bal1=[];
Bal2=[];
Demod=[];
for i=1:length(fskout);
bal1=[bal1,car1(i)*fskout(i)];
bal2=[bal2,car2(i)*fskout(i)];
end;
for i=1:50:length(fskout);
sum1=0, sum2=0; sum=0;
for i=i:i+49
sum1=sum1+bal1(i);
sum2=sum2+bal2(i);
end;
sum=-sum1+sum2;
if sum>0
demod=[demod,ones(1,50)];
else
demod=[demod,zeros(1,50)];
end;
end;
subplot(5,1,1);
plot(car1,'linewidth',3);
title('carrier 1');
xlabel('time');
ylabel('amplitude');
subplot(5,1,2);
plot(car2,'linewidth',3);
title('carrier 2');
xlabel('time');
ylabel('amplitude');
subplot(5,1,3);
plot(0:length(bin)-1,bin,'k','linewidth',3);
title('input data');
xlabel('time');
ylabel('amplitude');
subplot(5,1,4);
plot(fskout,'r-','linewidth',3);
title('FSK output');
xlabel('time');
ylabel('amplitude');
subplot(5,1,5);
plot(demod,'r-','linewidth',3);
title('Demodulated output');
xlabel ('time');
ylabel ('amplitude');
AIM: To Generate the Quadrature phase Shift Keying Modulation and Demodulation
using MATLAB
ALGORITHM:
BLOCK DIAGRAM:
MATLAB PROGRAM:
% QPSK modulation
clc;
clf;
clear ll;
close all;
b=input('enter binary data:'); fc=4000;
t=linspace(0,1/4000,50); ec2=cos(2*pi*fc*t); ec1=sin(2*pi*fc*t);
qpskout=[ ];bin=[ ];car1=[ ];car2=[ ];be=[ ];bo=[ ];bal1=[ ];bal2=[ ];
for i=1:length(b);
bin=[bin,b(i)*ones(1,50)];
car1=[car1,ec1];
car2=[car2,ec2];
if mod(i,2)==0
if b(i)==0
be=[be,-ones(1,100)];
else
be=[be,ones(1,100)];
end;
bal1=[bal1,be(i*50-1)*ec1,be(i*50-)*ec1];
else
if b(i)==1
bo=[bo,ones(1,100)];
else
bo=[bo,-ones(1,100)];
end; bal2=[bal2,bo(i*50-1)*ec2,bo(i*50-1)*ec2];
end; end;
for i=1:2:length(b)
if b(i)==0 && b(i+1)==0
qpskout=[qpskout,-ec1-ec2,-ec1-ec2];
else
qpskout=[qpskout,ec1+ec2,ec1+ec2];
end;
end;
subplot(4,1,1);
plot(bin,'linewidth',3);
title('binary data');
xlabel('time');
ylabel('amplitude');
subplot(4,1,2);
plot(be,'r','linewidth',3);
title('even data');
xlabel('time');
ylabel('amplitude');
subplot(4,1,3);
plot(bo,'g','linewidth',3);
title('odd data');
xlabel('time');
ylabel('amplitude');
subplot(4,1,4);
plot(car1,'linewidth',3);
title('carrier 1');
xlabel('time');
ylabel('amplitude');
figure;
subplot(4,1,1);
plot(car2,'linewidth',3);
title('carrier2');
xlabel('time');
ylabel('amplitude');
subplot(4,1,2);
plot(bal1,'r','linewidth',3);
title('bal mod 1 data');
xlabel('time');
ylabel('amplitude');
subplot(4,1,3);
plot(bal2,'g','linewidth',3);
title('bal mod 2 data');
xlabel('time');
ylabel('amplitude');
subplot(4,1,4);
plot(qpskout,'linewidth',3);
title('modulated');
xlabel('time');
ylabel('amplitude');
% QPSK Demodulation
demod1=[ ];
demod2=[ ];
demod=[ ];
synd1=[ ];s
ynd2=[ ];
for i=1:length(qpskout);
synd1=[synd1,car1(i)*qpskout(i)];
synd2=[synd2,car2(i)*qpskout(i)]; end;
for i=1:100:length(qpskout);
sum1=0;sum2=0;
for i=i:i+99
sum1=sum1+synd1(i);
sum2=sum2+synd2(i);
end;
if sum1 > 0
demod1=[demod1,ones(1,50)];
else
demod1=[demod1,zeros(1,50)];
end;
if sum2 > 0
demod2=[demod2,ones(1,50)];
else
demod2=[demod2,zeros(1,50)];
end;
end;
demod1
demod2
for i=1:50:length(demod1);
demod=[demod,demod1(i:i+49),demod2(i:i+49)];
end;
figure;
subplot(3,1,1) plot(synd1,'linewidth',3);
title('sync detector 2');
xlabel('time');
ylabel('amplitude');
subplot(3,1,2)
plot(synd2,'r','linewidth',3);
title('sync detector 2');
xlabel('time');
ylabel('amplitude');
subplot(3,1,3)
plot(demod,'g','linewidth',3);
title('demodulated');
xlabel('time');
ylabel('amplitude');
MODEL
VIVA
QUESTIONS
Instead of encoding each sample, It’s better to encode the difference between samples then
Quantization error will be minimized with less no. of bits, then bandwidth also get
decreased.
39. Mention the merits of DPCM.
1. Bandwidth requirement of DPCM is less compared to PCM.
2. Quantization error is reduced because of prediction filter
3. Numbers of bits used to represent one sample value are also reduced compared to PCM.
40. Define Delta modulation? Why it is better?
It is same as DPCM with no. of bits to encode is one bit only (either 0 or 1). by this
bandwidth will be decreased.
41. What are the two limitations of delta modulation?
1. Slope of overload distortion.
2. Granular noise.
42. What is granular noise? Define slope overload?
The Delta modulation is efficient when and only when signal is varying continuously with
less variations. If signal varies suddenly then we get two different Noises. Those are slope
overload and granular noise.
43. How Granular noise does occurs?
It occurs due to large step size and very small amplitude variation in the input signal.
44. When granular noise and slope overload occur in Delta modulation?
Granular Noise: Δ / Ts > slope of signal
Slope Overload Noise: Δ / Ts < slope of signal
45. What is Adaptive Delta Modulation and what are the advantages?
If the step size varies according to the slope of the signal then that is called as Adaptive
Delta modulation.
Granular and slope over load noise will be Reduced.
46. What is the main difference in DPCM and DM?
DM encodes the input sample by one bit. It sends the information about + δ or -δ, ie step
rise or fall. DPCM can have more than one bit of encoding the sample. It sends the
information about difference between actual sample value and the predicted sample value.
47. Compare all Digital pulse modulation techniques (PCM, DPCM, DM, and ADM)?
There is no any fixed formula to find so, bending loss is the relation between the voltages
(V) to the diameter (d) of bended optical fiber.
54. What are the Properties of Line Coding
1. As the coding is done to make more bits transmit on a single signal, the bandwidth used
is much reduced.
2. For a given bandwidth, the power is efficiently used.
3. The probability of error is much reduced.
4. Error detection is done and the bipolar too has a correction capability.
5. Power density is much favorable.
6. The timing content is adequate.
7. Long strings of 1s and 0s is avoided to maintain transparency.
55. Why do you need encoding of data before sending over a medium?
Suitable encoding of data is required in order to transmit signal with minimum attenuation
and optimize the use of transmission media in terms of data rate and error rate.
56. Between RZ and NRZ encoding techniques, which requires higher bandwidth and why?
RZ encoding requires more bandwidth, as it requires two signal changes to encode one bit.
57. How does Manchester encoding differ from differential Manchester encoding?
In the Manchester encoding, a low-to-high transition represents a 1, and a high-to-low
transition represents a 0. There is a transition at the middle of each bit period, which serves
the purpose of synchronization and encoding of data.
In Differential Manchester, the encoding of a 0 is represented by the presence of a
transition at the beginning of a bit period, and a 1 is represented by the absence of a
transition at the beginning of a bit period. In this case, the midbit transition is only used for
synchronization.