CSE 315 Lecture-No.5 (Fall 2021) - Line Coding
CSE 315 Lecture-No.5 (Fall 2021) - Line Coding
- Line Coding -
Prof. Dr. A.K.M. Muzahidul Islam
Computer Science & Engineering (CSE)
United International University (UIU)
Fall 2021
I’ll paint it on the walls
‘Cause I’m the one at faults
I’ll never fight again
And, this is how it ends!
2
Resources
■ B. A. Forouzen Chapter 4
Outline
4.5
Line Coding
4.6
Line Coding
0- Low Signal
1 – High Signal
4.8
Properties of Line Coding
9
Line encoding
4.10
Figure 4.3 Effect of lack of
synchronization
4.13
Figure 4.4 Line coding schemes
4.14
Classification of Line Coding
▪ Unipolar
▪ Uses only one voltage level other than 0
▪ e.g. RZ and NRZ
▪ Polar
▪ Uses two voltage level other than 0
▪ RZ, NRZ, Manchester
▪ Bipolar
▪ Uses three voltage levels positive, negative, and
zero
▪ E.g., AMI
15
Unipolar
Advantage:
■ Simple
4.16
Figure 4.5.1 Unipolar NRZ scheme
Exercise : 10011100
00101110
NRZ (Non-Return-to-Zero) – Signal does not
return to zero at the middle of the bit.
•Positive Voltage defines bit 1
•Zero voltage defines bit 0.
4.17
Figure 4.5.2 Unipolar RZ scheme
4.19
Figure 4.6 Polar NRZ-L and NRZ-I schemes
4.20
Note
4.21
Note
4.22
Polar - RZ
■ The Return to Zero (RZ) scheme uses three
voltage values. +V, 0V, -V.
■ Each symbol has a transition in the middle.
Either from high to zero - Z or from low to
zero – reverse Z.
■ This scheme has more signal transitions (two
per bit) and therefore requires a wider
bandwidth.
■ Self synchronization - transition indicates
symbol value.(Advantage)
■ More complex as it uses three voltage level. It
has no error detection capability.
(Disadvantage.)
4.23
Figure 4.7 Polar RZ scheme
Exercise: 110011000
110001011
4.24
Polar - Biphase: Manchester and
Differential Manchester
■ Manchester coding consists of combining the
NRZ-L and RZ schemes.
■ Every symbol has a level transition in the middle:
from high to low or low to high.
■ Uses only two voltage levels.
■ Differential Manchester coding consists of
combining the NRZ-I and RZ schemes.
■ Every symbol has a level transition in the middle.
But the level at the beginning of the symbol
is determined by the symbol value. One
symbol causes a level change the other does
not.
4.25
Figure 4.8 Polar biphase: Manchester and differential Manchester
schemes
Exercise: (i) 10011010
(ii) 10011100
0- Transition
1-No Transition
First time always negative to Exercise: (i) 11010101
(ii) 01101101
4.26 positive transition.
Note
4.27
Bipolar - AMI and Pseudoternary
■ Code uses 3 voltage levels: - +V, 0, -V, to
represent the symbols (note not transitions
to zero as in RZ).
■ Voltage level for one symbol is at “0” and the
other alternates between + & -.
■ Bipolar Alternate Mark Inversion (AMI) - the
“0” symbol is represented by zero voltage and
the “1” symbol alternates between +V and -V.
■ Pseudoternary is the reverse of AMI.
4.28
Figure 4.9 Bipolar schemes: AMI and pseudoternary
0- Draw line on the reference line
1- Draw line above/below (alter) of the reference line
Exercise: (i) 10011100
(ii) 00101110
■ Advantage:
■ Inbuilt error detection technique.
4.30