CH 5
CH 5
4.8
Example 4.1
Solution
We assume that the average value of c is 1/2 . The baud
rate is then
4.9
Data Rate Versus Signal Rate
• The pulse rate/Signal rate defines the number of pulses per second.
• A pulse is the minimum amount of time required to transmit a symbol.
• If a pulse carries only 1 bit, the pulse rate and the bit rate are the same.
• If the pulse carries more than 1 bit, then the bit rate is greater than the pulse
rate.
Bit Rate = Pulse Rate x log2 L
Data Rate Versus Pulse Rate
Example
A signal has two data levels with pulse duration of 1 ms. Calculate the pulse rate
and bit rate?
Solution
Pulse Rate Calculation
Pulse Rate = 1 / 10-3 = 1000 pulses/second
Bit Rate Calculation
Bit Rate = Pulse Rate x log2 L Bit Rate = 1000 x log2 2
Bit Rate = 1000 bps
Data Rate Versus Pulse Rate
Example
A signal has four data levels with pulse duration of 1 ms. Calculate the pulse rate
and bit rate?
Solution
Pulse Rate Calculation
Pulse Rate = 1 / 10-3 = 1000 pulses/second
Bit Rate Calculation
Bit Rate = Pulse Rate x log2 L Bit Rate = 1000 x log2 4
Bit Rate = 1000 x 2 Bit Rate = 2000 bps
Example 4.2
Solution
A signal with L levels actually can carry log 2L bits per
level. If each level corresponds to one signal element and
we assume the average case (c = 1/2), then we have
4.13
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.
4.14
Line encoding C/Cs
4.15
Line encoding C/Cs
4.16
Figure 4.3 Effect of lack of synchronization
4.17
Line encoding C/Cs
4.18
Line encoding C/Cs
4.19
Line encoding C/Cs
4.20
Encoding/Decoding
• Digital-to-Digital conversion or encoding/decoding is the representation of digital
information by digital signal
• For example when we transmit data from computer to the printer, both original
and transmitted data have to be digital
• Encoding a digital signal is where 1’s and 0’s generated by the computer are
translated into voltage pulses that can be propagated over the wire
• A digital signal is a sequence of discrete, discontinuous voltage pulses, each pulse
is a signal element
• Binary data are transmitted by encoding each data bit into signal elements
Encoding/Decoding
• In the simplest case, there is a one-to-one correspondence between bits and
signal elements
• An example would be in which binary 0 is represented by a lower voltage level
and binary 1 by a higher voltage level
• A variety of other encoding schemes are also used
1. Unipolar
2. Polar
3. Bipolar
Unipolar Scheme
• Digital transmission systems work by sending voltage
pulses along a medium link, usually a wire or cable.
• In many types of encoding, one voltage level stands
for binary 0, and another level stands for binary 1.
• The polarity of the pulse refers to whether it is
positive or negative.
• Unipolar encoding is so named because it uses only
one polarity.
• This polarity is assigned to one of the two binary
stats, usually the 1.
• The other state, usually the 0, is represented by
zero voltage
• In a unipolar scheme, all the signal levels are on one
side of the time axis, either above or below.
Polar Schemes
• In polar schemes, the voltages are on the both sides of the time axis.
• For example, the voltage level for 0 can be positive and the voltage level
for I can be negative.
• It has 3 subcategories:
• Non Return to Zero (NRZ)
The signal does not return to zero at the middle of the bit.
• NRZL
• NRZI
• Return to Zero (RZ)
• Biphase
• Manchester
• Differential Manchester
NRZ Encoding
• In polar NRZ encoding, we use two levels of voltage amplitude.
• NRZ-L (Non-Return-to-Zero-Level)
• Level of the signal depends on the type of bit it represents
• A +ve voltage usually means the bit is a 1 and a –ve voltage means the bit is
a 0 (vice versa)
NRZ Encoding
• NRZ-I (NRZ-Invert), the change or lack of change in the level of the voltage
determines the value of the bit.
• If there is no change, the bit is 0; if there is a change, the bit is 1.
• A transition (low-to-high or high-to-low) at the beginning of a bit time denotes a
binary 1 for that bit time; no transition indicates a binary 0
NRZ-I VS NRZ-L
• In the NRZ-L sequence, positive and negative voltages have specific
meanings i.e. positive for 0 and negative for 1.
• In NRZ-I sequence, the voltages are meaning less and the receiver
looks for changes from one level to another as its basis for recognition
of 1s.
• 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
Example 4.4
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 B min = S =
500 kHz.
Note c = 1/2 for the avg. case as worst case is 1 and best case is 0
4.28
RZ Encoding
• The main problem with NRZ encoding occurs when the sender and receiver
clocks are not synchronized.
• The receiver does not know when one bit has ended and the next bit is starting.
• One solution is the return-to-zero (RZ) scheme, which uses three values: positive,
negative, and zero.
• In RZ, the signal changes not between bits but during the bit.
• The signal goes to 0 in the middle of each bit. It remains there until the beginning
of the next bit.
• The main disadvantage of RZ encoding is that it requires two signal changes to
encode a bit and therefore occupies greater bandwidth
RZ Encoding
• Like NRZ-L, +ve voltage means 1 and a –ve voltage means 0, but unlike NRZ-L, half
way through each bit interval, the signal returns to zero
• A 1 bit is represented by positive to zero and a 0 is represented by negative to
zero transition
Biphase Schemes
• Signal changes at the middle of bit interval but does not stop at zero
• Instead it continues to the opposite pole
• The idea of RZ (transition at the middle of the bit) and the idea of NRZ-L are combined
into the Manchester scheme.
• In Manchester encoding, the duration of the bit is divided into two halves.
• The voltage remains at one level during the first half and moves to the other level in
the second half
• Uses inversion at the middle of each bit interval for both synchronization and bit
representation
Negative-to-Positive Transition = 1
Positive-to-Negative Transition = 0
Biphase Schemes
• Differential Manchester, on the other hand, combines the ideas of 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.
• If the next bit is 0, there is a transition; if the next bit is 1, there is none
• Requires 2 signal changes to represent binary 0 but only one to represent binary 1
Bipolar Encoding
• Bipolar encoding uses three voltage levels i.e. positive negative and zero.
• The zero level in bipolar encoding is used to represent binary 0.
• The 1s are represented by alternating positive and negative voltages