SlideShare a Scribd company logo
Lecture 3: Line Coding
Line Coding
• Line Coding is a pattern of Voltage, Current
or photons used to represent digital data
transmitted down a communication channel
or written to a storage medium.
• Converting a string of 1’s and 0’s (digital
data) into a sequence of signals that denote
the 1’s and 0’s.
• For example a high voltage level (+V) could
represent a “1” and a low voltage level (0 or
-V) could represent a “0”.
• Various Conversion techniques used
DATA SIGNAL APPROACH
Digital Digital Encoding
Analog Digital Encoding
Analog Analog Modulation
Digital Analog Modulation
The type of signal to be used depends on the
Situation and the available Bandwidth
DIGITAL DATA – DIGITAL SIGNAL
• Digital data is converted to digital signal for transmission.
• Line coding is the technique used to convert digital data into digital signal.
• We assume that data, in the form of text, numbers, graphical images,
audio, or video, are stored in computer memory as sequences of bits.
Line coding and decoding
Mapping Data symbols onto
Signal levels
• A data symbol (or element) can consist of a
number of data bits:
– 1 , 0 or
– 11, 10, 01, ……
• A data symbol can be coded into a single signal
element or multiple signal elements
– 1 -> +V, 0 -> -V
– 1 -> +V and -V, 0 -> -V and +V
• The ratio ‘r’ is the number of data elements
carried by a signal element.
Signal Element Versus Data Element
• In data communications, our goal is to send data elements.
• A data element is the smallest entity that can represent a
piece of information: this is the bit.
• In digital data communications, a signal element carries data
elements.
• A signal element is the shortest unit of a digital signal.
• In other words, data elements are what we need to send;
signal elements are what we can send.
• Data elements are being carried; signal elements are the
carriers
Signal element versus data element
We define a ratio r which is the number of data elements carried by each signal
element. Figure below shows several situations with different values of r.
Data Rate Versus Signal Rate The data rate defines the number of data elements
(bits) sent in 1s. The unit is bits per second (bps). The signal rate is the number of
signal elements sent in 1s. The unit is the baud. The data rate is sometimes called
the bit rate; the signal rate is sometimes called the pulse rate, the modulation rate,
or the baud rate.
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
Example 1
We now need to consider the relationship between data rate and signal
rate (bit rate and baud rate). This relationship, of course, depends on the
value of r. It also depends on the data pattern C. If we have a data pattern
of all 1 s or all Os, the signal rate may be different from a data pattern of
alternating Os and 1 s.
where N is the data rate (bps); c is the case
factor, which varies for each case; S is the
number of signal elements; and r is the
previously defined factor
Although the actual bandwidth of a digital signal is
infinite, the effective bandwidth is finite.
we can say that the bandwidth (range of frequencies) is proportional to the signal
rate (baud rate). The minimum bandwidth can be given as
We can solve for the maximum data rate if the bandwidth of the channel is given.
Example 2
The maximum data rate of a channel is Nmax = 2 × B × log2 L (defined
by the Nyquist formula). Does this agree with the previous formula for
Nmax?
Solution
A signal with L levels actually can carry log2L bits per level. If each level corresponds to
one signal element and we assume the average case (c = 1/2), then we have
Important Characteristics of Line
Coding
• Number of signal levels
• Bit rate and Baud rate
• DC components
• Signal Spectrum
• Noise Immunity
• Error Detection
• Synchronization and
• Cost of Implementation
Baseline Wandering: In decoding a digital signal, the receiver calculates
a running average of the received signal power. This average is called the baseline.
The incoming signal power is evaluated against this baseline to determine the value
of the data element.
A long string of 0s or 1 s can cause a drift in the baseline (baseline wandering) and
make it difficult for the receiver to decode correctly.
A good line coding scheme needs to prevent baseline wandering.
DC Components: When the voltage level in a digital signal is constant for a
while, the spectrum creates very low frequencies .
These frequencies around zero, called DC (direct-current) components, present
problems for a system that cannot pass low frequencies or a system that uses
electrical coupling (via a transformer).
For example, a telephone line cannot pass frequencies below 200 Hz. Also a long-
distance link may use one or more transformers to isolate different parts of the line
electrically. For these systems, we need a scheme with no DC component.
Self-synchronization: To correctly interpret the signals received from the
sender, the receiver's bit intervals must correspond exactly to the sender's bit
intervals. If the receiver clock is faster or slower, the bit intervals are not matched
and the receiver might misinterpret the signals.
Figure 4.3 Effect of lack of synchronization
A self-synchronizing digital signal includes timing information in
the data being transmitted. This can be achieved if there are
transitions in the signal that alert the receiver to the beginning,
middle, or end of the pulse. If the receiver' s clock is out of
synchronization, these points can reset the clock.
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.
Example 3
At 1 Mbps, the receiver receives 1,001,000 bps
instead of 1,000,000 bps.
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 baseline wandering and DC
components. It has no synchronization or any
error detection. It is simple but costly in power
consumption.
Figure 5 Unipolar NRZ scheme
Unipolar Coding
Characteristics of Unipolar Coding
•It uses only one polarity of voltage level
•Bit rate same as data rate
•DC components present
•Loss of synchronization for long sequences of
0’s and 1’s
•Simple but Obsolete
Polar Coding
• Uses two voltage levels, One positive and the
other one negative
NRZ
Non-Return-to-Zero
•Voltage level is constant during a bit interval
•There are two NRZ schemes
I.NRZ – I
II.NRZ - L
NRZ – L
1 = Low Level
0 = High Level
NRZ - I
• For each 1 in the bit sequence, the signal level is inverted
• A transition from one voltage level to the other represents
a 1
Characteristics of NRZ
-Two Levels
-Bit rate same as Data
rate
-Loss of Synchronization
for long sequence of 0’s
or 1’s
Lecture notes eng  - Line Coding New.ppt
A system is using NRZ-I to transfer 1-Mbps
data. What are the average signal rate and
minimum bandwidth?
Solution
The average signal rate is S= c x N x R = 1/2 x N x 1 =
500 kbaud. The minimum bandwidth for this average
baud rate is Bmin = S = 500 kHz.
Note c = 1/2 for the avg. case as worst case is 1 and best
case is 0
Example
RZ
Return to Zero
• To ensure synchronization, there must be a
signal transition in each bit
Characteristics of RZ Encoding
• Three levels
• Bit rate is double that of data rate
• No DC component
• Good Synchronization
• Increase in bandwidth is the main limitation
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.
Polar biphase: Manchester and differential Manchester schemes
• In Manchester and differential Manchester encoding, the transition at the middle of
the bit is used for synchronization.
• The minimum bandwidth of Manchester and differential Manchester is 2 times that of NRZ.
The Manchester scheme overcomes several problems associated with NRZ-L, and
differential Manchester overcomes several problems associated with NRZ-I. First, there
is no baseline wandering. There is no DC component because each bit has a positive
and negative voltage contribution. The only drawback is the signal rate. The signal rate
for Manchester and differential Manchester is double that for NRZ. The reason is that
there is always one transition at the middle of the bit and maybe one transition at the
end of each bit.
Characteristics of Biphase Encoding
• Two levels
• No DC component
• Good Synchronization
• Higher bandwidth due to doubling of bit rate
with respect to data rate
BIPOLAR ENCODING
• AMI – Amplitude Mark Inversion
Bipolar AMI
• Uses three voltage levels
• Unlike RZ, the zero level is used to represent a 0
• Binary 1s are represented by alternatively
positive and negative voltage
Characteristics of Bipolar AMI
• Three levels
• No DC component
• Loss of synchronization for long sequence of 0’s
• Lesser Bandwidth
Pseudotenary – A coding scheme same as AMI, but
alternating positive and negative pulses occur for binary
0 instead of binary 1
Bipolar schemes: AMI and pseudoternary
In bipolar encoding (sometimes called multilevel binary), we use three levels:
positive, zero, and negative.
The bipolar scheme was developed as an alternative to NRZ.
The bipolar scheme has the same signal rate as NRZ, but there is no DC component.
The NRZ scheme has most of its energy concentrated near zero frequency, which
makes it unsuitable for transmission over channels with poor performance around
this frequency.
The concentration of the energy in bipolar encoding is around frequency N/2.
AMI used with scrambling
Biphase schemes that are suitable for dedicated links between stations in a LAN
are not suitable for long-distance communication because of their wide bandwidth
requirement.
If we can find a way to avoid a long sequence of Os in the original stream, we can
use bipolar AMI for long distances.
We are looking for a technique that does not increase the number of bits and does provide
synchronization.
We are looking for a solution that substitutes long zero-level pulses with a combination of
other levels to provide synchronization. One solution is called scrambling.
AMI used with scrambling
Special Purpose Codes
Scrambling Schemes
• Extensions of Bipolar AMI
• Used incase of long distance applications
• Goals
- No DC component
- No long sequence of 0-level line signal
- Minimum increase in bandwidth
- Error detection capability
- Examples B8ZS and HDB3
Bipolar Coding Schemes
B8ZS Scheme
• Bipolar with 8-Zero Substitution
• The limitation of bipolar AMI is overcome in B8ZS,
which is used in North America
• A sequence of eight zeros is replaced by the following
encoding
- A sequence of eight 0’s is replaced by 000+-0+-, if the
previous pulse was positive
- A sequence of eight 0’s is replaced by 000-+0+-, if the
previous pulse was negative
B8ZS
V = Bipolar Violation, B = Valid Bipolar
Violation
B8ZS
HDB3 Scheme
High Density Bipolar – 3 Zeros
• Another alternative, which is used in Europe and Japan
• It replaces a sequence of 4 zeros by a code as per the
rule given in the table below
HDB3
HDB3
-Examples B8ZS and HDB3
Characteristics of B8ZS and HDB3
• Three levels
• No DC component
• Good Synchronization
• most of the energy is concentrated around a
frequency equal to half the data rate
• Well suited for high data-rate transmission over
long distance
Spectrum Comparison
Ethernet Standards and Signaling
Individual Assignment
• Draw line codes for 1010 0000 0000 1011
0000 1011 0000
–RZ
–NRZ-L, NRZ-I
–AMI, Pseudoternary, HDB3, B8ZS,
–Manchester and differential
Manchester schemes
Thank You!

