Data Encoding
Data Encoding
Data Encoding
chapter
5
5.1 Digital Data, Digital Signals
Nonreturn to Zero (NRZ)
Multilevel Binary
Biphase
Modulation Rate
Scrambling Techniques
5.2 Digital Data, Analog Signals
Amplitude Shift Keying
Frequency Shift Keying
Phase Shift Keying
Performance
Quadrature Amplitude Modulation
5.3 Analog Data, Digital Signals
Pulse Code Modulation
Delta Modulation (DM)
Performance
5.4 Recommended Reading and Animations A n i m a ti o n
173
Learning Objectives
In Chapter 3 a distinction was made between analog and digital data, and ana-
log and digital signals. Figure 3.14 suggested that either form of data could be
encoded into either form of signal.
Figure 5.1 is another depiction that emphasizes the process involved.
For digital signaling, a data source g(t), which may be either digital or analog,
is encoded into a digital signal x(t). The actual form of x(t) depends on the
encoding technique and is chosen to optimize use of the transmission medium.
For example, the encoding may be chosen to conserve bandwidth or to mini-
mize errors.
The basis for analog signaling is a continuous constant-frequency s ignal
known as the carrier signal. The frequency of the carrier signal is chosen to be
compatible with the transmission medium being used. Data may be transmit-
ted using a carrier signal by modulation. Modulation is the process of encoding
source data onto a carrier signal with frequency fc. All modulation techniques
involve operation on one or more of the three fundamental carrier signal
parameters: amplitude, frequency, and phase.
The input signal m(t) may be analog or digital and is called the modulat-
ing signal or baseband signal. The result of modulating the carrier signal is
called the modulated signal s(t). As Figure 5.1b indicates, s(t) is a bandlimited
(bandpass) signal. The location of the bandwidth on the spectrum is related to
fc and is often centered on fc. Again, the actual form of the encoding is chosen
to optimize some characteristics of the transmission.
Each of the four possible combinations depicted in Figure 5.1 is in wide-
spread use. The reasons for choosing a particular combination for any given
communication task vary. We list here some representative reasons:
x(t)
fc(t)
Carrier S(f)
• Digital data, digital signal: In general, the equipment for encoding digital data
into a digital signal is less complex and less expensive than digital-to-analog
modulation equipment.
• Analog data, digital signal: Conversion of analog data to digital form permits
the use of modern digital transmission and switching equipment. The advan-
tages of the digital approach were outlined in Section 3.2.
• Digital data, analog signal: Some transmission media, such as optical fiber and
unguided media, will only propagate analog signals.
• Analog data, analog signal: Analog data in electrical form can be transmit-
ted as baseband signals easily and cheaply. This is done with voice trans-
mission over voice-grade lines. One common use of modulation is to shift
the bandwidth of a baseband signal to another portion of the spectrum. In
this way multiple signals, each at a different position on the spectrum, can
share the same transmission medium. This is known as frequency division
multiplexing.
This chapter discusses the encoding for the first three of these combinations.
The case of encoding analog data as analog signals is somewhat more complex
mathematically.
1
The BER is the most common measure of error performance on a data circuit and is defined as the
probability that a bit is received in error. It is also called the bit error ratio. This latter term is clearer,
because the term rate typically refers to some quantity that varies with time. Unfortunately, most books
and standards documents refer to the R in BER as rate.
There is another factor that can be used to improve performance, and that is
the encoding scheme. The encoding scheme is simply the mapping from data bits
to signal elements. A variety of approaches have been tried. In what follows, we
describe some of the more common ones; they are defined in Table 5.2.
Example 5.1 Figure 5.2 shows the signal encoding for the binary sequence
01001100011 using six different signal encoding schemes.
Before describing these techniques, let us consider the following ways of eval-
uating or comparing the various techniques.
• Signal spectrum: Several aspects of the signal spectrum are important. A lack
of high-frequency components means that less bandwidth is required for trans-
mission. In addition, lack of a direct-current (dc) component is also desirable.
With a dc component to the signal, there must be direct physical attachment of
transmission components. With no dc component, ac coupling via transformer
is possible; this provides excellent electrical isolation, reducing interference.
0 1 0 0 1 1 0 0 0 1 1
NRZ-L
NRZI
Bipolar-AMI
(most recent
preceding 1 bit has
negative voltage)
Pseudoternary
(most recent
preceding 0 bit has
negative voltage)
Manchester
Differential
Manchester
2
In this figure, a negative voltage is equated with binary 1 and a positive voltage with binary 0. This is the
opposite of the definition used in virtually all other textbooks. The definition here conforms to the use of
NRZ-L in data communications interfaces and the standards that govern those interfaces.