Chapter4 OK
Chapter4 OK
Chapter4 OK
Chapter 4
Digital Modulation
Chapter Outline
4.1 Introduction
4.2 Digital Communication System
4.3 Digital Data, Digital Signal
4.3.1 Line coding
4.3.2 Block Coding
4.4 Analog Data, Digital Signal
4.4.1 Sampling
4.4.2 Quantization
4.4.3 Pulse Amplitude Modulation (PAM)
4.4.4 Pulse Code Modulation (PCM)
4.4.5 Delta Modulation (DM)
4.5 Spread Spectrum
4.5.1 Basic Principle
4.5.2 Direct Sequence Spread Spectrum (DSSS)
4.5.3 Frequency Hopping Spread Spectrum (FHSS)
4.5.4 Time Hopping Spread Spectrum (THSS)
4.6 Key Points
4.7 Review Questions
84 Fundamentals of Communication
4.1 Introduction
Digital modulation techniques are essential to many digital communication systems,
whether it is a telephone system, a cellular communication system, or a satellite
communication system. In the past twenty years or so, researchers in digital modulation
techniques were very active and able to find out lot of positive contributions. Objective of
this chapter is to present the technique for generation of digital signal by modulating
analog and digital data. Application of spread spectrum technologies are expanding fast
which is also included in this chapter.
Digital
Channel
Source
Digital
User
Redundancy is deliberately added into the coded digital signal so that some of the errors
caused by the noise or interference during transmission through the channel can be
corrected at the receiver. Then the encoded digital symbols are converted into a
waveform suitable for transmission. Usually there is a power amplifier following the
modulator. For high-frequency transmission, modulation and demodulation are usually
performed in the intermediate frequency (IF). For wireless systems an antenna is the final
stage of the transmitter. The transmission medium is usually called the channel, where
noise adds to the signal and fading and attenuation effects can occur.
At the receiving end first the received weak signal is amplified and demodulated. Then
the added redundancy is taken away by the channel decoder and the source decoder
recovers the signal to its original form before being sent to the user. A digital-to- analog
(D/A) converter is needed for analog signals.
Both analog and digital information can be encoded as either analog or digital signal. In
previous chapter we discussed how analog signal can be encoded both from analog data
and digital data. Here we will concentrate on how digital signal can be encoded from
digital data as well as analog data.
011010110 Line
Coding
Amplitude
0 1 0 0 1 1 0 1
Time
(a) Two Signal level and two data Level
Amplitude
0 1 0 0 1 1 0 1
Time
DC Components
Some line coding schemes leave a residual direct-current (dc) component (zero
frequency). This component is undesirable for two reasons. First, if the signal is to pass
through a system (such as a transformer) that does not allow the passage of a dc
component, the signal is distorted and may create errors in the output. Second, this
component is extra energy residing on the line and is useless.
Amplitude
0 1 0 0 1 1 0 1
Amplitude
0 1 0 0 1 1 0 1
Time
Figure 4.4 shows two line coding schemes. Figure 4.4 (a) has a dc component; the
positive voltages are not canceled by the negative voltages. Figure 4.4 (b) has no dc
component; the positive voltages are canceled by any negative voltages. The first does
not pass through a transformer properly; the second does.
Self-Synchronization
In order to correctly interpret the signals received from the sender, the receiver's bit
intervals must correspond exactly to the sender's bit intervals. If the receiver clock is
faster or slower, the bit intervals are not matched and the receiver might interpret the
signals differently than the sender intended. Figure 4.5 shows a situation in which the
receiver has shorter bit duration. The sender sends 01001101, while the receiver receives
0010000111011 (exaggerated situation).
Amplitude
0 1 0 0 1 1 0 1
Sent Time
Amplitude
0 0 1 0 0 0 0 1 1 1 0 1 1
Received Time
Line Coding
Amplitude Amplitude
0 1
Time Time
(a) Logic 0 (b) Logic 1
Amplitude
0 1 1 1 0 0 1 0
Time
(c) Timing Diagram
Figure 4.7 shows the idea of unipolar encoding. In this example, the 1s are encoded
as a positive value, and the 0s are encoded as a zero value. In addition to being
straightforward, unipolar encoding is inexpensive to implement.
However, unipolar encoding has at least two problems that make it undesirable: a dc
component and a lack of synchronization. The average amplitude of a unipolar
encoded signal is nonzero. This creates a dc component. Lack of synchronization is also
an issue in unipolar encoding. If the data contain a long sequence of 0 s or 1 s, there is no
change in the signal during this duration that can alert the receiver to potential
synchronization problems.
Polar
Polar encoding uses two voltage levels, one positive and another one negative. By using
two levels, in most polar encoding methods the average voltage level on the line is
reduced and the dc component problem seen in unipolar encoding is alleviated.
Of the many existing variations of polar encoding, we examine four of the most popular:
Nonreturn to Zero (NRZ), Return to Zero (RZ), Manchester, and Differential Manchester
(Figure. 4.8).
Polar
Nonreturn to Zero (NRZ): In NRZ encoding, the value of the signal is always either
positive or negative. There are two popular forms of NRZ termed as NRZ-L (Nonreturn
to Zero-Level) and NRZ-I (Nonreturn to Zero-Invert).
In NRZ-L encoding, the level of the signal depends on the type of bit that it represents. A
positive voltage usually means the bit is a 0, while a negative voltage means the bit is a 1;
thus, the level of the signal is dependent upon the state of the bit. A problem can arise
when the data contain a long stream of 0s or 1s. The receiver receives a continuous
voltage and determines how many bits are sent by relying on its clock, which may or may
not be synchronized with the sender clock.
In NRZ-L, the level of the signal is dependent upon the state of the bit.
Amplitude Amplitude
0 1
Time Time
(a) Logic 0 (b) Logic 1
Amplitude
0 1 1 1 0 0 1 0
Time
In NRZ-I encoding, an inversion of the voltage level represents a 1 bit. It is the transition
between a positive and a negative voltage, not the voltage itself, that represents a 1 bit. A
0 bit is represented by no change. NRZ-I is superior to NRZ-L due to the synchronization
provided by the signal change each time a 1 bit is encountered. The existence of 1s in the
data stream allows the receiver to synchronize its timer to the actual arrival of the
92 Fundamentals of Communication
transmission. A string of 0s can still cause problems, but because 0s are not as likely, they
are less of a problem.
Amplitude
0 1 1 1 0 0 1 0
Time
Figure 4.9 and Figure 4.10 respectively shows the NRZ-L and NRZ-I representations of
the same series of bits. In the NRZ-L sequence, positive and negative voltages have
specific meanings: positive for 0 and negative for 1. In the NRZ-I sequence, the voltages
per sequences are meaningless. Instead, the receiver looks for changes from one level to
another as its basis for recognition of 1s.
Return to Zero (RZ): As it can be seen, anytime the original data contain strings of
consecutive 1s or 0s, the receiver can lose its place. A solution is to somehow include
synchronization in the encoded signal, something like the solution provided by NRZ-I,
but one capable of handling strings of 0s as well as 1s.
To ensure synchronization, there must be a signal change for each bit. The receiver can
use these changes to build up, update, and synchronize its clock. As we saw above, NRZ-
I accomplishes this for sequences of 1s. But to change with every bit, we need more than
just two values. One solution is return to zero (RZ) encoding, which uses three values:
positive, negative, and zero. In RZ, the signal changes not between bits but during each
Chapter 4: Digital Modulation 93
bit. Like NRZ-L, a positive voltage means 1 and a negative voltage means 0. But, unlike
NRZ-L, halfway through each bit interval, the signal returns to zero. A 1 bit is actually
represented by positive-to-zero and a 0 bit by negative-to-zero, rather than by positive
and negative alone. Figure 4.11 illustrates the concept.
Amplitude Amplitude
0 1
Time Time
(a) Logic 0 (b) Logic 1
Amplitude
0 1 1 1 0 0 1 0
Time
achieves the same level of synchronization as RZ but with only two levels of
amplitude. Figure 4.12 shows Manchester encoding.
In Manchester encoding, the transition at the middle of the bit is used for both
synchronization and bit representation. A negative-to-positive transition represents
binary 1, and a positive-to-negative transition represents binary 0.
Amplitude Amplitude
0 1
Time Time
Amplitude
0 1 1 1 0 0 1 0
Time
In Differential Manchester encoding, the transition at the middle of the bit is used
only for both synchronization. The bit representation is defined by the inversion or
noninversion at the beginning of the bit.
Chapter 4: Digital Modulation 95
Amplitude
0 1 1 1 0 0 1 0
Time
Amplitude
0 1 1 1 0 0 1 0
Time
A common bipolar encoding scheme is called bipolar Alternate Mark Inversion (AMI). In
the term alternate mark inversion, the word mark comes from telegraphy and means
1. So AMI means alternate 1 inversion. A neutral zero voltage represents binary 0. Binary
1s are represented by alternating positive and negative voltages. Figure 4.14 gives an
example of Bipolar AMI encoding.
In bipolar encoding, we use three levels are used: Positive, Negative and Zero.
A modification of bipolar AMI has been developed to solve the problem of synchronizing
sequential Os, especially for long-distance transmission. It is called BnZS (bipolar n-zero
substitution). In this scheme, wherever n consecutive zeros occur in the sequence, some
of the bits in these n bits become positive or negative which helps synchronization. This
substitution violates the rules of AMI in a specified manner such that the receiver
knows that these bits are actually 0s and not 1s.
Some Other Schemes
There are some other line coding schemes created for special purposes in data commu -
nications. We discuss two interesting ones here-
Two binary, one quaternary (2B1Q)
Multiline transmission, three level (MLT-3).
Amplitude
00 01 10 11 01 00 11 10
-1 Time
-3
2BlQ: The 2B1Q (two binary, one quaternary) uses four voltage levels. Each pulse can
then represent 2 bits, making each pulse more efficient. Figure 4.15 shows an example
of a 2B1Q signal.
Amplitude
0 1 1 1 0 0 1 1 1 1 0 1 1 0 1
Time
Substitution
The heart of block coding is the substitution step. In this step, an m-bit code for an n-
bit group. For example, in 4B/5B encoding a 5-bit code is substituted for a 4-bit
group. With a 4-bit block, we can have 16 (=2 4) different groups. With a 5-bit code,
we can have 32 (=2 5) possible codes. This means that we can map some of the 5-bit
groups to the 4-bit groups. Some of the 5-bit codes are not used. We can apply a
strategy or a policy to choose only the 5-bit codes that help us in synchronization and
error detection. Figure 4.18 shows how we can use just one-half of the 5-bit codes.
m Bit to n Bit
Substitution
Digital Signal
To achieve synchronization, we can use the 5-bit codes in such a way that, for
example, we do not have more than three consecutive 0s or 1s. Block coding can
Chapter 4: Digital Modulation 99
definitely help in error detection. Because only a subset of the 5-bit codes is used, if
one or more of the bits in the block is changed in such a way that one of the unused
codes is received, the receiver can easily detect the error.
0000 00000
0001 00011
0010 00010
1000 10000
1111 11011
11111
and no more than two trailing 0s. Therefore, when these 5-bit codes are sent in
sequence, no more than three consecutive 0s are. encountered. The 5-bit codes are
normally line coded using NRZ-I. Table 4.1 shows the 4B/5B encoding. The encoded
sequences for control characters (column 3) do not follow the 4B/SB rules of coding.
8B/10B: This is similar to 4B/5B encoding except that a group of 8 bits of data is now
substituted by a 10-bit code. It provides more error detection capability than 4B/5B.
The 8B/10B encoding table is very long.
and subsequently recovering the original analog data from the digital, is known as a
codec (coder-decoder). In this section we examine the two principal techniques used in
codecs, pulse code modulation and delta modulation.
Line coding and block coding can be used to convert binary data to a digital signal.
Sometimes, however, our data are analog, such as audio. Voice and music, for exam ple,
are by nature analog, so when we record voice or video, we have created an analog
signal. If we want to store the recording in the computer or send it digitally, we need to
change it through a process called sampling. After the analog signal is sampled, we can
store the binary data in the computer or use line coding (or a combination of block coding
and line coding) to further change the signal to a digital one so that it can be transmitted
digitally.
Consider a continuous varying signal f(t) that is to be converted to digital form. We do this
simply by first sampling f(t) periodically at a rate of fc samples per second. Although in
practice this sampling process would presumably be carried out electronically by getting
the signal on and off at the desired rate, we show the sampling process conceptually in
Figure. 4.19 using a rotating mechanical switch.
f (t)
Transmitting
fs (t)
System
(a)
Amplitude Amplitude
T
Figure 4.19: (a) Sampling of a Analog signal (b) Sampling process input and output
102 Fundamentals of Communication
Assume that the switch remains on the f(t) line τ seconds, while rotating at the desired rate
of fc 1 times per second (τ <<T). The switch output, f s t is a sampled version of
T
f(t). A typical input function f(t), the sampling times, and the sampled output f s t are
shown in Figure. 4.19, here fc is called sampling rate and T is called the sampling
interval.
The question that immediately arises is: what should the sampling rate be? Are there any
limits to the rate at which we sample? One might intuitively feel that the process of
sampling has irretrievably distorted the original signal f(t). The process of sampling has
been introduced to convert the signal f(t) to a digital form for further processing and
transmission. A signal can be reconstructed from the sampled signals, if the signal is
sampled maintaining the sampling theorem, i.e. Nyquist Theorem.
Nyquist Theorem: If a signal is sampled in a regular interval of time and a rate higher
than the twice the highest signal frequency, then the samples contain all the information
of the original signal.
The theorem emphasizes that an analog signal has high time redundancy which can be
utilized for transmitting additional information. The telephone voice channel has the
highest frequency of 3400 Hz. If it is sampled at the rate of more than 6800 samples
per second, the speech signal can be entirely reconstructed from the samples. It is to
be ensured, before sampling is carried out, that the speech signal does not contain any
frequency component higher than 3400 Hz. Therefore, a low pass filter is always
provided just before the sampler. The standard sampling rate for the speech signal is
8000 samples/second to allow for gradual slope of the filter characteristics. At this
rate, the samples are separated by 125 μs (Figure. 4.19(b)).
4.4.2 Quantization
Quantization is the process of rounding off the values of the samples to certain
predetermined levels in order to make a finite and manageable number of levels available
to the A/D converter. Otherwise the sampling levels could take any value within the peak-
to-peak range of the analog signal, which in theory would result in an infinite, number
of levels.
Chapter 4: Digital Modulation 103
In the quantization process, the total signal range is divided into a number of subranges as
shown in Figure. 4.20 Each subrange has its mid-value designated as the standard or code
level for that range. Comparators are used to determine which subrange a given pulse
amplitude is in, and the code for that subrange is generated.
To illustrate the process, a comparatively small number of levels, eight in all, are shown,
along with a possible binary code for each level. It will be noticed that the level
representing zero analog volts has two binary numbers, one for 0+ and one for 0-. In the
coding scheme shown, positive values of the analog signal are signed with a binary l and
negative values with a binary 0. Thus the leading-bit indicates the polarity of the ana log
signal. The remaining two bits then encode the segment that the sampled value lies in.
For example, the last sample point shown is negative, and therefore the leading bit is 0; it
lies in segment L-3 for which the binary code is 11; hence the binary code for this
quantized sample is 011.
Amplitude
L4
L3
L2
L1
L -1
L -2
L -3
L -4
Time
L 4L -2L 3L 1L -3L 2L -1L -4000001010011100101110111
Amplitude
Time
Time
The method of sampling used in PAM is more useful to other areas of engineering
than it is to data communication. However, PAM is the foundation of an important
analog-to-digital conversion method called pulse code modulation (PCM).
In PAM, the original signal is sampled at equal intervals, as shown in Figure 4.21.
PAM uses a technique called sample and hold. At a given moment, the signal level is
read, then held briefly. The sampled value occurs only instantaneously in the actual
waveform, but is generalized over a short but measurable period in the PAM result.
Chapter 4: Digital Modulation 105
PAM is not useful to data communications because even though it translates the
original waveform to a series of pulses, these pulses are still of any amplitude (still an
analog signal, not digital). To make them digital, we must modify them by using
pulse code modulation.
Pulse Amplitude Modulation is the first step in another very popular conversion
method called Pulse Code Modulation.
Amplitude
Figure 4.23 shows a simple method of assigning sign and magnitude to quantized
samples. Each value is translated into its 7-bit binary equivalent. The eighth bit indicates
the sign.
Quantized
ValueCodeQuantized
ValueCodeQuantized
ValueCode2000010100-4210101010120011110001800010010-6210111110-
56101110004600101110-0610000110-
221001011040001010001400001110220001011008000010008001010000-
0410000100
The binary digits are then transformed to a digital signal by using one of the line coding
techniques. Figure 4.24 shows the result of the pulse code modulation of the original
signal encoded finally into a unipolar signal. Only the first three sampled values are
shown.
Amplitude
00010100 00010010 00101110 00101000
Time
PCM is actually made up of four separate processes: PAM, quantization, binary encoding,
and line coding. Figure 4.25 shows the entire process in graphical form. PCM is the
sampling method used to digitize voice in T-line transmission in telecommunication
system.
000110000100110 …
Quantization
Binary Data
Analog Data
118
32
Pulse
Amplitude Line
Modulation Coding
-42
Quantized Data
Binary
Encoding
analog waveform. The important characteristics of this staircase function is that its
behavior is binary, that is at each sampling time, the function moves up or down a
constant amount δ. Thus, the output of the delta modulation process can be represented as
a single binary digit for each sample. In essence, a bit stream is produced by
approximating the derivative of an analog signal rather than its amplitude. A 1 is
generated if the staircase function is to go up during the next interval; a 0 is generated
otherwise.
The transition (up or down) that occurs at each sampling interval is chosen so that the
staircase function tracks the original analog waveform as closely as possible. Figure 4.27
illustrates the logic of the process, which is essentially a feedback mechanism. For
Chapter 4: Digital Modulation 109
transmission, at each sampling time, the analog input is compared to the most recent
value of the approximating staircase function. If the value of the sampled waveform
exceeds that of the staircase function, a 1 is generated; otherwise, a 0 is generated. Thus,
the staircase is always changed in the direction of the input signal. The output of the delta
modulation process is therefore a binary sequence that can be used at the receiver to
reconstruct the staircase function. The staircase function can then be smoothed by some
type of integration process or by passing it through a lowpass filter to produce an analog
approximation of the analog input signal.
As Figure 4.27 illustrates, δ must be chosen to produce a balance between two types of
errors or noise. When the analog waveform is changing very slowly, there will be
quantizing noise. This noise increases as δ is increased. On the other hand, when the
analog waveform is changing more rapidly than the staircase can follow, there is slope
overload noise. This noise increases as δ is decreased. It should be clear that the accuracy
of the scheme can be improved by increasing the sampling rate. However, this increases
the data rate of the output signal. The principal advantage of delta modulation over PCM
is the simplicity of its implementation. In general, PCM exhibits better SNR
characteristics at the same data rate.
large fraction of time by changing the frequency or time slot. Figure 4.29 illustrates
Direct Sequence Spread Spectrum.
In DSSS system the transmission bandwidth exceeds the coherence bandwidth. The
received signal, after despreading, resolves into multiple signals with different time
delays. A rake receiver is used to recover the multiple time delayed signals and combine
them into one signal, providing an inherent time diversity receiver with lower frequency
of deep fades. The DSSS systems provide an inherent robustness against mobile-channel
degradation. Also, DSSS systems have greater resistance to interference effects in a
frequency reuse situation.
Frequency
fn
fn-1
f3
f2
f1
0 Tc 2Tc Time
One Frame
4.7 Exercises
Review Questions
1. What do you mean by digital communication?
2. What is Line coding?
3. What is the relation between bit rate and pulse rate?
4. Give the signal level for each line coding method discussed (NRZ, RZ, etc.).
5. What is the dc component?
Chapter 4: Digital Modulation 115
6. Can the bit rate be less than the pulse rate? Why or why not?
7. Why is synchronization a problem in data communications?
8. How does NRZ-L differ from NRZ-I?
9. What is the major disadvantage in using NRZ encoding? How does RZ encoding
attempt to solve the problem?
10. What are the three major steps in block coding?
11. Repeat Exercise 13 for a data stream of ten 1s.
12. Repeat Exercise 13 for a data stream of 10 alternating 0s and 1s.
13. Repeat Exercise 13 for a data stream of three 0s followed by two 1s followed by
two 0s and another three 1s.
14. Using the Nyquist theorem, calculate the sampling rate for the following analog
signals. a) An analog signal with bandwidth of 2000 Hz. b) An analog signal
with frequencies from 2000 to 6000 Hz. c) A signal with a horizontal line in the
time-domain representation. d) A signal with a vertical line in the time-domain
representation.
15. Suppose a signal is sampled 8000 times per second, what is the interval between
each sample?
16. How can block coding aid in synchronization?
17. Figure 4.32 is the unipolar encoding of a data stream. What is the data stream?
Figure 4.32
116 Fundamentals of Communication
18. Figure 4.33 is the NRZ-L encoding of a data stream. What is the data stream?
Figure 4.33
19. What is the sampling rate for PCM if the frequency ranges from 1000 to 4000
Hz?
20. What is the Nyquist theorem?
21. Assume a data stream is made of ten 0s. Encode this stream, using the following
encoding schemes. How many changes (vertical line) can you find for each
scheme? a) Unipolar b) NRZ-L c) NRZ-I d) RZ e) Manchester f) Differential
Manchester g. AMI.
22. If the interval between two samples in a digitized signal is 125 μs what is the
sampling rate?
23. A signal is sampled. Each sample represents one of four levels. How many bits
are needed to represent each sample? If the sampling rate is 8000 samples per
second, what is the bit rate?
24. What is “Spread Spectrum” system? What are the basic types?
25. What do you mean by DSSS? Why it is used?
26. Illustrate Direct Sequence Spread Spectrum.
27. What do you mean by FHSS? Show the timing diagram.
28. What do you mean by THSS?
29. Compare DSSS, FHSS and THSS.
b. Digital-to-analog
c. Analog-to-analog
d. Analog-to-digital
3. In QAM, both phase and _________ of a carrier frequency are varied.
a. Amplitude
b. Frequency
c. Bit rate
d. Baud rate
4. Which of the following is most affected by noise?
a. PSK
b. ASK
c. FSK
d. QAM
5. If the baud rate is 400 for a 4-PSK signal, the bit rate is _________ bps.
a. 100
b. 400
c. 800
d. 1600
6. If the bit rate for an ASK signal is 1200 bps, the baud rate is
a. 300
b. 400
c. 600
d. 1200
7. If the bit rate for an FSK signal is 1200 bps, the baud rate is
a. 300
b. 400
c. 600
d. 1200
8. If the bit rate for a QAM signal is 3000 bps and a signal unit is represented by a
tribit, what is the baud rate?
a. 300
b. 400
c. 1000
d. 1200
9. If the baud rate for a QAM signal is 3000 and a signal unit is represented by a •
tribit, what is the bit rate?
a. 300
118 Fundamentals of Communication
b. 400
c. 1000
d. 9000
10. If the baud rate for a QAM signal is 1800 and the bit rate is 9000, how many bits
are there per signal unit?
a. 3
b. 4
c. 5
d. 6
11. In 16-QAM, there are 16 _________
a. Combinations of phase and amplitude
b. Amplitudes
c. Phases
d. bps
12. Which modulation technique involves tribits, eight different phase shifts, and
one amplitude?
a. FSK
b. 8-PSK
c. ASK
d. 4-PSK
13. Given an AM radio signal with a bandwidth of 10 KHz and the highest-
frequency component at 705 KHz, what is the frequency of the carrier signal?
a. 700 KHz
b. 705 KHz
c. 710 KHz
d. Cannot be determined from given information
14. A modulated signal is formed by _________
a. Changing the modulating signal by the carrier wave
b. Changing the carrier wave by the modulating signal
c. Quantization of the source data
d. Sampling at the Nyquist frequency
15. When an ASK signal is decomposed, the result is _________
a. Always one sine wave
b. Always two sine waves
c. An infinite number of sine waves
d. None of the above
Chapter 4: Digital Modulation 119
b. QAM
c. 4-PS K
d. All the above
23. A modulator converts a(n) _________ signal to a(n)_________signal.
a. Digital; analog
b. Analog; digital
c. PSK; FSK
d. FSK; PSK
Chapter 4
Digital Modulation
4.1 Introduction 84