More Related Content

PPT
Lecture 08
PPT
Chapter2-PhysicalLayer.ppt
PPT
base-band_digital_data_transmission-Line coding - Copy.ppt
PPT
Ch4 Data communication and networking by neha g. kurale
PPTX
Data Encoding in Data Communication.pptx
PPT
unit 2 intr to phy layer part 1.pptcvcvcv
PPTX
Line Coding.pptx
PPTX
lec5_13.pptx
Lecture 08
Chapter2-PhysicalLayer.ppt
base-band_digital_data_transmission-Line coding - Copy.ppt
Ch4 Data communication and networking by neha g. kurale
Data Encoding in Data Communication.pptx
unit 2 intr to phy layer part 1.pptcvcvcv
Line Coding.pptx
lec5_13.pptx

Similar to Lecture notes eng - Line Coding New.ppt (20)

PPT
Data Encoding
PPTX
Lecture 08
PPT
Encoding and Modulating Data Signal from analog to digital and from digital t...
PDF
signalencodingtechniques-170203124858.pdf
PPT
Signal encoding techniques
PDF
Binary to digital encoding tbs 301
PPTX
Unit-2-04-digitatoDogitalconversion.pptx
PPT
1630944221ghfgthgfxcffcbcfgbfcgfdgfccgfd.ppt
PPTX
Lec_CodingSchemes.pptx
PPTX
Data communications 4 1
PPTX
DC MODULE 3 PPT from the data communicatiobs
PPTX
Line coding wbdhbcbjcc wbcujbu c hbjbcj.pptx
PDF
Computer network and its applications.pdf
PDF
Computer network and its types application.pdf
PDF
Signal conversion techniques and compression
PPTX
Digital data transmission,line coding and pulse shaping
PPT
CCN
PDF
Data Communication & Computer Networks:Digital Signal Encoding
PPT
Unit 4
Data Encoding
Lecture 08
Encoding and Modulating Data Signal from analog to digital and from digital t...
signalencodingtechniques-170203124858.pdf
Signal encoding techniques
Binary to digital encoding tbs 301
Unit-2-04-digitatoDogitalconversion.pptx
1630944221ghfgthgfxcffcbcfgbfcgfdgfccgfd.ppt
Lec_CodingSchemes.pptx
Data communications 4 1
DC MODULE 3 PPT from the data communicatiobs
Line coding wbdhbcbjcc wbcujbu c hbjbcj.pptx
Computer network and its applications.pdf
Computer network and its types application.pdf
Signal conversion techniques and compression
Digital data transmission,line coding and pulse shaping
CCN
Data Communication & Computer Networks:Digital Signal Encoding
Unit 4
Ad

