Library

D LINE CODING

After source (data compression) or waveform coding (such as PCM or DPCM), the digital signal may be transmitted in its original form without carrier modulation. As described in Chapter 2, digital signals comprise a series of ones and zeros, each represented by a different voltage level. Although any two distinct voltage levels may appear sufficient in principle, the original baseband waveform is not well suited to direct transmission. Line coding converts the signal into a form better suited to the transmission medium by eliminating DC and low-frequency components (which waste power and hinder transformer coupling) and by embedding timing information that assists in synchronization.

As illustrated in Figure D.1(a), a logical zero could be represented by 0 V and a logical one by some positive voltage. This is called a unipolar or unbalanced code since the voltage excursions are all in one direction. Unfortunately, unipolar codes do not travel far, because the pulses are affected by line attenuation and cannot pass through transformers. Moreover, since the DC pulses are always positive, the technique is inefficient in its use of power.

Figure D.1. Line coding using (a) Unipolar, (b) Bipolar NRZ-L, (c) Return-to-Zero (RZ), (d) NRZ-Inverted (NRZ-I), (e) Alternate-Mark-Inversion (AMI), and (f) Bi-Phase-Level (Manchester) Encoding.

Bipolar, or balanced, codes address these difficulties by representing zeros by a positive pulse (typically between +5 V and +15 V) and ones by a negative pulse (between –5 V and –15 V). The average transmitted voltage approaches zero, and the transmission path can include transformer-coupled or AC-coupled circuits without signal degradation. These techniques are called non-return-to-zero (NRZ) schemes, and when a zero is represented by one voltage and a one by another, as shown in Figure D.1(b), the scheme is called NRZ-level (NRZ-L). While power-efficient, NRZ-L suffers from difficulty in maintaining synchronization during long strings of ones or zeros, when there are no transitions to realign the receiver’s clock. This can be overcome by inserting synchronization bits, although better methods exist.

Figure D.1(c) illustrates the bipolar return-to-zero (RZ) technique, which ensures that the signal returns to zero at the midpoint of each bit period so that the receiver always has transitions available for clock alignment. The main disadvantage is that the baud rate is twice the bit rate, meaning that twice the bandwidth is required to convey the same information.

A technique often referred to as differential encoding assists in clock synchronization by placing the information in the pulse transitions, as shown in Figure D.1(d). NRZ-inverted (NRZ-I) is such a scheme, in which a transition indicates that the next symbol is a one, while no transition indicates a zero. Although the scheme can exhibit a DC component when implemented unipolarly, the receiver has no difficulty maintaining synchronization during long idle periods.

A widely used form of line coding is alternate-mark-inversion (AMI), in which a zero is represented by zero volts and each successive one is represented by a transition of opposite polarity to the previous one. The alternating polarity of marks reduces spectral energy near DC and enables error detection through bipolar violations. Variants of AMI, such as HDB3 and B8ZS, are used in most major telecommunications networks.

There are three types of bi-phase codes: bi-phase-L, bi-phase-M, and bi-phase S:

Each of these coding schemes can be characterized by its spectral occupancy, DC content, and self-clocking capability. Unipolar and NRZ-L signals are spectrally inefficient near DC and require additional timing recovery aids. RZ, NRZ-I, and Manchester coding improve synchronization robustness at the cost of increased bandwidth. AMI and its derivatives achieve DC balance and incorporate simple error-detection features that make them well suited to long-haul and carrier-network applications. The choice of line-coding technique therefore represents a compromise between bandwidth efficiency, power utilization, synchronization performance, and implementation complexity.

Many additional line-coding variants exist beyond those shown in Figure D.1, each optimized for specific transmission media or system constraints:

Each technique thus represents an engineering trade-off: unipolar and NRZ codes are simple and power-efficient but poor for long-distance transmission; RZ and Manchester codes enhance synchronization at the cost of bandwidth; AMI, HDB3, and B8ZS achieve DC balance for long copper links; and multilevel or block-encoded schemes serve today’s very-high-rate fiber and backplane applications.