Line Coding
Line Coding
Lecture (8)
Dr. Mohamed EL Hawary
OUTLINE
What is line coding?
They offer better noise immunity, are cheaper to implement in hardware, more
secure and also allow data compression, thereby optimally utilizing the
transmission link.
3
Digital Signal
Transmission
4
Digital Data Transmitted as Digital Signals
To convert digital data into digital signals. It can be done in two ways, line
coding and block coding.
Here digital data is first encoded into a binary stream. These binary streams are
then converted into digital signals by line coding techniques.
5
What is Line Coding?
- is the process of converting binary data (a sequence of bits) to a
digital signal.
6
Line Coding
7
8
Unipolar Encoding
- Unipolar encoding uses only single voltage level to represent data.
9
Polar Encoding
- Polar encoding uses two voltage levels (positive and
negative).
10
Polar Encoding
1.1- Polar NRZL (Non Return to Zero) Level
11
Polar Encoding
1.2- Polar NRZI (Non Return to Zero Inverted)
- The signal level to the left of the bit is high – Fig. A and Fig. C
- The signal level to the left of the bit is low – Fig. B and Fig. D
12
NRZ-L changes voltage level at when a different bit is encountered whereas NRZ-I
changes voltage when a 1 is encountered.
13
Polar Encoding
2- Polar RZ (Return to Zero)
- Bit 0 is mapped to a negative amplitude - A for the first half of the symbol duration
followed by a zero amplitude for the second half of the symbol duration.
- Bit 1 is mapped to a positive amplitude +A for the first half of the bit duration followed by
a zero amplitude for the second half of the bit duration.
14
15
Polar Encoding
3- Polar Manchester Coding
16
Polar Encoding
4- Polar Differential Manchester Coding
- Bit 0 is mapped to signal level transition at the beginning of the bit interval.
- Bit 1 is mapped to absence of signal level transition at the beginning of the bit interval.
Assumption:
The signal level to the left of the bit is high – Fig. A and Fig. C
The signal level to the left of the bit is low – Fig. B and Fig. D
17
18
Line Coding Examples
19
Bipolar Encoding
Bipolar encoding uses three voltage levels, positive, negative and zero. Zero
voltage represents binary 0 and bit 1 is represented by altering positive and
negative voltages.
20
Thank You
21