03 Line Coding
03 Line Coding
2
Line Coding
▪ The data rate defines the number of bits sent per sec [bps].
▪ It is often referred as the bit rate.
▪ The signal rate is the number of signal elements sent in a
second and is measured in bauds.
▪ It is also referred to as the modulation rate.
▪ Goal is to increase the data rate whilst reducing the baud rate.
5
Line Coding …
7
Line Coding …
8
Line Coding …
9
Line Coding …
Considerations for choosing a good signal element:
▪ Error detection capability - errors occur during transmission
due to line impairments. Some codes are constructed such that
when an error occurs it can be detected.
▪ Immunity to noise and interference - there are line encoding
techniques that make the transmitted signal “immune” to noise
and interference. This means that the signal cannot be
corrupted, it is stronger than error detection.
▪ Complexity - the more robust and resilient the code, the more
complex it is to implement and the price is often paid in baud
rate or required bandwidth.
10
Line Coding Schemes
11
Line Coding Schemes…
Unipolar:
▪ All signal levels are on one side of the time axis - either above
or below
▪ NRZ - Non Return to Zero scheme is an example of this code.
The signal level does not return to zero during a symbol
transmission.
▪ Scheme is prone to DC components.
▪ It has no synchronization or any error detection. It is simple
but costly in power consumption.
12
Line Coding Schemes…..
13
Line Coding Schemes…..
Polar – NRZ:
▪ The voltages are on both sides of the time axis.
▪ Polar NRZ scheme can be implemented with two voltages.
E.g. +V for 1 and -V for 0.
▪ There are two versions:
✓ NRZ - Level (NRZ-L) - positive voltage for one symbol
and negative for the other.
✓ NRZ - Inversion (NRZ-I) - the change or lack of change in
polarity determines the value of a symbol.
E.g. a “1” symbol inverts the polarity a “0” does not.
14
Line Coding Schemes…..
▪ In NRZ-L the level of the voltage determines the value of the bit.
▪ In NRZ-I the inversion or the lack of inversion determines the
value of the bit.
▪ NRZ-L and NRZ-I both have an average signal rate of N/2 Bd.
17
Line Coding Schemes…..
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.
18
Line Coding Schemes…..
19
Line Coding Schemes…..
20
Line Coding Schemes…..
21
Line Coding Schemes…..
22
Line Coding Schemes…
23
Line Coding Schemes…..
Multilevel Schemes:
▪ In these schemes we increase the number of data bits per symbol
thereby increasing the bit rate.
▪ Since we are dealing with binary data, we only have 2 types of
data element a 1 or a 0.
▪ We can combine the 2 data elements into a pattern of “m”
elements to create “2m” symbols.
▪ If we have L signal levels, we can use “n” signal elements to
create Ln signal elements.
24
Line Coding Schemes…..
Multilevel Schemes:
▪ Now we have 2m symbols and Ln signals.
▪ If 2m > Ln then we cannot represent the data elements, we don’t
have enough signals.
▪ If 2m = Ln then we have an exact mapping of one symbol on one
signal.
▪ If 2m < Ln then we have more signals than symbols and we can
choose the signals that are more distinct to represent the symbols
and therefore have better noise immunity and error detection as
some signals are not valid.
25
Line Coding Schemes…..
26
Line Coding Schemes…..
27
Line Coding Schemes…..
28
Line Coding Cont’d…..
29
Example:
a. Unipolar NRZ
b. Bipolar RZ
c. AMI RZ
30
Solution:
31