Malak Ashour 8125 Sara Walid Elmassry 8236
Malak Ashour 8125 Sara Walid Elmassry 8236
Comments:
1. Time-Domain Signals
Each line code has a distinct waveform, affecting synchronization
and bandwidth.
NRZ (Polar & Inverted): Smooth transitions with minimal
changes, leading to lower bandwidth but potential
synchronization issues.
RZ (Polar & Bipolar): Signal returns to zero, improving
synchronization but increasing bandwidth usage.
Manchester: Frequent transitions ensure synchronization but
require the highest bandwidth.
(1)
Manchester coding has the highest bandwidth because it has a transition in
every bit period, effectively doubling the frequency compared to NRZ and RZ
codes.
(2)
1.Polar NRZ
3.Polar RZ
4.Bipolar NRZ
Advantages: No DC component, making it ideal for long-distance
transmission. It also allows error detection since consecutive 1s
alternate polarity.
Disadvantages: Long sequences of 0s can cause synchronization
issues.
5.Bipolar RZ
6.Manchester
(3)
1. Differential Manchester
2.4B/5B Encoding
4B/5B encoding is a block coding scheme used in Fast Ethernet
(100BASE-TX). It maps 4-bit data into 5-bit symbols to ensure enough
transitions for synchronization.
Tb = 1; % Bit duration
inverted_polar_nrz = -polar_nrz;
for i = 1:N
polar_rz((i-1)*100+1:(i-1)*100+50) = 2*bits(i)-1;
end
mark = 1;
for i = 1:N
if bits(i) == 1
bipolar_nrz((i-1)*100+1:i*100) = mark;
mark = -mark;
end
end
mark = 1;
for i = 1:N
if bits(i) == 1
bipolar_rz((i-1)*100+1:(i-1)*100+50) = mark;
mark = -mark;
end
end
for i = 1:N
%% Plot Results
figure;