You are on page 1of 4

ECE 412

Lab 2: PAM Signal Generated by Sinc-Shaped Pulses

Description: Sketch the waveform corresponding to the data sequence “110100”,


transmitted at 10,000 bits/sec using sinc-shaped pulses of +1 and -1 volt.

data sequence 1 1 0 1 0 0
volts 2

1.5

0.5

0 msec
50 100 150 200 250 300 350 400 450 500 550 600
-0.5

-1

s (t ) = p1 (t ) + p2 (t ) + p3 (t ) + p4 (t ) + p5 (t ) + p6 (t )
-1.5

-2
æ π [t - .00005] ö æ π [t - .00015] ö æ π [t - .00025] ö
= sincç ÷ + sincç ÷ - sincç ÷
è ø è ø è ø
-4 -4
10 10 10 -4
æ π [t - .00035] ö æ π [t - .00045] ö æ π [t - .00055] ö
+ sincç ÷ - sincç ÷ - sincç ÷
è ø è ø è ø
-4 -4
10 10 10 -4

volts 2

1.5

0.5

0 msec
50 100 150 200 250 300 350 400 450 500 550 600
-0.5

-1

-1.5

-2
MATLAB Program: write a MATLAB script file to show the PAM signal generated by
SINC-shaped waveform.

Submit requirements:
1. Objective of the lab,
2. Matlab .m file
3. two figures
4. Conclusions
t=linspace(0,600*10^(-6),50);
x1 = (pi*(t-0.00005))/0.0001;
x2 = (pi*(t-0.00015))/0.0001;
x3 = (pi*(t-0.00025))/0.0001;
x4 = (pi*(t-0.00035))/0.0001;
x5 = (pi*(t-0.00045))/0.0001;
x6 = (pi*(t-0.00055))/0.0001;

p1 = sin(x1)./x1;
p2 = sin(x2)./x2;
p3 = -sin(x3)./x3;
p4 = sin(x4)./x4;
p5 = -sin(x5)./x5;
p6 = -sin(x6)./x6;

s= p1 + p2 + p3 + p4 + p5 + p6;
figure (1)
plot(t,s,'k')
xlabel('t'),title('PAM Signal Generated by Sinc-Shaped Pulses')
grid

You might also like