22ECH220ADC Lab manualCU
22ECH220ADC Lab manualCU
LAB MANUAL
B.E. - IV Semester
(Branch: ECE)
Chandigarh University
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
TABLE OF CONTENTS
9. To realize:
a) amplitude shift keying modulator and demodulator
b) frequency shift keying modulator and demodulator
c) phase shift keying modulator and demodulator
using MATLAB.
10. To design digital link simulation; error introduction & error
estimation in a digital link using MATLAB (SIMULINK)/
communication simulation packages.
2
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT NO: 1
AIM: Analyze the Generation & Detection of DSB-FC AM signal using balanced
modulator & Super hetrodyne receiver respectively using MATLAB.
APPARATUS: Amplitude modulation and demodulation trainer kits, DSO, DSO probes,
power supply, connecting leads.
THEORY
In a double-sideband transmission, the two sidebands contain identical information. Thus
either could be transmitted by itself without loss of meaning to the receiver. Single-
sideband transmission has obvious advantages, some implies by the name alone. For
instance, such a transmission can occupy one-half the frequency space required for two
sidebands, permitting better management of the frequency spectrum. Moreover, suppose
an A3 double-sideband transmitter and a single-sideband transmitter are each capable of
150W maximum output. We know that there are 50W of message power in the double-
sideband transmission, while the 150W of the single-sideband signal is all message power.
This simple introduction indicates the advantages and disadvantages that go with single-
sideband radio signals.
BALANCED MODULATORS
The required output from a balanced modulator is an amplitude-modulated signal with two
sidebands but no voltage at the carrier frequency. A differential amplifier is ideally suited
to this function. We see that the carrier signal is applied to pins 8 and 10 in a common
mode to a set of cross-coupled differential amplifiers, whereas the bias voltage applied to
pin 5 determines the amount of current through the amplifiers. The resistor connected to
pins 2 and 3 sets the modulator gain with a smaller resistor resulting in higher gain. The
DC voltage difference between pins 1 and 4 will balance the differential amplifiers for
current in each differential amplifier.When the message signal is applied to pins 1 and 4,
transistors will alternately increase (or decrease) the current through their associated
amplifier to output the sum and difference frequencies in the sideband pair. The output is
taken from pin 6 for modulator. The balanced modulator will work equally well as a
balanced demodulator. In the modulation process, we input the carrier and the message
signals to produce the modulated wave. In the demodulator, we input the modulated wave
and the carrier to produce the message signal. The demodulated output is taken from pin
12. the advantages of this circuit are that the carrier and message frequencies can be close
3
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
AMPLITUDE DEMODULATION:
AM broadcast signals use carrier frequencies between 500 and 1000Khz. In the studio an
audio signal modulates the carrier to produce an Am signal. A transmitting antenna of
suitable length then radiates this AM signal into space. Mills away, a receiving antenna
picks up the modulated RF signal. After being amplified, this signal is demodulated (the
audio is recovered). Basically, it is a peak detector. Ideally, the peaks of the input signal
are detected to recover the upper envelope. For this reason, the circuit is called an envelope
detector. During each carrier cycle, the diode turns ON briefly and charges the capacitor to
the peak voltage of the particular carrier cycle. Between peaks, the capacitor discharges
through the resistor. By making the RC time constant much greater than the period of the
carrier. We get only a slight discharge between cycles. In this way, most of the carrier
signal is removed. The output then looks like the upper envelope with a small ripple, with
advantage mathematics. We can derive the formula for cut-off frequency of the envelope
detector.
PROCEDURE
4
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
FOR MODULATION:
1. Switch “ON” the instrument using ON/OFF switch.
2. Connect the Oscilloscope channel “A” at first socket of Carrier Output and channel “B”
to second socket & observe the Carrier Waveform as shown in fig. (2).
3. Connect circuit as shown in fig. (6).
4. Connect Oscilloscope channel “A” across Modulating Signal output channel “B”
across DSB/SC signal output socket as shown in Fig. (3.)
5. Now vary the amplitude of Modulating signal & observe the DSB/SC output on
Oscilloscope.
6. Now change the frequency i.e. 2 KHz and observe the output.
7. Now change the carrier frequency and observe the output.
FOR DEMODUALTION:
1. Connect circuit as shown in fig. (7).
2. Connect DSB/SC Output to the DSB/SC Input of Demodulator Circuit.
5
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
3. Connect the Oscilloscope channel “A” across TP2 Socket and observe the modulating
signal with high frequency contents as shown in fig. (4).
4. Now Connect the TP2 socket to the TP3 socket and connect the Oscilloscope channel
“A” at Modulating Signal Output & Channel “B” across Demodulated Output sockets
as shown in Fig. (5).
5. Observe the demodulated signal at the oscilloscope. There may be phase shift due to
band pass filter.
6
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT NO. 2
AIM:- Analyze the Generation & Detection of a FM Signal using Varactor Diode
modulator & foster seelay respectively using MATLAB.
THEORY:
Frequency Modulation
An alternative system to Amplitude Modulation is Frequency Modulation (FM). In the
modulation scheme the frequency of the carrier signal changes linearly with respect to the
change in the amplitude of the information/message signal. The larger the amplitude of the
information signal, the further the frequency of the carrier signal is changed from its
starting value. The amplitude of the information signal determines how many times in a
second the change in the frequency of the carrier occurs. Notice in Figure 1 that the
modulation process does not affect the amplitude of the carrier.
7
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
8
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
9
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
PROCEDURE:-
1. Make the circuit according to diagram.
2. Connect the audio oscillator and carrier oscillator block.
3. Observe the output FM wave at mixer amplifier.
4. Also observe amplitude and frequency of input audio oscillator
5. Observe the output waveform on the dso screen.
6. Again connect the leads to the foster seeley ckt and connect the output lead of the
ckt to the dso and observe the waveform.
PRECAUTIONS:-
1. Check the experiment kit and CRO before starting the experiment.
2. Output waveform and reading should be accurate and clear.
RESULT:-
FM modulation is done.
10
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT NO. 3
AIM: Study and analyze the Frequency Division Multiplexing / Demultiplexing with
sinusoidal & audio inputs Using DSBSC using MATLAB.
APPARATUS:
FDM Kit
CRO
Connecting probes
THEORY:
Multiplexing is the set of techniques that allows the simultaneous transmission of multiple
signals across a single data link. Whenever the transmission capacity of a medium linking
two devices is greater than the transmission needs of the devices, the link can be shared in
order to maximize the utilization of the link, such as one cable can carry a hundred channels
of TV.
Type of multiplexing
11
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
In FDM, signals generated by each sending device modulate different carrier frequencies.
These modulated signals are then combined into a single composite signal that can be
transported by the link. The carrier frequencies have to be different enough to
accommodate the modulation and demodulation signals. The figure illustrates the FDM
multiplexing process. The multiplexing process starts by applying amplitude modulation
into each signal by using different carrier frequencies. Then both signals are combined. In
demodulation process, we use filters to decompose the multiplexed signal into its
constituent component signals. Then each signal is passed to an amplitude demodulation
process to separate the carrier signal from the message signal. Then the message signal is
sent to the waiting receiver. The process of demultiplexing is shown in figure:
12
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
The diagram conceptually represents multiplexing using FDM. It has 4 frequency bands,
each of which can carry signal from 1 sender to 1 receiver. Each of the 4 senders is allocated
a frequency band. The four frequency bands are multiplexed and sent via the
communication channel. At the receiving end, a demultiplexer regenerates the original four
signals as outputs.
13
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT NO. 4
AIM: Generation & study of Analog TDM for at least 4 channels using MATLAB.
THEORY:
Time Division Multiplexing (TDM) is the process of switching between two, or more,
signals serially in time.
Consider an analogue signal and let the amplitude of this signal be sampled every 10 ms,
say. This is represented in the diagram below.
It can be seen that the magnitudes of the samples follow the analogue signal waveform
and that there is a significant time (almost 10 ms) between each sample. It is quite
possible to sample other analogue waveforms in the periods between the samples of the
first one and then to combine the two sets of samples in one waveform. Often, instead of
each sample being momentary, the sampled values are held until the next sample comes
along. This is called sample and hold. An example of a time-division multiplexed, sample
and hold waveform is shown in the next diagram.
14
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
PROCEDURE: -
OBSERVATIONS:
Observe the time division demultiplexer output waveforms at output channels.
PRECAUTIONS:
1. Make connections as mentioned in the procedure
2. Don’t short any point, while kit is ON.
3. Draw the waveform carefully.
4. Handle the kit with care.
5. Connect proper voltages to the trainer kits.
6. Do not change the calibrations of the CRO throughout the whole experiment.
7. Make sure that the trainer kits are switched on before observing the output.
15
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. : 05
AIM: To implement the circuit of PAM, PWM and PPM modulator & Demodulator on
breadboard and study their response on various pulses for modulating signal input of 1 KHz to 2
KHz and pulse output of 8 KHz to 64 KHz.
APPARATUS: 1. PAM PWM PPM Modulation Kit
2. C.R.O
3. Connecting leads
THEORY:
Pulse-amplitude modulation (PAM) is a form of signal modulation where the
message information is encoded in the amplitude of a series of signal pulses. It is
an analog pulse modulation scheme in which the amplitudes of a train of carrier
pulses are varied according to the sample value of the message signal.
Demodulation is performed by detecting the amplitude level of the carrier at every
single period.
16
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
RESULT:
PRECAUTIONS:
17
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. : 06
AIM: To realize pulse code modulation and demodulation channels using MATLAB.
APPARATUS: 1. PCM modulation / demodulation ST2103 trainer.
2. C.R.O
3. Connecting leads
THEORY:
Pulse Code Modulation technique involves following steps:
(a) Sampling:
The analog signal is sampled according to the nyquist criteria. The nyquist criteria states
that for faithful reproduction of a band limited signal, the sampling rate must be at least
twice the highest frequency component present in the signal. So sampling frequency 2
fm, where fm is maximum frequency component present in the signal.
Practically the sampling frequency is kept slightly more than the required rate.
18
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
PROCEDURE:
1. Ensure that the MODE switch should be in FAST mode.
2. Connect CH 0 & CH 1 to DC1 AND DC2.
3. Ensure that the DC1 and DC2 controls in Function Generator Block should be in
fully clockwise direction and ~1KHz and 2 KHz signal controls set art 10Vpp.
4. Now turn ON the kit and see that the LED glows.
5. With the help of Digital Voltmeter, adjust the DC1 amplitude control until the DC1
output measures 0V.
6. Observe the output on the A/D Converter Block LED’s (D0 to D6). The LED’s
represent the state of the binary PCM word allocated to the PAM sample being
processed.
7. Adjust the D.C input from +5V to –5V in steps of 1V.
8. Observe the output of +5V is as follows:
D6 D5 D4 D3 D2 D1 D0
19
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
1 1 1 1 1 1 1
Where for the negative values it is less than 1000000.For –5V the output is as
follows:
D6 D5 D4 D3 D2 D1 D0
0 0 0 0 0 0 0
This is obtained at the approximately full anti clockwise position of the DC Control.
9. Turn the DC1 control fully anticlockwise and repeat the above procedure by
varying the DC2 control.
10. Trigger the dual trace oscilloscope externally by the CH.1 signal available at t.p.12
and observe the signal at CH.0 and CH.1 at t.p.5 with reference to the signal at t.p.7.
11. Now connect the oscilloscope channel 1 to CH1 sample at t.p.6 and sketch the three
waveforms.
OBSERVATION:
PRECAUTIONS:
20
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. : 07
AIM: To realize delta modulation and demodulation and observe effect of slope
overload using MATLAB.
THEORY:
Delta Modulation is a system of Digital Modulation scheme in which the difference
between the sample value at sampling time K and sample value at the previous sampling
time ( k – 1 ) is encoded into just a single bit.
One way in which delta modulator and demodulator is assembled is as shown in fig.1 and
fig.2.
The baseband signal m(t) and its quantized approximation m’(t) are applied as inputs to a
comparator. A comparator simply makes a comparison between inputs. If signal amplitude
has increased, then modulators output is at logic level 1. If the signal amplitude has
decreased, the modulator output is at logic level 0. Thus the output from the modulator is
a series of 0’s and 1’s to indicate rise and fall of the waveform since the previous value.
The comparator output is then latched into a D flip-flop which is clocked by the transmitter
clock. Thus the output of the flip-flop is a latched 1 or 0 synchronous with the transmitter
clock edge. The binary sequence is transmitted to receive and is also fed to the unipolar to
bipolar converter. This block converts logic 0 to voltage level of +4V and 1 to voltage level
of – 4V. The bipolar output ia applied to the integrator whose output is: a) Rising linear
ramp signal when – 4V is applied to it
b) Falling linear ramp signal when + 4V is applied to it.
The integrator output is then connected to the – ve terminal of voltage comparator.
21
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
22
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
PROCEDURE:
OBSERVATION:
RESULT: The Delta modulation / demodulation and Slope Overloading effect has been
studied.
PRECAUTIONS:
1. The connections should be made properly and tightly.
2. Check all the connections before switching ON the kit.
24
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. : 08
AIM: To realize Pulse data coding techniques for various formats and to realize data
decoding techniques for various formats.
APPARATUS:
1. Data Encoding kit (Trainer 2106)
2. Data bit generator
3. Patch cords
4. CRO
5. CRO Probes
Block Diagram:
Digital/Digital
01011101 Encoding
THEORY:
Digital to Digital conversion is the representation of digital information by a digital signal.
In this conversion, the binary 1’s and 0’s generated by a computer are translated into a
sequence of voltage pulses that can be propagated over a wire. Fig1 shows the relationship
between the digital information, the digital-to-digital encoding hardware and the resultant
25
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
digital signal. There are many mechanisms for digital-to-digital conversion; these are
unipolar, polar and bipolar encoding/conversion. In our present experiment we are using
polar conversion method.
Polar Encoding: It uses two-voltage levels- one positive and one negative. Of many
existing variations of polar conversion we will examine only the three most popular:
nonreturn to zero (NRZ), return to zero (RZ), and biphase. NRZ encoding includes two
methods: nonreturn to zero, level (NRZ-L), and nonreturn to zero, invert (NRZ-I). Biphase
also refers to two methods. The first, Manchester, is the method used by Ethernet LANs.
The second, Differential Manchester, is the method used by Token Ring LANs.
Nonreturn to Zero(NRZ): In NRZ encoding, the level of the signal is always either
positive or negative. The two most popular method of NRZ transmission are:
NRZ-L: In this encoding method, the level of the signal depends on the type of bit it
represents. A positive voltage usually means the bit is a 0, and a negative voltage means
the bit is a 1(or vice-versa); thus, the level of the signal is dependent upon the state of the
bit.
NRZ-I: In this method, an inversion of the voltage level represents a 1 bit. It is the
transition between a positive and negative volatage, not the voltages themselves, that
represents a 1 bit. A 0 bit is represented by no change.
Return to Zero: This method uses three values: positive, negative and zero. The signal
changes not between bits but during each bit. A positive voltage means 1 and negative
voltage means 0.
Biphase: In this the signal changes at the middle of the bit interval but does not return to
zero. Instead it continues to the opposite pole.
PROCEDURE:
1. Data is generated with the help of a data bit generator.
2. Connect the data O/P of the data generator to the Tx data I/P of the trainer 2106.
3. Now connect the clock of the generator to the Tx clock of the kit and ground with
the ground terminal of the kit.
4. Select the data on the data generator and load it in the trainer 2106 by pressing load
button.
5. Now observe the O/P of the NRZ-L, NRZ-M and Biphase.
26
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
OBSERVATION:
RESULT:
Different pulse data coding techniques has been studied.
PRECAUTIONS:
1. The connections should be made properly and tightly.
2. Check all the connections before switching ON the kit.
27
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. 09
AIM: To realize amplitude shift keying modulator and demodulator, frequency shift
keying modulator and demodulator, phase shift keying modulator and demodulator
using MATLAB.
(a) ASK
APPARATUS: ASK Modulator/Demodulator Trainer kit (ST 2106, ST 2107), Data Bit
Generator, CRO, CRO Probes.
28
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
THEORY:
The simplest method of modulating a carrier with a carrier stream is to change the
amplitude of carrier wave every time the data changes. This modulation technology is
known as Amplitude Shift Keying.
ASK is obtained by switching ON the carrier to be obtained ‘1’ and switching OFF
when D=1, i.e. carrier is transmitted & D=0, i.e. carrier is suppressed. This technology is
ON-OFF keying. Fig1 shows ASK for a given data stream. A linear multiplier generates it.
O/P voltage is a product of ac coupled carrier and the information signal or modulating
signal. For a double balanced modulator, data stream applied is 0V at logic 0 & +5V at
logic 1. The O/P is sine wave unchanged in phase when ‘1’ is applied. Carrier is multiplied
by +ve constant voltage when bit 0 is applied.
Fig 2. shows demodulator of ASK waveform at receiver. A diode rectifier first
rectifies it. After rectification, signal is passed through Low Pass Filter to remove carrier.
29
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
These rounded pulse are then squared up by passing it through voltage comparator set at a
threshold level. If I/P volt > Threshold level; O/P is +5V.
PROCEDURE:
1. Turn ON the trainer kits. Monitor NRZ(L) O/P (t.p.5) from ST2106 trainer on one
channel of the CRO. Use the other channel to monitor the O/P of modulator 1 (t.p.
28) in ST2106 trainer.
2. Three variables have been provided in the modulator block. These may be
necessary to obtain a required ASK waveform. These variables are:
Gain: This potentiometer adjusts the amplification of the modulator’s O/P. Adjust
this pot till the O/P is not a 2 Vpp signal in ‘ON’ state.
Modulation Offset: This control is used to adjust the amplitude of the OFF signal.
Adjust this control till the amplitude of the off signal is as close to zero as possible.
Carrier Offset: This control adjusts the off bias level of the ASK waveform.
Adjust this control till the off level occurs midway between the ON signal peaks.
3. Observe the O/P at the ASK demodulator (t.p. 22) & LPF (t.p. 24) on ST2107)
trainer.
4. Adjust the bias level till the O/P signal pulse width is not similar to the NRZ(L)
data pulse width.
30
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
OBSERVATIONS:
RESULT:
The ASK modulator and demodulator circuit has been studied.
31
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
(b) FSK
APPARATUS: FSK Modulator/Demodulator Trainer kit (ST 2106, ST 2107), Binary Data
Generator, CRO, CRO probes.
BLOCK DIAGRAM:
THEORY: In Frequency shift keying, the carrier frequency is shifted (i.e. from one
frequency to another) corresponding to the digital modulating signal. If the higher
frequency is used to represent a data ‘1’ & lower frequency a data ‘0’, the resulting FSK
waveform appears. Thus
Data =1 High Frequency
Data =0 Low Frequency
32
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
It is also represented as a sum of two ASK signals. The two carriers have different
frequencies & the digital data is inverted. The demodulation of FSK can be carried out by
a PLL. As known, the PLL tries to ‘lock’ the input frequency. It achieves this by generating
corresponding O/P voltage to be fed to the VCO, if any frequency deviation at its I/P is
encountered. Thus the PLL detector follows the frequency changes and generates
proportional O/P voltage. The O/P voltage from PLL contains the carrier components.
Therefore to remove this, the signal is passed through Low Pass Filter. The resulting wave
is too rounded to be used for digital data processing. Also, the amplitude level may be very
low due to channel attenuation.
PROCEDURE:
1. Turn ON the trainer kits. Monitor NRZ(L) O/P (t.p.5) from ST2106 trainer on one
channel of the CRO. Use the other channel to monitor the O/P of modulator 1 (t.p.
28) in ST2106 trainer.
2. Observe the O/P of the summing amplifier on the ST 2106 trainer at t.p. 36. Note
that it is the FSK waveform for the given data. Adjust the GAIN control of
modulator 2, if necessary to make the amplitude of two frequency components
equal.
3. Display the FSK waveform simultaneously with NRZ(L) O/P. Observe that, for
data bit ‘0’ the FSK signal is at lower frequency (960 Khz) & for bit ‘1’, the FSK
signal is at higher frequency (1.44 Mhz).
4. Now, to study about demodulator, examine the input (t.p 16) & the O/P (t.p 17) of
ST 2107 FSK demodulator. The PLL detector has been used as the FSK
demodulator.
5. The unwanted frequency component is removed by passing it through the LPF. On
a dual trace oscilloscope examine the I/P (t.p 23) & O/P (t.p 24) of ST 2107 LPF1
simultaneously. Observe that the O/P contains no carrier frequency components.
6. The rounded O/P of the LPF is removed by passing it through the Data Squaring
Circuit but prior to it, the BIAS level of the comparator1 is to be adjusted to a value
until the O/P pulse width (t.p 47) is same as the NRZ(L) input t.p 5 on ST2106.
33
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
OBSERVATION:
RESULT:
34
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
(c) PSK
BLOCK DIAGRAM:
THEORY: Phase shift keying involves the phase change of the carrier sine wave between
0 and 180 in accordance with the data stream to be transmitted. PSK is also known as Phase
reversal keying. PSK modulator is shown in figure 1. Functionally, the PSK modulator is
very similar to the ASK modulator. Both uses balanced modulator to multiply the carrier
with the modulating signal. But in contrast to ASK techniques, the digital signal applied to
the modulator input for PSK generation is bipolar i.e. have equal +ve and –ve voltage
levels. The unipolar – bipolar converter converts the unipolar data stream to bipolar data.
At receiver, the square loop detector circuit is used to demodulate the transmitted PSK
signal. The demodulator is shown in figure 2.
35
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
The incoming PSK signal with 0 & 180 phase changes is first fed to the signal square,
which multiplies the input signal by itself. The phase adjust circuit allows the phase of the
digital signal to be adjusted w.r.t the input PSK signal. Also its O/P controls the closing of
an analog switch. When the output is high the switch closes and the original PSK signal is
switched through the detector.
PROCEDURE:
1. Connections to be done on ST2106 trainer:
2. Carrier input of modulator 1 to 960 Khz carrier
3. NRZ(M) output t.p 6 to unipolar-bipolar converter input
4. Unipolar-bipolar converter output tp modulator1 input.
5. Connections between ST2106 & ST2107 trainers: Modulator 1 output (t.p. 28) to
PSK demodulator input (t.p 10).
6. Connections on ST2107 trainer:
7. PSK demodulator output (t.p 15) to LPF input (t.p.13)
8. LPF output (t.p24) to comparator input (t.p 46)
9. Comparator output (t.p 47) to bit decoder input (t.p 39)
10. Switch ON the trainer kits and monitor the modulator output (t.p 28) in ST2106
trainer with reference to its input (t.p27) by using a dual trace CRO.
11. To see PSK demodulator process examine the input of PSK demodulator (t.p10) on
ST2107 trainer with the demodulator output (t.p 15). Adjust the phase control knob
and see its effect on the demodulator’s output. Check the various test points
provided at the O/P of the functional blocks of the PSK demodulator.
12. The O/P of the demodulator goes to the LPF input. Monitor the filters output (t.p
24) with the reference to its input (t.p 28)
13. The LPF output is rounded and cannot be used for digital processing. In order to
square up the waveform, comparators are used. The Bias control is adjusted so that
the comparator’s output pulse width at t.p47 is same as the NRZ(M) pulse width.
OBSERVATION:
36
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
RESULT:
The PSK modulator and demodulator circuit has been studied.
PRECAUTIONS:
37
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
EXPERIMENT No. : 10
AIM: To design digital link simulation; error introduction & error estimation in a
digital link using MATLAB (SIMULINK)/ communication simulation packages.
APPARATUS:
1. TDM PCM modulation / demodulation trainer kit.
2. Connecting wires.
3. CRO
CONNECTION DIAGRAM:
THEORY:
Hamming Code decodes each word at transmitter into a new code by stuffing the word
with extra redundant bit. As the name suggests, the redundant bits do not convey
information but also provides a method of allowing the receiver to decide when an error
has occurred & which bits is in error since the system is binary, the bit in error is easily
corrected. Three bit hamming code provides single bit error detection and correction. The
kit involves the use of a 7-bit word. Therefore only four bits are used for transmitting data
if hamming code is selected. The format becomes: D6 D5 D4 D3 C2 C1 C0
Where, C2, C1 and C0 are hamming code bits.
PROCEDURE:
38
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
39
CHANDIGARH UNIVERSITY
GHARUAN, MOHALI
11. Set up the error check selector switches to A=1 & B=0 position on both trainers to
select the odd parity mode. Repeat steps 9 & 10, but with odd parity as selection.
12. Carry out the same experiment with 1 Khz sine wave applied at CH 0 & CH 1 input
of Tx kit. Adjust the 1 Khz amplitude fully clockwise.
13. Switch ON the hamming code error check mode on the kit. Disconnect the sine
wave and connect the DC output from the function generator block to CH 0 and
CH 1.Adjust the DC control such that the A/D converter’s output LED’s show
110100 on D6-D0 bits. Note the binary code on the error check code generator..
14. Vary the DC control such that output of A/D converter goes from 1101000 to
1101111. Notice the changes in the binary code output of the error check code.
Observe that the error check code generator is only concerned with checking bits
D6, D5, D4, D3 only. D2, D1, D0 outputs from A/D converter are ignored by the
error check code generator in hamming code as parity check bits C2, C1 and C0 are
output in their place depending on the value of D6, D5, D4, D3 bits. It is for this
reason that C2, C1 and C0 bits do not change although the data at D2, D1, and D0
have changed.
OBSERVATION:
RESULT:
Error detection and correction using Hamming Code has been verified.
PRECAUTIONS:
1. Check the connections before switching ON the kit.
2. Observations should be taken properly.
40