




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





In this experiment you will investigate how binary information is serially coded for transmission at baseband frequencies. In particular, you will study:
2 Experiment 2: Binary Signalling Formats ELE 745
A. Binary Signalling Formats: Line Code Waveforms
Binary 1’s and 0’s such as in pulse-code modulation (PCM) systems, may be represented in various serial bit signalling formats called line codes. In this section you will study signalling formats and their properties.
A.1 You will use the MATLAB function wave gen to generate waveforms representing a binary sequence:
wave gen( binary sequence, ’line code name’, Rb )
where Rb is the binary data rate specified in bits per second (bps). If you use the function wave gen with the first two arguments only, it will default to the binary data rate set by the variable binary data rate, which is 1,000 bps. Create the following binary sequence:
¿ b = [ 1 0 1 0 1 1 ];
Generate the waveform representing b, using unipolar NRZ line code with Rb = 1 kbps and display the waveform x.
¿ x = wave gen( b, ’unipolar nrz’, 1000 ); ¿ waveplot(x)
A.2 Repeat step A.1 for the following line codes:
¿ waveplot( wave gen( b, ’line code name’ ) )
Since you will compare waveforms at the same Rb, you can use the function wave gen with only two arguments.
Q2.1 For the above set of line codes determine which will gener- ate a waveform with no dc component regardless of binary sequence represented. Why is the absence of a dc compo- nent of any practical significance for the transmission of waveforms?
4 Experiment 2: Binary Signalling Formats ELE 745
B. Channel Characteristics
In this part you will simulate characteristics of a communications channel.
INPUT CHANNEL OUTPUT
NOISE
Fig 3.1 Channel model
The MATLAB function that represents the channel response is channel which is called with the following arguments:
channel( input, gain, noise power, bandwidth )
B.1 Create a 10 sample binary sequence b and generate a waveform repre- senting b in polar NRZ signalling format. Use Rb = 1 kbps.
¿ b = binary(10); ¿ x = wave gen( b, ’polar nrz’, 1000 );
From your observation in part A, determine the transmission band- width BT of x:
BT = Hz.
B.2 Consider a baseband data transmission channel with unity gain and ad- ditive white Gaussian noise (AWGN) where the noise power is 10−^2 W and the channel bandwidth is 4.9 kHz. Transmit waveform x over this channel. Display the channel input and output waveforms:
¿ y = channel( x, 1, 0.01, 4900 ); ¿ subplot(211), waveplot(x) ¿ subplot(212), waveplot(y)
If the signalling format is polar NRZ at Rb = 1 kbps, estimate the transmitted sequence from the display of the channel output waveform.
ˆb =
Compare your estimate with the original sequence b.
ELE 745 Experiment 2: Binary Signalling Formats 5
B.3 Effect of channel noise on the transmitted waveform: Gradually increase the channel noise power while keeping the channel bandwidth at 4.9 kHz and observe changes in the channel output.
¿ y = channel(x,1,sigma,4900); ¿ waveplot(y)
where sigma ∈ { 0. 1 , 0. 5 , 1 , 2 , 5 }. At what noise power level, does the channel output waveform becomes indistinguishable from noise?
B.4 You can also observe effects of increasing channel noise power by look- ing at the PSD of the channel output waveform.
¿ b = binary(1000); ¿ x = wave gen(b, ’polar nrz’, 1000); ¿ clf; subplot(121); psdf(x); ¿ subplot(122); psdf(channel(x,1,0.01,4900)) ¿ hold on ¿ subplot(122); psdf(channel(x,1,1,4900)) ¿ subplot(122); psdf(channel(x,1,5,4900))
Q2.3 Since the channel noise is additive and uncorrelated with the channel input, determine an expression that will de- scribe the PSD of the channel output in terms of the input and noise PSD functions.
B.5 Effects of channel bandwidth on transmitted waveform: Dis- tortion observed in the time display of the channel output is due to finite bandwidth of the channel and due to noise. To study distortion due to channel bandwidth only, set noise power to zero and regenerate the channel output waveform:
¿ hold off; clf; ¿ b = binary(10); ¿ x = wave gen( b, ’polar nrz’, 1000 ); ¿ subplot(211), waveplot(x) ¿ subplot(212), waveplot(channel(x,1,0,4900))
B.6 Investigate effects of channel bandwidth on the output waveform.
¿ subplot(212), waveplot( channel(x,1,0,bw) )
ELE 745 Experiment 2: Binary Signalling Formats 7
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x 10-
-1.
-0.
0
1
1.5 x 10
Time [sec]
EYE DIAGRAM
Fig 3.2 Interpretation of the eye pattern
A time interval over which the waveform can be sampled;
B margin over noise;
C distortion of zero crossings;
D slope: sensitivity to timing error;
E maximum distortion;
t∗^ optimum sampling instant measured with respect to the time origin. If the binary data period is Tb, then the waveform will be sampled at t∗, t∗^ + Tb, t∗^ + 2Tb,... for signal detection.
Generate the eye diagram from a polar NRZ waveform at the channel output for values of noise variance s2 and channel bandwidth bw shown in Table 2.2. Record t∗, A and B for each set of s2 and bw.
¿ clf ¿ b = binary(100); ¿ x = wave gen( b, ’polar nrz’, 1000 ); ¿ eye diag( channel( x, 1, s2, bw ) )
8 Experiment 2: Binary Signalling Formats ELE 745
Polar NRZ Line Code s2 bw t∗^ A B
Table 2.
C.3 Repeat step C.2 for manchester line code and record your results in Table 2.3.
Manchester Line Code s2 bw t∗^ A B
Table 2.
Q2.4 When you compare the eye diagrams from C.2 and C. for s2 = 0.01 and bw = 1000, for which line code do you observe a “reasonable” eye diagram? Explain the difference in terms of the respective line code properties.
C.4 Generate eye diagrams as in step C.2 for polar RZ and unipolar RZ and unipolar NRZ line codes and observe how the line code dictates the shape and the symmetry of the eye diagram.