More from JumanneChiyanda (8)

PPTX
L1 General Introductionbbbbbbbbbb-1.pptx
PPTX
In aumkokbvkhkGENERAL HV GENERATION.pptx
PPT
Synchronous COUNTER presentation eng.ppt
PPTX
A digital group 8 for presentations.pptx
PPT
interfacing1 lecture notes for eng 5.ppt
PPTX
Three-Phase Alternating C MachinesL2.pptx
PPTX
Array and string in C++_093547 analysis.pptx
PPT
NEW TRAINING ON E-RESOURCES ACCESS AND USE.ppt
L1 General Introductionbbbbbbbbbb-1.pptx
In aumkokbvkhkGENERAL HV GENERATION.pptx
Synchronous COUNTER presentation eng.ppt
A digital group 8 for presentations.pptx
interfacing1 lecture notes for eng 5.ppt
Three-Phase Alternating C MachinesL2.pptx
Array and string in C++_093547 analysis.pptx
NEW TRAINING ON E-RESOURCES ACCESS AND USE.ppt
Ad

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Welding lecture in detail for understanding
DOCX
573137875-Attendance-Management-System-original
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Well-logging-methods_new................
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Construction Project Organization Group 2.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
Mechanical Engineering MATERIALS Selection
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
bas. eng. economics group 4 presentation 1.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Welding lecture in detail for understanding
573137875-Attendance-Management-System-original
Lecture Notes Electrical Wiring System Components
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Internet of Things (IOT) - A guide to understanding
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Well-logging-methods_new................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CYBER-CRIMES AND SECURITY A guide to understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Construction Project Organization Group 2.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mechanical Engineering MATERIALS Selection
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Lesson 3_Tessellation.pptx finite Mathematics

