Line Coding
Line Coding
Line coding: it is defined as the process of converting a sequence of bits to a digital signal.
The data, text, numbers and graphical images, audio are stored in computer memory in the
form of sequences of bit.
0 0 1 0 1 Line coding
0 1 1 0 1
0 0 1 0 1
Two data , level two signal level Two data level, three signal level
Figure. b for Data and signal levels
Chapter One Line Coding
A pulse: is the time required for a pulse to be transmitted. Pulse rate: is defined as
the number of pulses per second.
0 1 1 0 1 1 0 0
pulse
Note: pulse rate is also called “symbol rate”. It can be the same as binary rate, or it is a group of bits.
Example: For the fig.D If we assume is 0.5msec. Find the pulse rate and bit rate for both
figures.
Chapter One Line Coding
2 2
Ex: A signal has two data levels with pulse duration of 1Ms, Calculate the pulse rate and bit
rate. Repeat if there are four levels.
Sol:
pulse rate =
1.
2
2.
2
Depending on the number of levels, the bit rate can either be equal to the pulse rate or
greater than the pulse rate.
1. Unipolar codes: use only one level of voltage other than zero Hence the voltage
levels are (0, +A).
2. Polar codes: use two levels of voltage other than zero.
3. Bipolar codes: use three voltage levels positive, negative and zero.
Chapter One Line Coding
1.10 Unipolar codes( return to zero RZ, Non return to zero NRZ)
If logic “1”:
{ 2
If logic “0”:
1 0 1 1 0 1 0 0 1 0 1
𝑇𝐵
Properties:
Each pulse in a non-zero voltage is active for 50%.
The Dc voltage is one fourth the non-zero voltage if we transmit equal probable ones
and zero.
If logic “1”:
{
If logic “0”:
Chapter One Line Coding
1 0 1 1 0 1 0 0 1 0 1
𝑇𝐵
1.11 Polar codes( return to zero RZ, Non return to zero NRZ
1. Polar return to zero (RZ): Symbol “1” is represented by positive voltage polarity
wherease symbol “0” is represented by negative voltage polarity. The equation of the polar
RZ is:
If logic “1”:
{ 2 2
2
If logic “0”:
{ 2 2
1 0 1 1 0 1 0 0 1 0 1
𝑇𝐵
𝐴
2
𝐴
2
Properties:
Fig. for polar (RZ) Line coding
Chapter One Line Coding
It is simple.
The DC value is minimum.
If the probability of occurrence is the same for zeros and ones, then the average DC
value is zero
No synchronization is required.
No correction capability.