Professional Documents
Culture Documents
Communications PDF
Communications PDF
sin(a) sin(b) = 1
2 cos(a − b) − 2 cos(a + b)
1
sin(a) cos(b) = 1
2 sin(a − b) + 2 sin(a + b)
1
x(t) × y(t)
c(t)
y(t) = x(t) · c(t) c(t) = cos(ωc t + θc )
• Modulation: the process of embedding an information-bearing
signal into a second signal
• Demodulation: extracting the information-bearing signal from
the second signal
• Sinusoidal Amplitude modulation: a sinusoidal carrier c(t) has
its amplitude modified by the information-bearing signal x(t)
X(jω)
1
ω
−ωx 0 ωx
C(jω)
π
ω
-ωc 0 ωc
1
Y (jω)
2
ω
-ωc -ωx -ωc -ωc +ωx 0 ωc -ωx ωc ωc +ωx
−0.2
−1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
−3
0.2 x 10
y(t)
−0.2
k = 1:N;
t = (k-1)/fs;
c = cos(2*pi*fc*t);
y = x.*c;
figure;
FigureSet(1,’LTX’);
subplot(3,1,1);
h = plot(t,x,’b’);
set(h,’LineWidth’,0.2);
xlim([0 max(t)]);
ylim([-0.3 0.3]);
ylabel(’x(t)’);
title(’Example of Sinusoidal Amplitude Modulation’);
box off;
AxisLines;
subplot(3,1,2);
h = plot(t,c,’b’);
set(h,’LineWidth’,0.2);
xlim([0 max(t)]);
ylim([-1.1 1.1]);
c(t) c(t)
y(t) = x(t) cos(ωc t)
w(t) = y(t) cos(ωc t)
= x(t) cos2 (ωc t)
1 1
= x(t) 2 + 2 cos(2ωc t)
= 12 x(t) + 12 x(t) cos(2ωc t)
• Synchronous demodulation assumptions
– The carrier c(t) is known exactly
– ω c > ωx
• The x(t) can be extracted by multiplying y(t) by the same carrier
and lowpass filtering the signal
1 Y (jω)
2
ω
−ωc 0 ωc
C(jω)
π
ω
−ωc 0 ωc
1 W (jω)
2
ω
−2ωc 0 2ωc
2
H(jω)
ω
0
1
R(jω)
Transmitter Receiver
y(t) y(t) w(t)
x(t) × Channel × H(s) x̂(t)
c(t) c(t)
0.2
x(t)
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
1 −3
x 10
c(t)
−1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
−3
0.2 x 10
y(t)
0
−0.2
k = 1:N;
t = (k-1)/fs;
c = cos(2*pi*fc*t);
y = x.*c;
figure;
FigureSet(1,’LTX’);
subplot(3,1,1);
h = plot(t,x,’b’);
set(h,’LineWidth’,0.2);
xlim([0 max(t)]);
ylim([-0.1 0.4]);
ylabel(’x(t)’);
title(’Example of Asynchronous Sinusoidal AM Modulation’);
box off;
AxisLines;
subplot(3,1,2);
h = plot(t,c,’r’);
set(h,’LineWidth’,0.2);
xlim([0 max(t)]);
- V V
0 0.7 0 0.7
R
vs
+ vo -
Draw the equivalent circuits for vs > 0 and vs < 0 assuming an ideal
model of the diode with a threshold voltage of 0 V.
+ i(t) + + i(t) +
- - - -
0.2
y(t)
0
−0.2
0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8
Half−wave Rectifier
−3
0.3 x 10
0.2
0.1
0
0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8
Full−wave Rectifier
−3
0.3 x 10
0.2
0.1
0
0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8
Time (s)
−3
x 10
k = 1:N;
t = (k-1)/fs;
rand(’state’,10);
xh = rand(1,N)-0.5; % Random high-frequency signal limited to [-0.5 0.5]
[n,wn] = ellipord(0.01,0.02,0.5,60);
[b,a] = ellip(n,0.5,60,wn);
x = filter(b,a,xh); % Lowpass filter to create baseband signal
x = x + 0.2; % Convert to positive signal
c = cos(2*pi*fc*t);
y = x.*c;
eh = y.*(y>0);
rh = filter(1-al,[1 -al],eh-mean(eh))+mean(eh);
ef = abs(y);
rf = filter(1-al,[1 -al],ef-mean(ef))+mean(ef);
figure;
FigureSet(1,’LTX’);
subplot(3,1,1);
h = plot(t,y,’g’,t,x,’b’,t,-x,’b’);
set(h,’LineWidth’,0.2);
xlim(1e-3*[0.8 1.8]);
ylim([-0.39 0.39]);
ylabel(’y(t)’);
title(’Example of Envelop Tracking of an Asynchronous AM Signal’);
box off;
x(t) + × y(t)
A c(t)
X(jω)
1
ω
−ωx 0 ωx
C(jω)
π
ω
-ωc 0 ωc
Aπ Y (jω)
1
2
ω
-ωc -ωx -ωc -ωc +ωx 0 ωc -ωx ωc ωc +ωx
x(t) + × y(t)
A c(t)
1
Y (jω)
2
ω
-ωc -ωx -ωc -ωc +ωx 0 ωc -ωx ωc ωc +ωx
1
Y (jω)
2
ω
-ωc -ωc +ωx 0 ωc -ωx ωc
1
X1 (jω) 1
X2 (jω) 1
X3 (jω)
ω ω ω
1 Y (jω)
2
ω
• We can transmit multiple signals using a single transmitting
antenna with frequency-division multiplexing (FDM)
• Each baseband signal is shifted to a different frequency band
• Thus, multiple baseband signals can be transmitted
simultaneously over a single wideband channel
• The different modulated signals y1 (t), y2 (t), and y3 (t) are simply
summed before sending to the antenna
• To recover a specific signal, the corresponding frequency band
usually is extracted with a bandpass filter
0.5
1
0
0 1 2 3 4 5 6 7 8 9 10 11
1
x [n]
0.5
2
0
0 1 2 3 4 5 6 7 8 9 10 11
1
x [n]
0.5
3
0
0 1 2 3 4 5 6 7 8 9 10 11
1
y[n]
0.5
0
0 5 10 15 20 25 30
k = 1:N;
x1 = rand(N,1);
x2 = rand(N,1);
x3 = rand(N,1);
y = zeros(3*N,1);
k1 = 1:3:3*N;
k2 = 2:3:3*N;
k3 = 3:3:3*N;
y(k1) = x1;
y(k2) = x2;
y(k3) = x3;
wc = pi;
T = 1; % Sample rate
t = 0:0.01:3*N+1;
n = 1:3*N;
figure;
FigureSet(1,’LTX’);
subplot(4,1,1);
h = stem(k,x1,’g’);
set(h(1),’MarkerSize’,2);
AxisSet(6);
print -depsc TDMultiplexing;
T
x(t) × y(t)
+∞
y(t) = x(nT ) p(t − nT )
n=−∞
p(t)
p(t)
• In practice, digital systems encode discrete-time signals with
discrete amplitudes
• Most digital signal processing (DSP) uses discrete-valued signals
• Continuous-valued signals are converted to discrete-valued signals
using analog-to-digital (ADC) converters
• Discrete-valued signals can be encoded using binary 1’s and 0’s
• These discrete signals can be transmitted over a communications
channel by transmitting
– 0: Transmit −p(t)
– 1: Transmit +p(t)
0.8
0.6
x [n]
1
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10 11
1
x(t)
−1
−2
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Eye Diagram
2
1.5
0.5
x(t)
−0.5
−1
−1.5
−2
−0.01 −0.008 −0.006 −0.004 −0.002 0 0.002 0.004 0.006 0.008 0.01
Time (sec)
figure;
FigureSet(1,’LTX’);
subplot(2,1,1);
h = stem(n,xd,’b’);
set(h(1),’MarkerSize’,2);
set(h(1),’MarkerFaceColor’,’b’);
hold off;
xlim([0 11]);
ylim([0 1.05]);
ylabel(’x_1[n]’);
title(’Example of Pulse-Code Modulation’);
box off;
subplot(2,1,2);
xc = zeros(size(t)); % Modulated signal x(t)
for cnt = 1:length(n),
s = -1*(xd(cnt)==0) + 1*(xd(cnt)==1);
p = s*sinc(wc*(t-n(cnt)*T)/pi);
plot(t,p,’b’);
hold on;
xc = xc + p;
end;
plot(t,xc,’g’);
figure;
FigureSet(2,’LTX’);
for cnt = 1:length(n),
k = -round(T/Ts):round(T/Ts);
plot(k*Ts,xc(round(n(cnt)*T/Ts)+k+1));
hold on;
end;
hold off;
xlim([min(k*Ts) max(k*Ts)]);
ylabel(’x(t)’);
xlabel(’Time (sec)’);
title(’Eye Diagram’);
box off;
AxisSet(6);
AxisLines;
print -depsc PCMEyeDiagram;
figure;
FigureSet(1,’LTX’);
subplot(2,1,1);
h = stem(n,xd,’b’);
set(h(1),’MarkerSize’,2);
set(h(1),’MarkerFaceColor’,’b’);
hold off;
xlim([0 11]);
ylim([0 1.05]);
ylabel(’x_1[n]’);
title(’Example of Pulse-Code Modulation’);
box off;
subplot(2,1,2);
xc = zeros(size(t)); % Modulated signal x(t)
for cnt = 1:length(n),
s = -1*(xd(cnt)==0) + 1*(xd(cnt)==1);
p = s*sinc(wc*(t-n(cnt)*T)/pi);
plot(t,p,’b’);
hold on;
xc = xc + p;
end;
plot(t,xc,’g’);
figure;
FigureSet(2,’LTX’);
for cnt = 1:length(n),
k = -round(T/Ts):round(T/Ts);
plot(k*Ts,xc(round(n(cnt)*T/Ts)+k+1));
hold on;
end;
hold off;
xlim([min(k*Ts) max(k*Ts)]);
ylabel(’x(t)’);
xlabel(’Time (sec)’);
title(’Eye Diagram’);
box off;
AxisSet(6);
AxisLines;
print -depsc PCMEyeDiagram;
0.5
1
0
0 1 2 3 4 5 6 7 8 9 10 11
2
x(t)
−2
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
4
2
r(t)
−2
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Eye Diagram
3
1
x(t)
−1
−2
−3
−0.01 −0.008 −0.006 −0.004 −0.002 0 0.002 0.004 0.006 0.008 0.01
Time (sec)
figure;
FigureSet(1,’LTX’);
subplot(3,1,1);
h = stem(n,xd,’b’);
set(h(1),’MarkerSize’,2);
set(h(1),’MarkerFaceColor’,’b’);
hold off;
xlim([0 11]);
ylim([0 1.05]);
ylabel(’x_1[n]’);
title(’Example of Pulse-Code Modulation’);
box off;
subplot(3,1,2);
xc = zeros(size(t)); % Modulated signal x(t)
for cnt = 1:length(n),
s = -1*(xd(cnt)==0) + 1*(xd(cnt)==1);
p = s*sinc(wc*(t-n(cnt)*T)/pi);
plot(t,p,’b’);
hold on;
xc = xc + p;
end;
figure;
FigureSet(2,’LTX’);
for cnt = 1:length(n),
k = -round(T/Ts):round(T/Ts);
plot(k*Ts,r(n(cnt)*round(T/Ts)+k+1));
hold on;
end;
hold off;
xlim([min(k*Ts) max(k*Ts)]);
ylabel(’x(t)’);
xlabel(’Time (sec)’);
title(’Eye Diagram’);
box off;
AxisSet(6);
AxisLines;
print -depsc PCMNoiseEyeDiagram;
−1
0 1 2 3 4 5 6 7 8 9
1
c(t)
−1
0 1 2 3 4 5 6 7 8 9
1
PM
−1
0 1 2 3 4 5 6 7 8 9
1 Time (s)
FM
−1
0 1 2 3 4 5 6 7 8 9
Time (s)
wc = 2*pi*fc;
k = 1:N;
t = (k-1)/fs;
figure;
FigureSet(1,’LTX’);
subplot(4,1,1);
h = plot(t,x,’b’);
set(h,’LineWidth’,0.2);
xlim([0 max(t)]);
ylabel(’x(t)’);
title(’Example of Sinusoidal AM Modulation’);
dθ(t)
θ(t) = ωc t + θ0 + kp x(t) = ωc + kf x(t)
dt
A
Y (jω)
2
ω
-ωc -ωx -ωc -ωc +ωx 0 ωc -ωx ωc ωc +ωx
Y (jω)
π
−5
−0.6 −0.4 −0.2 0 0.2 0.4 0.6
1
c(t)
−1
−0.6 −0.4 −0.2 0 0.2 0.4 0.6
5
AM
−5
−0.6 −0.4 −0.2 0 0.2 0.4 0.6
1 Time (s)
FM
−1
−0.6 −0.4 −0.2 0 0.2 0.4 0.6
Time (s)
t = -0.75:0.001:0.75;
figure;
FigureSet(1,’LTX’);
subplot(4,1,1);
h = plot(t,x,’b’);
set(h,’LineWidth’,0.2);
xlim([min(t) max(t)]);
ylabel(’x(t)’);
title(’Example of Sinusoidal AM and FM Modulation’);
box off;
AxisLines;
subplot(4,1,2);
h = plot(t,c,’b’);
set(h,’LineWidth’,0.2);
xlim([min(t) max(t)]);