Professional Documents
Culture Documents
DC File Merged
DC File Merged
DC File Merged
LAB FILE
ROLL No :- UE215081
CLASS :- BE - ECE
pg. 1
INDEX
S No. Name of Experiment Page Date Signature &
No. Remarks
pg. 2
EXPERIMENT-1
Demodulation in Amplitude Shift Keying (ASK) involves extracting the original digital
message signal from the modulated carrier wave. The process reverses the modulation
applied to the carrier signal. The demodulation of ASK can be performed through various
methods, such as envelope detection or coherent detection.
Block diagram:
a) ASK Modulator
pg. 3
b) ASK Demodulator
Procedure :-
1. Turn ON the trainer kits. Monitor NRZ O/P from ST2106 trainer on one channel of the
CRO. Use the other channel to monitor the O/P of modulator 1 in ST2106 trainer.
2. Adjust potentiometer till the O/P is not a 2Vpp signal is ‘ON’ state to calculate gain.
3. Adjust modulation offset till the amplitude of the off signal is as close to zero as
possible.
4. Adjust Carrier offset till the off level occurs midway between the ON signal peaks.
5. Observe O/P at the ASK demodulator & LPF on ST2107 trainer.
6. Adjust the bias level till the O/P signal pulse width is not similar to the data pulse
width.
Connections:
a) ASK Modulation Setup:
pg. 4
Observations:-
Result: The ASK modulator and demodulator circuit has been studied.
Precautions:
1. Check the connections before switched ON the kit.
2. Observations should be taken properly.
pg. 5
EXPERIMENT-2
Theory :
Phase Shift Keying PSK is the digital modulation technique in which the phase of the carrier
signal is changed by varying the sine and cosine inputs at a particular time. PSK technique is
widely used for wireless LANs, bio-metric, contactless operations, along with RFID and
Bluetooth communications.
PSK is of two types, depending upon the phases the signal gets shifted. They are −
1. Binary Phase Shift Keying (BPSK) : This is also called as 2-phase PSK or Phase Reversal
Keying. In this technique, the sine wave carrier takes two phase reversals such as 0°
and 180°. BPSK is basically a Double Side Band Suppressed Carrier (DSBSC) modulation
scheme, for message being the digital information.
2. Quadrature Phase Shift Keying (QPSK) : This is the phase shift keying technique, in
which the sine wave carrier takes four phase reversals such as 0°, 90°, 180°, and 270°.
Functionally, the PSK modulator is very similar to the ask modulator. Both uses balanced
modulator to multiply the carrier with the multiplying signal. But in the 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 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 the 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 &
the original PSK signal is switched through the detector.
pg. 6
BLOCK DIGRAM:
PROCEDURE:
pg. 7
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 47 is same as the NRZ(M) pulse width.
CONNECTIONS:
OBSERVATIONS :
pg. 8
e) Demodulated Wave f) Bipolar Demodulated Wave
pg. 9
EXPERIMENT-3
Theory :
Frequency Shift Keying :FSK is the digital modulation technique in which the frequency of the
carrier signal varies according to the digital signal changes. FSK is a scheme of frequency
modulation.
The output of a FSK modulated wave is high in frequency for a binary High input and is low in
frequency for a binary Low input. The binary 1s and 0s are called Mark and Space frequencies.
The following image is the diagrammatic representation of FSK modulated waveform along
with its input.
FSK Modulator
The FSK modulator block diagram comprises of two oscillators with a clock and the input
binary sequence. Following is its block diagram.
pg. 10
FSK Demodulator
There are different methods for demodulating a FSK wave. The main methods of FSK
detection are asynchronous detector and synchronous detector. The synchronous detector
is a coherent one, while asynchronous detector is a non-coherent one.
The block diagram of Asynchronous FSK detector consists of two band pass filters, two
envelope detectors, and a decision circuit. Following is the diagrammatic representation.
The FSK signal is passed through the two Band Pass Filters BPFs, tuned
to Space and Mark frequencies. The output from these two BPFs look like ASK signal, which
is given to the envelope detector. The signal in each envelope detector is modulated
asynchronously.
The decision circuit chooses which output is more likely and selects it from any one of the
envelope detectors. It also re-shapes the waveform to a rectangular one.
The block diagram of Synchronous FSK detector consists of two mixers with local oscillator
circuits, two band pass filters and a decision circuit. Following is the diagrammatic
representation.
pg. 11
The FSK signal input is given to the two mixers with local oscillator circuits. These two are
connected to two band pass filters. These combinations act as demodulators and the decision
circuit chooses which output is more likely and selects it from any one of the detectors. The
two signals have a minimum frequency separation.
For both of the demodulators, the bandwidth of each of them depends on their bit rate. This
synchronous demodulator is a bit complex than asynchronous type demodulators.
Procedure:
FSK Modulation:
FSK Demodulation:
Connections :
pg. 12
Observations :
pg. 13
Fig: FSK Modulated Output Fig: Demodulated output
pg. 14
EXPERIMENT-4
pg. 15
Connections :
Observations:
Fig: TDM Signal Fig: TDM Signal with 2nd channel open
pg. 16
Fig: TDM signal when both the channels are short for 1st channel i.e. CH0
pg. 17
Fig: TDM signal for 2nd channel when CH0 and CH1 are short
Fig: Input and TDM output for CH0 when CH1 is open
Fig: Input and TDM output for CH0 and CH1 when CH0 is open
pg. 18
Fig: Input and TDM output for CH0 and CH1
pg. 19
EXPERIMENT-5
The basic operations in the receiver section are regeneration of impaired signals,
decoding, and reconstruction of the quantized pulse train. Following is the block diagram of
PCM which represents the basic elements of both the transmitter and the receiver sections.
pg. 20
In Pulse Code Modulation, the message signal is represented by a sequence of coded pulses.
This message signal is achieved by representing the signal in discrete form in both time and
amplitude.
Instead of a pulse train, PCM produces a series of numbers or digits, and hence this process is
called as digital. Each one of these digits, though in binary code, represent the approximate
amplitude of the signal sample at that instant.
Procedure :
1. Ensure that the MODE switch should be in Fast mode.
2. Connect CH 0 & CH 1 to DC1 & DC2.
3. Ensure that the DC1 & DC2 controls in Function Generator Block should be in fully
clockwise direction & 1KHz & 2KHz signal controls set art 10Vpp.
4. Now turn ON the kit & see that the LED glows.
5. With the help of Digital Voltmeter, adjust the DC1 amplitude control until the DC1 O/P
measures 0V.
6. Observe the O/P 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 DC input from +5V to -5V in steps of 1V.
8. Observe the output of +5V.
9. Turn the DC1 control fully anticlockwise & repeat the above procedure by varying the
DC2 control.
10. Trigger the dual trace oscilloscope externally by the CH1 signal available at t.p.12 &
observe the signal at CH 0 & CH1 with reference to the signal.
11. Now connect the oscilloscope channel 1 to CH! Sample & sketch the three waveforms.
Connections:
pg. 21
Observations:
pg. 22
Fig: Input and TDM output of CH1
pg. 23
EXPERIMENT-6
Theory :
Delta Modulation is a simplified form of DPCM technique, also viewed as 1-bit DPCM
scheme. As the sampling interval is reduced, the signal correlation will be higher.
The Delta Modulator comprises of a 1-bit quantizer and a delay circuit along with two
summer circuits. Following is the block diagram of a delta modulator.
Procedure :
1. Make connections as per diagram.
2. Ensure that the clock frequency selector block switches A & B are in A=0 and B=0 position.
3. Now turn On the kit and see that LED glows .
4. In order to ensure for the correct operation of the system, we first connect O volts to the
+ve input of the comparator. Now observe the output of the integrator 1 (i.e. tp 17) and the
pg. 24
output of transmitter's level changer (i.e. tp 15). When the positive and negative output levels
of the level changer will be equal the output will be a triangular waveform as shown in fig3
(Case A). When the negative level is greater than positive level, the integrator's output level
will be as shown in fig3 (Case B). And when the positive output level is greater, then the
integrator' output will be as shown in fig3 (Case C). The levels can be adjusted by turning the
potentiometer from one extreme to another.
5. Adjust the transmitter's level changer preset until the output of integrator is a triangular
wave centered at 0 volts. The peak to peak amplitude of the wave should be 0.5 volts
(approx.), this amplitude is known as the integrator Step Size.
6. Now observe the output of the transmitter's bistable circuit (i.e. tp 14). It is now a stream
of alternate '1' and 'O'. This is the output of a delta modulator and the Delta modulator is now
said to be balanced for correct operation.
7. Now examine the output of integrator at the receiver (i.e. tp 47). It should be a triangular
wave with step size equal to that of integrator in transmitter and ideally centered around 0
volts. 8. Now observe the output of low pass filter. It will be a DC level centered around 0 volts.
This is the output of Delta dernodulator and it is balanced for correct operation.
9. Now disconnect the 0 volts from the +ve input of the comparator and reconnect it to 250
Hz signal of the function generator block. Now observe the output of voltage comparator (tp
9), integrator (tp 17). Also observe the delta modulated output at the output of bistable
circuit. It has been encoded into stream of '0' and '1'
10. Also observe the output of low pass filter in the receiver (tp 51), which is the output of
demodulator.
11. Now disconnect 250 Hz from the +ve input of comparator and reconnect it to 500 Hz, 1
Khz, and 2 Khz outputs in turn. Now note the frequency of the analog signal increases, so the
low pass filter's output becomes more distorted and reduced in amplitude. This effect is
known as 'Slope Overloading'.
Observations:
pg. 25
Fig: Unipolar to Bipolar Output Fig: Bistable Circuit Output
pg. 26
Fig: Unipolar to Bipolar Output Fig: LPF Output
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.
pg. 27
EXPERIMENT-7
pg. 28
Experiment :- 7
AIM :- Implementation of Viterbi algorithm using C-language.
THEORY:- Finding most probable sequence of hidden states: We often wish to take a
particular HMM, and determine from an observation sequence the most likely sequence of
underlying hidden states that might have generated it.
" We can find the most probable sequence of hidden states by listing all possible sequences
of hidden states and finding the probability of the observed sequence for each of the
combinations. The most probable sequence of hidden states is that combination that
maximizes Pr (observed sequence | hidden state combination).
The most probable sequence of hidden states is the sequence that maximizes :
Pr(dry,damp,soggy sunny,sunny,unny),
Prdry,damp,soggy | sunny,sunny,cloudy),
Pr(dry, damp,soggy | sunny,sunny,rainy),.
Pr(dry,damp,soggy | rainy,rainy,rainy)
"This approach is viable, but to find the most probable sequence by exhaustively calculating
cach combination is computationally expensive. As with the forward algorithm, we can use
the
time invariance of the probabilities to reduce the complexity of the calculation.
Reducing complexity using recursion
" Consider recursively finding the most probable sequence of hidden states given
observation sequence and aHMM. We will first define the partial probability 6, which is the
probabilityy of reaching aparticular intermediate state. Also howthese partial probabilities are
calculated at t =1 and at t =n >1).
" These partial probabilities diffrer from those calculated in the forward algorithm since they
state at time t, and not a total
represent the probability of the most probable path to a
" Partial probabilities (8's) and partial best paths: Consider the states and first order
transitions for the observation sequence dry,damp,sOggy;
t=1
"We will call these paths partial best paths. Each of these partial best paths has an
associacu
probability, the partial probability or 8. Unlike the partial probabilities in the forward
algorithm, is the probability of the one (most probable) path to the state.
"Thus 8(i,t) is the maximum probability of all sequences ending at state i at time t, ana
u
partial best path is the sequence which achieves this maximal probability. Such a
(and partial path) exists for each possible value of I and t. probouy
.Calculating 's at time t=1
Calculatetheepartial probabilities as the most
particularknowledge such as probable route to
and probabilities of the our current position (given
observation
most probable path to a state does not previous state).
sensibly
being in that state giventt=l and the observable stateexist;
the
however we
When t =1
kl use the
probability of
85() = ()bik
"as in the forward algorithm, this quantity is compounded by the
probability. appropriate observation
.Calculating 8's at time t (> 1 )
OB
"Generalizing the above expression, the probability of the partial best path to astate l at time
t when the observation kt is given by:
&,(1) = max(&-1(j)ayibi.)
" Assuming knowledge of the previous state, using the transition probabilities and
multiplying by the appropriate observation probability.
" Back pointers, D's
t1 t-3
Iarrived?'
Ralny Raly Raly
ry tkamp
" At each intermediate and end state we know the partial probability, ö(i,). However
the aim is to find the most probable sequence of states given an observation sequence -
herefore we need some way of remembering the partial best paths through the trellis.
" Recall that to calculate the partial probability, at time t we only need the 's for time tl.
Having calculated this partial probability, it is thus possible to record which preceding stale
was the one to generate (i,t) - that is, in what state the system must have been at time
is to arrive optimally at state i at time t. This recording (remembering) is done by holding tor
optimally provokes the current
state a back pointer which points to the predecessor that
ch
ate. Formally, we can write
-) =argmaz;(6,-1(j)4)
"
the index jwhich maximizes the bracketed expression.
Here, the argmax operator selects observations of
algorithm provides a computationally eficient way of analyzing
he Viterbi underlying state sequence. It exploits recursion to reduce
IMs to recapture the most likely of the entire sequence to make judgments,
thereby
computational load, and uses the context
noise. In use, the algorithm proceeds through an execution trellis
llowing good analysis of together with a back-pointer indicating how that
calculating a partial probability for each cell,
completion, the most likely final state is taken as
cell could most probably be reached. On pointers.
correct, and the path to it traced back to t=1 via the back