Encoding Techniques and Codec
Encoding Techniques and Codec
It is required that information must be encoded into signals before it can be transported across
communication media. In more precise words we may say that the waveform pattern of voltage or
current used to represent the 1s and 0s of a digital signal on a transmission link is called digital to
digital line encoding. There are different encoding schemes available:
Digltal-to-Digltal Encoding
There are basically following types of digital· to-digital encoding available like:
Unipolar
Polar
Bipolar.
Unipolar
Unipolar encoding uses only one level of value 1 as a positive value and 0 remains Idle. Since
unipolar line encoding has one of its states at 0 Volts, it’s also called Return to Zero (RTZ) as shown in
Figure. A common example of unipolar line encoding is the 11'L logic levels used in computers and
digital logic.
Unipolar encoding represents DC (Direct Current) component and therefore, ca.'1nottravel through
media such as microwaves or transformers. It has low noise margin and needs extra hardware for
synchronization purposes. It is well suited where the signal path is short. For long distances, it
produces stray capacitance in the transmission medium and therefore, it never returns to zero as
shown in Figure.
Polar
Polar encoding uses two levels of voltages say positive and negative. For example, the RS:232D
interface uses Polar line encoding. The signal does not return to zero; it is either a positive voltage or
a negative voltage. Polar encoding may be classified as non·return to zero (NRZ), return to zero (RZ)
and biphase. NRZ may be further divided into NRZ·L and NRZ·I. Biphase has also two different
categories as Manchester and Differential Manchester encoding. Polar line encoding is the simplest
pattern that eliminates most of the residua! DC problem. Figure shows the Polar line encoding. It has
the same problem of synchronization as that of unipolar encoding. The added benefit of polar
encoding is that it reduces the power required to transmit the signal by one-half.
In NRZ·L, the level of the signal is 1 if the amplitude is positive and 0 in case of negative amplitude.
In NRZ·I, whenever a positive amplitude or bit I appears in the signal, the signal gets inverted,
RZ uses three values to represent the signal. These are positive, negative, and zero. Bit 1is
represented when signal changes from positive to zero. Bit 0 is represented when signal changes
from negative to zero. Figure explains the RZ concept.
Biphase
Biphase is implemented in two different ways as Manchester and Differential Manchester encoding.
In Manchester encoding, transition happens at the middle of each bit period. A low to high transition
represents a 1 and a high to low transition represents a 0.In case of Differential Manchester
encoding, transition occurs at the beginning of a bit time, which represents a zero.
These encoding can detect errors during transmission because of the transition during every bit
period. Therefore, the absence of a transition would indicate an error condition. They have no DC
component and there is always a transition available for synchronizing receives and transmits clocks.
Bipolar
Bipolar uses three voltage levels. These are positive, negative, and zero. Bit 0 occurs at zero level of
amplitude. Bit 1 occurs alternatively when the voltage level is either positive or negative and
therefore, also called as Alternate Mark Inversion (AMI). There is no DC component because of the
alternate polarity of the pulses for Is. Figure describes bipolar encoding.
Unipolar scheme –
In this scheme, all the signal levels are either above or below the axis.
Non return to zero (NRZ) – It is unipolar line coding scheme in which positive
voltage defines bit 1 and the zero voltage defines bit 0. Signal does not return
to zero at the middle of the bit thus it is called NRZ. For example: Data = 10110.
But this scheme uses more power as compared to polar scheme to send one bit
per unit line resistance. Moreover for continuous set of zeros or ones there will
be self-synchronization and base line wandering problem.
Polar schemes –
In polar schemes, the voltages are on the both sides of the axis.
NRZ-L and NRZ-I – These are somewhat similar to unipolar NRZ scheme but
here we use two levels of amplitude (voltages). For NRZ-L(NRZ-Level), the
level of the voltage determines the value of the bit, typically binary 1 maps to
logic-level high, and binary 0 maps to logic-level low, and for NRZ-I(NRZ-
Invert), two-level signal has a transition at a boundary if the next bit that we are
going to transmit is a logical 1, and does not have a transition if the next bit that
we are going to transmit is a logical 0.
Note – For NRZ-I we are assuming in the example that previous signal before
starting of data set “01001110” was positive. Therefore, there is no transition at
the beginning and first bit “0” in current data set “01001110” is starting from +V.
Example: Data = 01001110.
The bipolar scheme is an alternative to NRZ.This scheme has the same signal
rate as NRZ,but there is no DC component as one bit is represented by voltage
zero and other alternates every time.
Three ways
MULTIPLEXING
ERROR DETECTION
Types of error
One Single bit error- only one bit gets corrupted. Its common in parallel transmission.
Burst error
message D = 1010001101
pattern P = 110101