Lecture notes eng - Line Coding New.ppt

  • 2. Line Coding • Line Coding is a pattern of Voltage, Current or photons used to represent digital data transmitted down a communication channel or written to a storage medium. • Converting a string of 1’s and 0’s (digital data) into a sequence of signals that denote the 1’s and 0’s. • For example a high voltage level (+V) could represent a “1” and a low voltage level (0 or -V) could represent a “0”.
  • 3. • Various Conversion techniques used DATA SIGNAL APPROACH Digital Digital Encoding Analog Digital Encoding Analog Analog Modulation Digital Analog Modulation The type of signal to be used depends on the Situation and the available Bandwidth
  • 4. DIGITAL DATA – DIGITAL SIGNAL • Digital data is converted to digital signal for transmission. • Line coding is the technique used to convert digital data into digital signal. • We assume that data, in the form of text, numbers, graphical images, audio, or video, are stored in computer memory as sequences of bits. Line coding and decoding
  • 5. Mapping Data symbols onto Signal levels • A data symbol (or element) can consist of a number of data bits: – 1 , 0 or – 11, 10, 01, …… • A data symbol can be coded into a single signal element or multiple signal elements – 1 -> +V, 0 -> -V – 1 -> +V and -V, 0 -> -V and +V • The ratio ‘r’ is the number of data elements carried by a signal element.
  • 6. Signal Element Versus Data Element • In data communications, our goal is to send data elements. • A data element is the smallest entity that can represent a piece of information: this is the bit. • In digital data communications, a signal element carries data elements. • A signal element is the shortest unit of a digital signal. • In other words, data elements are what we need to send; signal elements are what we can send. • Data elements are being carried; signal elements are the carriers
  • 7. Signal element versus data element We define a ratio r which is the number of data elements carried by each signal element. Figure below shows several situations with different values of r. Data Rate Versus Signal Rate The data rate defines the number of data elements (bits) sent in 1s. The unit is bits per second (bps). The signal rate is the number of signal elements sent in 1s. The unit is the baud. The data rate is sometimes called the bit rate; the signal rate is sometimes called the pulse rate, the modulation rate, or the baud rate.
  • 8. 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 Example 1 We now need to consider the relationship between data rate and signal rate (bit rate and baud rate). This relationship, of course, depends on the value of r. It also depends on the data pattern C. If we have a data pattern of all 1 s or all Os, the signal rate may be different from a data pattern of alternating Os and 1 s. where N is the data rate (bps); c is the case factor, which varies for each case; S is the number of signal elements; and r is the previously defined factor
  • 9. Although the actual bandwidth of a digital signal is infinite, the effective bandwidth is finite. we can say that the bandwidth (range of frequencies) is proportional to the signal rate (baud rate). The minimum bandwidth can be given as We can solve for the maximum data rate if the bandwidth of the channel is given. Example 2 The maximum data rate of a channel is Nmax = 2 × B × log2 L (defined by the Nyquist formula). Does this agree with the previous formula for Nmax? Solution A signal with L levels actually can carry log2L bits per level. If each level corresponds to one signal element and we assume the average case (c = 1/2), then we have
  • 10. Important Characteristics of Line Coding • Number of signal levels • Bit rate and Baud rate • DC components • Signal Spectrum • Noise Immunity • Error Detection • Synchronization and • Cost of Implementation
  • 11. Baseline Wandering: In decoding a digital signal, the receiver calculates a running average of the received signal power. This average is called the baseline. The incoming signal power is evaluated against this baseline to determine the value of the data element. A long string of 0s or 1 s can cause a drift in the baseline (baseline wandering) and make it difficult for the receiver to decode correctly. A good line coding scheme needs to prevent baseline wandering. DC Components: When the voltage level in a digital signal is constant for a while, the spectrum creates very low frequencies . These frequencies around zero, called DC (direct-current) components, present problems for a system that cannot pass low frequencies or a system that uses electrical coupling (via a transformer). For example, a telephone line cannot pass frequencies below 200 Hz. Also a long- distance link may use one or more transformers to isolate different parts of the line electrically. For these systems, we need a scheme with no DC component. Self-synchronization: To correctly interpret the signals received from the sender, the receiver's bit intervals must correspond exactly to the sender's bit intervals. If the receiver clock is faster or slower, the bit intervals are not matched and the receiver might misinterpret the signals.
  • 12. Figure 4.3 Effect of lack of synchronization A self-synchronizing digital signal includes timing information in the data being transmitted. This can be achieved if there are transitions in the signal that alert the receiver to the beginning, middle, or end of the pulse. If the receiver' s clock is out of synchronization, these points can reset the clock.
  • 13. 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. Example 3 At 1 Mbps, the receiver receives 1,001,000 bps instead of 1,000,000 bps.
  • 15. 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 baseline wandering and DC components. It has no synchronization or any error detection. It is simple but costly in power consumption.
  • 16. Figure 5 Unipolar NRZ scheme
  • 17. Unipolar Coding Characteristics of Unipolar Coding •It uses only one polarity of voltage level •Bit rate same as data rate •DC components present •Loss of synchronization for long sequences of 0’s and 1’s •Simple but Obsolete
  • 18. Polar Coding • Uses two voltage levels, One positive and the other one negative
  • 19. NRZ Non-Return-to-Zero •Voltage level is constant during a bit interval •There are two NRZ schemes I.NRZ – I II.NRZ - L NRZ – L 1 = Low Level 0 = High Level
  • 20. NRZ - I • For each 1 in the bit sequence, the signal level is inverted • A transition from one voltage level to the other represents a 1 Characteristics of NRZ -Two Levels -Bit rate same as Data rate -Loss of Synchronization for long sequence of 0’s or 1’s
  • 22. A system is using NRZ-I to transfer 1-Mbps data. What are the average signal rate and minimum bandwidth? Solution The average signal rate is S= c x N x R = 1/2 x N x 1 = 500 kbaud. The minimum bandwidth for this average baud rate is Bmin = S = 500 kHz. Note c = 1/2 for the avg. case as worst case is 1 and best case is 0 Example
  • 23. RZ Return to Zero • To ensure synchronization, there must be a signal transition in each bit
  • 24. Characteristics of RZ Encoding • Three levels • Bit rate is double that of data rate • No DC component • Good Synchronization • Increase in bandwidth is the main limitation
  • 25. 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.
  • 26. Polar biphase: Manchester and differential Manchester schemes • In Manchester and differential Manchester encoding, the transition at the middle of the bit is used for synchronization. • The minimum bandwidth of Manchester and differential Manchester is 2 times that of NRZ. The Manchester scheme overcomes several problems associated with NRZ-L, and differential Manchester overcomes several problems associated with NRZ-I. First, there is no baseline wandering. There is no DC component because each bit has a positive and negative voltage contribution. The only drawback is the signal rate. The signal rate for Manchester and differential Manchester is double that for NRZ. The reason is that there is always one transition at the middle of the bit and maybe one transition at the end of each bit.
  • 27. Characteristics of Biphase Encoding • Two levels • No DC component • Good Synchronization • Higher bandwidth due to doubling of bit rate with respect to data rate
  • 28. BIPOLAR ENCODING • AMI – Amplitude Mark Inversion Bipolar AMI • Uses three voltage levels • Unlike RZ, the zero level is used to represent a 0 • Binary 1s are represented by alternatively positive and negative voltage
  • 29. Characteristics of Bipolar AMI • Three levels • No DC component • Loss of synchronization for long sequence of 0’s • Lesser Bandwidth Pseudotenary – A coding scheme same as AMI, but alternating positive and negative pulses occur for binary 0 instead of binary 1
  • 30. Bipolar schemes: AMI and pseudoternary In bipolar encoding (sometimes called multilevel binary), we use three levels: positive, zero, and negative. The bipolar scheme was developed as an alternative to NRZ. The bipolar scheme has the same signal rate as NRZ, but there is no DC component. The NRZ scheme has most of its energy concentrated near zero frequency, which makes it unsuitable for transmission over channels with poor performance around this frequency. The concentration of the energy in bipolar encoding is around frequency N/2.
  • 31. AMI used with scrambling Biphase schemes that are suitable for dedicated links between stations in a LAN are not suitable for long-distance communication because of their wide bandwidth requirement. If we can find a way to avoid a long sequence of Os in the original stream, we can use bipolar AMI for long distances. We are looking for a technique that does not increase the number of bits and does provide synchronization. We are looking for a solution that substitutes long zero-level pulses with a combination of other levels to provide synchronization. One solution is called scrambling. AMI used with scrambling
  • 32. Special Purpose Codes Scrambling Schemes • Extensions of Bipolar AMI • Used incase of long distance applications • Goals - No DC component - No long sequence of 0-level line signal - Minimum increase in bandwidth - Error detection capability - Examples B8ZS and HDB3
  • 34. B8ZS Scheme • Bipolar with 8-Zero Substitution • The limitation of bipolar AMI is overcome in B8ZS, which is used in North America • A sequence of eight zeros is replaced by the following encoding - A sequence of eight 0’s is replaced by 000+-0+-, if the previous pulse was positive - A sequence of eight 0’s is replaced by 000-+0+-, if the previous pulse was negative
  • 35. B8ZS V = Bipolar Violation, B = Valid Bipolar Violation
  • 36. B8ZS
  • 37. HDB3 Scheme High Density Bipolar – 3 Zeros • Another alternative, which is used in Europe and Japan • It replaces a sequence of 4 zeros by a code as per the rule given in the table below
  • 38. HDB3
  • 39. HDB3
  • 41. Characteristics of B8ZS and HDB3 • Three levels • No DC component • Good Synchronization • most of the energy is concentrated around a frequency equal to half the data rate • Well suited for high data-rate transmission over long distance
  • 44. Individual Assignment • Draw line codes for 1010 0000 0000 1011 0000 1011 0000 –RZ –NRZ-L, NRZ-I –AMI, Pseudoternary, HDB3, B8ZS, –Manchester and differential Manchester schemes