CHAPTER 4d Encoding
CHAPTER 4d Encoding
INTRODUCTION
Data must be transformed into signal form in order to send them from one place to another. How the information is transformed is depends on its original format and the format used by the communication hardware. A simple signal by itself does not carry information any more than a straight line conveys words. The signal must be manipulated so that it contains identifiable changes that are recognizable to the sender and receiver as representing the information intended. Data stored in a computer are in the form of 0s and 1s. To be carried form one place to another, data are usually converted to digital signal.
Chapter 4/Encoding Techniques 2
DIGITAL-TO-DIGITAL CONVERSION
Digital-to-digital conversion is representing of digital information by a digital signal. For example; when a data is transmitted from your computer to your printer, both the original data and the transmitted data are digital signals. In this type of encoding, the binary 1s and 0s generated by a computer are translated into a sequence of voltage pulse that can be propagated over a wire. The three most useful categories for digital-to-digital conversion in data communications are:
Unipolar Polar Bipolar
Chapter 4/Encoding Techniques 3
DIGITAL-TO-DIGITAL CONVERSION
Digital encoding
Unipolar
UNIPOLAR
Unipolar encoding is very simple and very primitive. Although it is almost obsolete today, its simplicity provides an easy introduction to the concepts developed with the more complex systems. Unipolar encoding is so named because it uses only one polarity. This polarity is assigned to one of the two binary states, usually the 1 for positive voltage and the other state usually is 0, which representing by zero voltage.
POLAR
Polar encoding uses two voltage levels: one positive and one negative. By using both levels, in most polar encoding methods the average voltage level on the line is reduced and the dc component problem of unipolar encoding is alleviated.
In NRZ-L encoding, the level of the signal depends on the type of bit it represents. A positive voltage usually means the bit is 0 and a negative voltage means the bit is 1 (or vice versa). Thus, in NRZ-L, the level of the signal is dependent upon the state of the bit.
Chapter 4/Encoding Techniques 7
11
BIPHASE
Biphase is the best existing solution to the problem of synchronization. In this method, the signal changes at the middle of the bit interval but does not return to zero. Instead, it continues to the opposite pole. As in RZ, these mid interval transition allow for synchronization. There are two types of biphase encoding:
Manchester Differential Manchester
12
BIPHASE
Manchester uses the inversion at the middle of each bit interval for both synchronization and bit representation. A negative-to-positive transition represents binary 1 and a positive-to-negative transition represents binary 0. Differential Manchester uses the inversion at the middle of the bit interval for synchronization, but the presence or absence of an additional transition at the beginning of the interval is for bit identifying. The transition means binary 0 and no transition means binary 1. Differential Manchester requires two signal changes to represent binary 0 but only one to represent binary 1.
Chapter 4/Encoding Techniques 13
BIPHASE
Figure below shows the Manchester and differential Manchester signals for the same bit pattern.
Amplitude 0 1 0 0 1 1 0
Manchester
Time
Differential Manchester
Time
14
BIPOLAR
Bipolar encoding is similar to the RZ, uses three voltage levels: 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. If the first bit 1 is represented by the positive amplitude, the second bit 1 will be represented by the negative amplitude, the third bit 1 represented by the positive amplitude and so on. This alternation occurs even when bit 1s are not consecutive.
15
BIPOLAR
Three types of bipolar encoding that popular in data communication are shown below:
Bipolar
AMI
B8ZS
HDB3
16
17
18
20
EXAMPLE
By using B8ZS, encode the bit stream of 10000000000100. Assume that the polarity of the first 1 is positive.
21
22
23
EXAMPLE
By using HDB3, encode the bit stream of 10000000000100. Assume that the number of 1s so far is odd and the first 1 is positive.
24