<< Chapter < Page Chapter >> Page >

The following code draws eye diagrams for the pulse shapes defined by the variable ps . As in the pulse shaping programs of the previous section, the N binary data points are oversampled by a factor of M and the convolution of the pulse shapes with the data uses the filter command. The reshape(x,a,b) command changes a vector x of size a*b into a matrix with a rows and b columns, which is used to segment x into b overlays, each a samples long. This works smoothly with the M atlab plot function.

N=1000; m=pam(N,2,1);                   % random signal of length N M=20; mup=zeros(1,N*M); mup(1:M:N*M)=m; % oversampling by factor of Mps=hamming(M);                          % hamming pulse of width M x=filter(ps,1,mup);                     % convolve pulse shape with mupneye=5; c=floor(length(x)/(neye*M));    % number of eyes to plot xp=x(end-neye*M*c+1:end);               % dont plot transients at startplot(reshape(xp,neye*M,c))              % overlay in groups of size neye
eyediag.m plot eye diagrams for a pulse shape (download file)
Eye diagrams for T, 2T, 3T, and 5T-wide Hamming pulse shapes show how the sensitivity to noises and timing errors increases as the pulse shape widens. The closed eye in the bottom plot means that symbol errors are inevitable.
Eye diagrams for T , 2 T , 3 T , and 5 T -wide Hamming pulse shapes show how the sensitivity to noises and timing errors increases as the pulse shape widens.The closed eye in the bottom plot means that symbol errors are inevitable.

Typical output of eyediag.m is shown in [link] . The rectangular pulse shape in the top plot uses ps=ones(1,M) , the Hamming pulse shape in the middle uses ps=hamming(M) , and the bottom plot uses atruncated sinc pulse shape ps=srrc(L,0,M) for L=10 that is normalized so that the largest value is one.The rectangular pulse is insensitive to timing errors, since sampling almost anywhere(except right at the transition boundaries) will return the correct values. The Hamming pulse shape has a wide eye,but may suffer from a loss of SNR if the samples are taken far from the center of the eye.Of the three, the sinc pulse is the most sensitive, since it must be sampled nearthe correct instants or erroneous values will result.

Eye diagrams for rectangular, Hamming, and sinc pulse shapes with binary data.
Eye diagrams for rectangular, Hamming, and sinc pulse shapes with binary data.

Modify eyediag.m so that the data sequence is drawn from the alphabet ± 1 , ± 3 , ± 5 . Draw the appropriate eye diagram for the rectangular, Hamming,and sinc pulse shapes.

Modify eyediag.m to add noise to the pulse shaped signal x . Use the M atlab command v*randn for different values of v . Draw the appropriate eye diagrams. For each pulse shape,how large can v be and still have the eye remain open?

Combine the previous two Exercises. Modify eyediag.m as in [link] so that the data sequence is drawn from the alphabet ± 1 , ± 3 , ± 5 . Add noise, and answer the same question as in [link] . Which alphabet is more susceptibleto noise?

TRUE or FALSE: For two rectangular impulse responses with the same maximummagnitude but different time widths with T 1 > T 2 , the half-power bandwidth of the frequency response of thepulse with width T 1 exceeds that of the pulse with width T 2 .

TRUE or FALSE: For the PAM baseband signals created bya rectangular pulse and a triangular pulse with the same time width and the same maximum amplitude,the half-power bandwidth of the sequence using the triangular pulse exceeds that of the rectangular pulse.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Software receiver design. OpenStax CNX. Aug 13, 2013 Download for free at http://cnx.org/content/col11510/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software receiver design' conversation and receive update notifications?

Ask