Slide On Line Coding
Slide On Line Coding
Digital
Transmission
P R E PA R E D B Y
N U S R AT C H O W D H U R Y
L E C T U R E R , D E PA R T M E N T O F E E E
Lecture Contents
Line Coding
Line Coding Scheme
DIGITAL-TO-DIGITAL CONVERSION
Line Coding
The ratio ‘r’ is the number of data elements carried by a signal element.
Relationship between data rate
and signal rate
The data rate defines the number of bits sent per sec - bps. It is often
referred to 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.
Although the actual bandwidth of a digital signal is infinite, the
effective bandwidth is finite.
Data rate and Baud rate
The baud or signal rate can be expressed as:
S = c x N x 1/r bauds
where N is data rate
c is the case factor (worst, best & avg.) Note c = 1/2 for the avg. case
as worst case is 1 and best case is 0
r is the ratio between data element & signal element
Practice Problem
A signal is carrying data in which one data element is encoded as one
signal element ( r = 1). If the bit rate is 100 kbps, what is the average
value of the baud rate if c is between 0 and 1?
Solution:
We assume that the average value of c is 1/2 . The baud rate is then
Primary Considerations when
Comparing Line Codes
We want the transmission bandwidths to be as small as possible.
Favorable Power Spectral Density – We want zero power at DC (f = 0 ) to avoid baseline drift.
Adequate timing content – Often we must extract the timing or clock information from the signal.
Transparency – This means for every possible sequence of data the coded signal is received
faithfully.
Signal is easily regenerated by repeaters.
Considerations for choosing a good signal
element referred to as line encoding
Baseline wandering - a receiver will evaluate the average power of
the received signal (called the baseline) and use that to determine the
value of the incoming data elements. If the incoming signal does not
vary over a long period of time, the baseline will drift and thus cause
errors in detection of incoming data elements.
A good line encoding scheme will prevent long runs of fixed
amplitude.
Considerations for choosing a good signal
element referred to as line encoding
DC components - when the voltage level remains constant for long periods of
time, there is an increase in the low frequencies of the signal. Most channels are
bandpass and may not support the low frequencies.
This will require the removal of the dc component of a transmitted signal.
Self synchronization - the clocks at the sender and the receiver must have the
same bit interval.
If the receiver clock is faster or slower it will misinterpret the incoming bit
stream.
Effect of lack of Synchronization
Practice Problem
In a digital transmission, the receiver clock is 0.1 percent faster than
the sender clock. How many extra bits per second does the receiver
receive if the data rate is 1 kbps? How many if the data rate is 1
Mbps?
Solution:
At 1 kbps, the receiver receives 1001 bps instead of 1000 bps.
NRZ-L NRZ-I
Advantage:
Advantage:
• No DC component during long strings of 1.
• Easy to generate.
• No loss of synchronization for long strings of 1.
Disadvantage:
• More reliable to detect a transition in presence of noise than the
• DC component development during long level
strings of 0 or 1 result in “baseline wander”.
Disadvantage:
• Loss of synchronization during long strings of
• Presence of DC component resulting in “baseline wander”
0 or 1, as no transition available.
during long strings of 0.
• Loss of synchronization during long strings of 0 as no transition
available.
NRZ-L and NRZ-I
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.
Polar - RZ
The Return to Zero (RZ) scheme uses three voltage values. +, 0, - .
Each symbol has a transition in the middle. Either from high to zero or from low
to zero.
This scheme has more signal transitions (two per symbol) and therefore requires a
wider bandwidth.
No DC components or baseline wandering.
Self synchronization - transition indicates symbol value.
More complex as it uses three voltage level. It has no error detection capability.
Return to Zero (RZ)
For RZ, Consider 0 bit— (-ve) voltage and 1 bit– (+ve)
voltage
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.
◦ It is used in Ethernet (IEEE 802.3 standard) with lower data rates.
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.
Polar biphase: Manchester and differential
Manchester schemes
Manchester & Differential Manchester
Advantage:
• No loss of sync for long strings of 0 or 1.
• Transition in middle of bit period provided synchronization.
• Called self clocking codes.
• No DC component.
• Error detection if noise hampers transition.
Disadvantage:
• Bandwidth is doubled.
Bipolar - AMI and Pseudoternary
In mBnL schemes, a pattern of m data elements is encoded as a pattern of n signal elements in which
2m ≤ Ln.