Professional Documents
Culture Documents
Line Coding
Always needed Digital Signal
Block Coding
Digital Data May be needed
Digital Signal
Scrambling
Digital Signal
May be needed
Line Coding (Characteristics)
Digital Signal
r=4/3 r=2
r=1 r=1/2
• Data Rate (bps): the number of data elements (bits) sent in 1 second.
• Also called Bit Rate.
• Increased data rate results in faster transmission. 𝟏
𝑺𝒂𝒗𝒆 = 𝒄 × 𝑵 × ( ) 𝒃𝒂𝒖𝒅
• Signal Rate (baud): the number of signal elements sent in 1 second. 𝒓
• Also called pulse rate, modulation rate and baud rate.
• Decreased signal rate results in decreased bandwidth requirements. Signal Rate The Ratio
• The bandwidth (Range of Frequencies) is proportional to the signal rate (baud rate).
• The minimum bandwidth requirement is equal to the average signal rate.
Case Factor
Data Rate
• A signal is carrying one data element is encoded as one signal element (𝑟 = 1).
• The bit rate is 100 kbps.
• C is between 0 and 1 (assume ½).
• The baud rate is then: 𝟏
1 1 1 𝐵𝑚𝑖𝑛 =𝒄×𝑵×( )
𝑆 = 𝑐 × 𝑁 × 𝑟 = 2 × 100000 × 2 = 50000 = 50𝑘𝑏𝑎𝑢𝑑 𝒓
• DC Components
• Low frequencies around zero that are caused by a constant digital signal.
• Present problems for a system that cannot pass low frequencies or a system that uses electrical coupling
(via a transformer).
• The DC component means 0/1 parity that can cause baseline wondering.
• A scheme with no DC component is needed.
Line Coding (Characteristics)
• Self Synchronization
• The receiver clock is faster or slower than the sender clock.
• The bit intervals are not matched and the receiver might misinterpret the signals.
• A self-synchronizing digital signal includes:
• timing information in the data being transmitted.
• Including 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.
• The receiver clock is 0.1 percent faster than the sender clock.
Sent
• Data Rate is 1Kbps:
• Extra bps received:
0.1
1000 × = 1 𝑒𝑥𝑡𝑟𝑎 𝑏𝑖𝑡
100
• Data Rate is 1Mbps:
Received
• Extra bps received:
0.1
1000000 × = 1000 𝑒𝑥𝑡𝑟𝑎 𝑏𝑖𝑡
100
Line Coding (Characteristics)
• Built-in Error detection
• Error detecting capability in the generated code to detect some or all of the errors that occurred during
transmission
• Complexity
• A complex scheme is more costly to implement than a simple one.
Line Coding (Schemes)
Unipolar NRZ
Polar NRZ
RZ
Biphase Manchester
Line Coding Bipolar AMI Differential Manchester
Pseudoternary
8B/6T
4D-PAM5
Synchronization Polarity
• NRZ-L (Serious): Long • A sudden change of polarity
sequence of 0s or 1s. resulting in all 0s interpreted as 1s
• NRZ-I: Long Sequence of 0s. and all 1s interpreted as 0s
Polar Scheme (RZ)
• Solves Synchronization problems of NRZ.
• It uses three values positive, negative, and zero.
• The signal goes to 0 in the middle of each bit and remains there until the beginning of the next bit.
Bandwidth
Complexity • it requires two signal
• Complex (Uses three levels). changes to encode a bit
(greater bandwidth).
DC Components
• None. Polarity
• A sudden change of polarity
resulting in all 0s interpreted as 1s
and all 1s interpreted as 0s
Bi Phase Scheme
• Manchester encoding (RZ and NRZ-L)
• The duration of the bit is divided into two halves.
• The transition at the middle of the bit provides synchronization.
• Differential Manchester (RZ and NRZ-I)
• There is always a transition at the middle of the bit, but the bit values are determined at the beginning
of the bit.
Signal Rate
• Double of that in NRZ.
• Due to transitions.
Synchronization
• Problems due to Long
sequence of 0s.
DC Components
• None.
Bi Polar Scheme
• Three voltage levels: Positive, Negative, and Zero.
• One data element is at zero, while the other element alternates between positive and negative.
• AMI (Alternate Mark Inversion):
• A neutral zero voltage (Binary 0).
• Alternating positive and negative voltages (Binary 1).
• Pseudoternary:
• A neutral zero voltage (Binary 1).
• Alternating positive and negative voltages (Binary 0).
Signal Rate
• Same as NRZ.
• Due to transitions.
Baseline Wandering
• None
DC Components
• None.
Multilevel Scheme
• Increasing number of bits per baud:
• Encoding a pattern of m data elements into a pattern of n signal elements.
• A group of m data elements can produce a combination of 2𝑚 data patterns.
• L different levels, produce 𝐿𝑛 combinations of signal patterns.
• The subset is designed to prevent baseline wandering, provide synchronization and detect errors.
2𝑚 = 𝐿𝑛 2𝑚 < 𝐿𝑛 2𝑚 > 𝐿𝑛
data pattern is encoded data patterns occupy only a Data encoding is not
into one signal pattern subset of signal patterns possible because some of
the data patterns cannot
be encoded
Binary Data
𝒎𝑩𝒏𝑳
Number of signal levels
• B (Binary): L=2
• T (Ternary): L=3
Length of the binary pattern Length of the signal pattern
• Q (Quaternary): L=4
Multilevel Scheme
Block Coding
Combination Combines the n bit groups to form a stream (more bits the original stream
Block Coding (4B/5B)
Solution is
Block Coding NRZ • Not suitable for long-distance encoding either, because of the DC component.
Scrambling
Scrambling
• Avoids a long sequence of 0s in the original stream.
• Does not increase the number of bits.
• Does provide synchronization.
• It substitutes long zero-level pulses with a combination of other levels.
• Scrambling, as opposed to block coding, is done at the same time as encoding.
• The scrambling does not change the bit rate.
• DC balance is maintained.
Scrambling
Bipolar with 8 Zero Substitution (B8ZS) High Density Bipolar 3 Zero (HDB3)
• Eight consecutive zero-level voltages are replaced • More conservative than B8ZS:
by the sequence 000VB0VB. • Four consecutive zero-level voltages are replaced
• V (Violation): The same polarity as the polarity by a sequence of 000V or B00V.
of the previous nonzero pulse; • The reason for two different substitutions is to
• B (Bipolar): The polarity opposite to the maintain the even number of nonzero pulses
polarity of the previous nonzero pulse. after each substitution.
• B00V: is used if number of nonzero pulses is even.
• 000V: is used if number of nonzero pulses is odd.