Aim:
To generate a pseudo noise (PN) sequence.
Apparatus Required:
Procedure:
1. The circuit connections are made as shown in the circuit diagram.
2. Reset the circuit.
3. Give input (high) to pins 1 and 2.
4. Then connect the EX-OR gate output to pins 1 and 2.
5. The PN sequences are generated.
A B C
0 0 0
0 1 1
1 0 1
1 1 0
IC74LS164:
RESET CLOCK A B Qa Qb…. Qn
L X X X LL….L
H L X X No Change
H PGT H H H Shift
H PGT L X L Shift
H PGT X L L Shift
PN Sequence:
Initial state: CLK Q0 Q1 Q2 Q3
1 1 1 1 1
1 0 1 1 1
1 1 0 1 1
1 0 1 0 1
1 1 0 1 0
1 1 1 0 1
1 0 1 1 0
1 0 0 1 1
1 1 0 0 1
1 0 1 0 0
1 0 0 1 0
1 0 0 0 1
1 1 0 0 0
1 1 1 0 0
1 1 1 1 0
1 1 1 1 1
Result:
Thus PN sequence was generated using IC74LS164.
EX NO: 1(b) GOLD SEQUENCE GENERATION
DATE:
Aim:
To generate gold sequence using IC74LS164 (8 bit serial in parallel out shift
register).
Apparatus Required:
Balance property:
The given sequence is said to posses good balance property if the number of
binary ones differs from zeros by at most one digit in a period.
Run property:
The run is defined as the sequence of single type of binary digits. Its
properties states that among the runs of ones and zeros it is desirable that one half of
each type are of length one
Correlation property:
If period of sequence is compared term by term with any cyclic shift of
itself, it is best if the number of agreements differs from the number of disagreements.
Procedure:
1. The circuit connections are made as shown in the circuit diagram.
2. The PN sequences are generated and observed on the LEDs for PRNS1 and
PRNS2.
3. The PN sequences are EX-ORed to generate gold sequence.
4. The gold sequence generated is verified using the truth table.
Observation:
Clk PNS1 PNS2 Gold sequence
Qa Qb Qc Qd Qe Qa Qb Qc Qd Qe
Result:
Thus the gold sequence was generated using IC74LS164 and IC74LS86 and
verified manually.
APPARATUS REQUIRED:
BLOCK DIAGRAM:
Input Original
Data Sequence
Scrambled Data
PN PN
Sequence Sequence
PIN DIAGRAM:
1 2 4 5 7
14 9
1 2 4 5 7
FUNCTIONAL DIAGRAM:
FRAME SYNCHRONIZED SCRAMBLER
THEORY:
A better method is to scramble the data before it modulates the carrier. The receiver
circuitry must contain the corresponding descrambling algorithm to recover the bit
sequence before data are sent to DTE. The purpose of a scrambler is not simply to
detect the occurrence of a undesirable bit sequence and convert it to more acceptable
pattern.
In general scrambler tends to make the data more random by removing
long strings of 1’s and 0’s. Scrambling can be helpful in timing extraction by
removing long strings of 0’s in binary data and are optimizes for that purpose. Such
optimization may result in data.
The scrambler consists of a feedback register and the matching
descrambler has feed forward shift register. Each stage in shift register delays a bit by
one unit. To analyze the scrambler and the matched descrambler, consider the output
sequence of the scrambler. If S is the input sequence to the scrambler, then
S+DT+D3 T=T
S=T+ (D+D3) T
= (1+ (D+D3)) T
= (1+F) T Where f=D+D3
S=T+FT
=T+ (D+D3) T
PROCEDURE:
1. Connect the PRBS sequence as shown in the figure with the message in logic
0 condition
2. Apply reset and observe LED’s 1,2,3,4 are in logic 0 condition. Ensure reset
pin in logic 1 state
3. Apply INIT pulse momentarily so that Q of PRBS 1 & PRBS 2 becomes logic
1 with a slow clock.
4. Keep INIT switch in logic 0 state and LED 2 & LED 4 outputs flashing
synchronously depending upon the clock speed.
5. Observe with the message input at logic 0, the message output is also 0, even
though LED 2 & LED 4 are flashing.
6. Now keep message in at logic 1 and observe the message out at logic at 1
7. Observe that the message in and out follows each other irrespective of clock
speed.
RESULT:
Thus long ones and zeros have been eliminated by using frame and self
synchronized scrambler and scrambled output are then descrambled to get original
message input (long ones and zeros).
Aim:
To provide a form of secure communication by using pseudo random noise
sequence.
Apparatus Required:
Pin Diagram:
IC 74LS164
Theory:
The received signal is passed through a low pass filter and the demodulating signal is
obtained.
Applications
Procedure:
1. The circuit connections are made as shown in the diagram.
2. The message signal is EX-ORed with the PN sequence.
3. Thus the direct sequence spread spectrum is generated.
4. Then it is demodulated again to produce the original message signal.
Tabulation:
Result:
Thus a message signal has been modulated and demodulated by means of direct
sequence spread spectrum.
AIM:
APPARATUS REQUIRED:
PIN DIAGRAM:
CONNECTION DIAGRAMS:
Pin diagram for DIP and SOIC
TRUTH TABLE:
CIRCUIT DIAGRAM:
AMPLITUDE SHIFT KEYING(ASK):
-12V
4
THEORY:
The two binary values(0,1) are represented by two different amplitudes of the
carrier.The binary ‘1’ is represented by the presence of the carrier.The binary ‘0’ is
represented by the absence of the carrier.
Here the two binary values are represented by two different frequencies near the
carrier frequency.The resulting signal is
Here the phase of the carrier signal is shifted to represent binary datas.Binary ‘0’ is
represented by sending a signal burst of the same phase as the previous signal burst.A
binary ‘1’ is represented by sending a signal burst of opposite phase to the preceding
one .
S(t)={A sin (2ΠFct+θ) -->binary ‘1’
{A sin (2ΠFct) -->binary ‘0’
PROCEDURE:
OBSERVATION:
ASK WAVEFORM:
FSK WAVEFORM:
RESULT:
Thus the digital modulation techniques like Amplitude shift keying (using
both ring modulator and IC4052),Phase shift Keying,Frequency shift keying were
performed and output was verified.
AIM:
APPARATUS REQUIRED:
PIN DIAGRAM:
CIRCUIT DIAGRAM:
DESIGN:
Differentiator:
Assume C1=0.1μF and fc=1KHz
Fo= 1/(2*П*R1*C1)
R1=1/(2*П*Fo*C1)
R1=1.5 KΩ
PROCEDURE:
OBSERVATION:
RESULT:
Thus the quadrature shift keying generator circuit is constructed and the output is
verified
AIM:
APPARATUS REQUIRED:
THEORY:
BLOCK DIAGRAM:
CIRCUIT DIAGRAM:
MANUAL CALCULATION:
I. m(D) = 1011;
g0 (D) = 1111;
g1 (D) = 1101
Message m (D) = 1+D2+D3
g0 (D) = 1+D+D2+D3;
g1 (D) = 1+D+D3
C0 = m (D) g0 (D)
= (1+D2+D3) (1+D+D2+D3)
= 1+D+D3+D6
C0 = {1, 1, 0, 1, 0, 0, 1}
C1 = m (D) g1 (D)
= (1+D2+D3) (1+D+D3)
= 1+D+D2+D3+D4+D5+D6
C1 = {1, 1, 1, 1, 1, 1, 1}
C0= 1010101
C1=1001011
OBSERVATION:
Theoretical Practical
1101 C0 = 1101001
C1 = 1111111
Output = {11,11,01,11,01,01,11}
1111 C0 = 1010101
C1= 1001011
Output = {11,00,10,01,10,01,11}
1101 C0 = 1010001
C1 = 1001011
Output = {11,00,10,01,00,01,11}
RESULT:
Thus the convolution code is produced by using 74LS164 and 74LS86.
Ex.No:7 E
CYCLIC CODE GENERATOR AND SYNDROME CALCULATOR
Date:
OBJECTIVE:
To generate parity bit using encoder for(7,4) Cyclic code to be generated for
the given generator polynomial y(x)= 1+x+x^3 and also verify the syndrome
calculator for the above polynomial.
APPARATUS REQUIRED:
2. IC 7486 1
THEORY:
A binary code is said to be cyclic if
CODE GENERATOR:
Since there is no symbol for parity code in non-symmetric form systematic code is
used.
1. Multiply the message polynomial D(x) with X(n-k) => D(x) * X(n-k).
2. Divide with generator polynomial X(n-k)*D(x)/G(x).
3. Remainder gives the parity bit.
4. Form the code word as parity bit, message bit recombination.
SYNDROME CALCULATOR:
Code Generator:
Block diagram:
Circuit diagram:
Calculation:
Remainder polynomial:x2+x=0
Syndrome calculator:
Block diagram:
7 bit error 6 bit error 5 bit error 4 bit error 3 bit error 2 bit error 1 bit error
1001010 1001001 1001111 1000011 1011011 1101011 0001011
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0
1 0 0 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1
1 0 1 0 1 0 0 0 1 1 1 1 0 1 1 0 1 1 0 1 1
1 0 0 0 0 1 1 1 0 1 0 1 0 1 1 1 1 1 1 1 1
0 1 0 1 1 0 0 1 1 1 0 0 1 1 1 0 0 1 1 0 1
1 0 1 1 1 1 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0
Syndrome Syndrome Syndrome Syndrome Syndrome Syndrome Syndrome
Error Correction:
Result:
AIM:
To construct the digital to uniform quantization level decoder circuit
using IC 7493.
APPARATUS REQUIRED:
PIN DIAGRAM:
SPECIFICATION:
IC 741
Supply voltage = + 12V & -12V
Differential input voltage = 30 V
Maximum power dissipation =500mW
CIRCUIT DIAGRAM:
DESIGN:
Let
Rf = 1 KΩ ;
Vin = 3V
Vo = Rf * Vin/R
R = Vin*Rf/Vo
R = 3*1*103/0.5
R = 6 KΩ
R/2 = 3 KΩ
R/4 = 1.5 KΩ
R/8 = 750 Ω
MODEL GRAPH:
Clock
Output
Voltage
THEORY:
PROCEDURE:
TABULATION:
Binary Equivalent Output Voltage(V)
S.No
Qd Qc Qb Qa Theoretical Practical
1 0 0 0 0 0
2 0 0 0 1 -0.5
3 0 0 1 0 -1
4 0 0 1 1 -1.5
5 0 1 0 0 -2
6 0 1 0 1 -2.5
7 0 1 1 0 -3
8 0 1 1 1 -3.5
9 1 0 0 0 -4
10 1 0 0 1 -4.5
11 1 0 1 0 -5
12 1 0 1 1 -5.5
13 1 1 0 0 -6
14 1 1 0 1 -6.5
15 1 1 1 0 -7
16 1 1 1 1 -7.5
RESULT:
Thus the digital to uniform quantization level decoder is designed and its output
is verified.
To perform bit error rate analysis for ASK, PSK, FSK in MATLAB.
SOFTWARE REQUIRED:
MATLAB 7.0
THEORY:
The two binary values (0, 1) are represented by two different amplitudes of the
carrier. The binary ‘1’ is represented by the presence of the carrier. The binary ‘0’ is
represented by the absence of the carrier.
The bit error rate (BER) of ASK in AWGN can be calculated as:
The bit error rate (BER) of FSK in AWGN can be calculated as:
Here the phase of the carrier signal is shifted to represent binary data. Binary
‘0’ is represented by sending a signal burst of the same phase as the previous signal
burst. A binary ‘1’ is represented by sending a signal burst of opposite phase to the
preceding one.
S (t) = {A sin (2ΠFct+θ) -->binary ‘1’
{A sin (2ΠFct) -->binary ‘0’
The bit error rate (BER) of PSK in AWGN can be calculated as:
clc;
clear all;
close all;
N=1000;
data=randsrc(1,N,[1,0]);
for snrindb=1:1:10
snrindb
sigampfsk=(sqrt(2*10.^(snrindb/10)));
for monte=1:1:100
noise1=randn(1,N);
unit1=noise1/sqrt(var(noise1));
noise2=randn(1,N);
unit2=noise2/sqrt(var(noise2));
for i=1:1:N
if data(i)==1
rxsigfsk1(i)=sigampfsk+unit1(i);
rxsigfsk2(i)=unit2(i);
else
rxsigfsk1(i)=unit1(i);
rxsigfsk2(i)=sigampfsk+unit2(i);
end
end
decfsk=(rxsigfsk1-rxsigfsk2)>0;
error=0;
for i=1:1:N
if decfsk(i)~=data(i)
error=error+1;
end
end
ber(monte)=error/N;
end
pb(snrindb)=mean(ber);
end
snr1=1:1:10;
semilogy(snr1,pb,'bs-');
hold on
snrindb=1:1:10;
snr=10.^(snrindb/10);
pbfsk=0.5*erfc(sqrt(0.5*snr));
semilogy(snrindb,pbfsk,'mo-');
hold on
grid on
legend('practical','theoretical');
xlabel('SNR in dB');
ylabel('PROBABILITY OF ERROR');
title('PERFORMENCE OF FSK');
PSK - Bit Error Rate Analysis:
clc;
clear all;
close all;
N=1000;
z=randn(1,N);
for i=1:1:N
if z(i)>0
data(i)=1;
else
data(i)=-1;
end
end
for SNRindB=1:1:10;
pe(SNRindB)=0;
np=10.^(-SNRindB/10);
for monte=1:1:N;
n=sqrt(np/2)*complex(randn(1,N));
n1=real(n);
s=data+n1;
for i=1:N
if s(i)>0
dec(i)=+1;
else
dec(i)=-1;
end
end
error=0;
for i=1:N
if dec(i)~=data(i)
error=error+1;
end
end
ber(monte)=error/N;
end
pe(SNRindB)=mean(ber);
end
SNRindB=1:1:10;
semilogy(SNRindB,pe,'rd-');
hold on;
th=0.5*erfc(sqrt(10.^(SNRindB/10)));
grid on;
semilogy(SNRindB,th,'b+-');
legend('practical','theoretical');
xlabel('SNR in dB');
ylabel('Probability of ERROR');
title(‘PERFORMANCE OF PSK’);
RESULT: