Beruflich Dokumente
Kultur Dokumente
2E
u2
Pe Q 1 erfc( E ) 1
2
exp( )du
No 2 No 2E
2
No
III. LAB
Assuming that the data rate rb is 1 bit/sec. Choose the carrier
frequency fo = 4 rb = 4 He. Design and simulate the transmitter
at the baseband operation. The NRZ data can be generated by
using a random number generator. The sampling frequency of
the data is chosen to be 32* rb. The same sampling frequency
is also applied to the tone generator, which represents the
carrier frequency. Fig.3 Signal with AWGN
Ques. 1: Plot the waveform of si (n). Ques 3: Design a 32-point FFT processor to process the
received signal. In other words, the FFT processor is
employed for each 32 received samples. Find the FFT bin
which represents the desired channel.
%-----------------AWGN-------------------
EbN0 = 0:1:6;
L=1;
NPower = 0.25*(fs/rs)./10.^(0.1.*EbN0);
d = zeros(length(EbN0),N);
z = zeros(size(s));
error = zeros(length(EbN0),1);
for l = 1: length(EbN0);
wn = sqrt(NPower(l)).*
randn(1,length(nrzdata));
X = S+wn;
%32-point FFT
m = 32;
k = m*(f0/fs);
%----------------Receiver---------------- Fig. 6 The theoretical and experimental curve of BER vs.Eb/N0 (dB)
for j = 1:N
z(m*(j-1)+1:m*j) = fft(X(fs*(j-
1)+1:fs*j),m)/m;
Matlab Code:
th=0.5*erfc(sqrt(10.^(EbN0/10)));
BER = error/N;
figure(4);
semilogy(EbN0,BER,'*'),grid(gca);
xlabel('Eb/N0(dB)')
ylabel('BER')
title('BER vs. Eb/N0(dB)');
hold on;
semilogy(EbN0,th);
legend(' simulation error curve ','
theoretical error curve');
hold off;
IV. CONCLUSIONS
In this project, We learnt how signal is transmitted and
received and understood how to simulate a simplified BPSK
modem and how the signal is reconstructed back at the output
of the demodulator.
V. REFERENCES