Pulse Code Modulation
Pulse Code Modulation
Introduction
Pulse Code Modulation (PCM) was pioneered by the British engineer Alec
Reeves in 1937. The first transmission of a message using PCM was in 1943
during the World War II.
PCM has been used in digital telephone systems and 1980s-era electronic
musical keyboards. It is also the standard form for digital audio in computers
and the compact disc "red book" format. It is also standard in digital video,
for example, using ITU-R BT.601. Uncompressed PCM is not typically used
for video in standard definition consumer applications such as DVD or DVR
because the bit rate required is far too high.
Why PCM?
The stream of pulses and non-pulse streams of 1’s and 0’s are not easily
affected by interference and noise. Even in the presence of noise, the
presence or absence of a pulse can be easily determined. Since PCM is digital,
a more general reason would be that digital signals are easy to process by
cheap standard techniques. This makes it easier to implement complicated
communication systems such as telephone networks.
1
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
PCM Implementation
The practical implementation of PCM makes use of other processes. The
processes are carried out in the order in which they appear below:
Filtering
Sampling
Quantizing
Encoding
Sampling
Theoretically, it considered as the first step in implementation. PCM mostly
based on the sampling theorem which states that If a signal f(t) is sampled
at regular intervals of time and at a rate higher than twice the highest
significant signal frequency, then the samples contain all the information of
the original signal. The function f(t) may be reconstructed from these samples
by the use of a low-pass filter. Figure (2) briefly describe the functionality of
sampler process. If voice data are limited to frequencies below 4000 Hz, a
conservative procedure for intelligibility, 8000 samples per second would be
sufficient to completely characterize the voice signal. Note, however, that
these are analog samples.
2
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
In PAM the successive sample values of the analog signal s(t) are used to
effect the amplitudes of a corresponding sequence of pulses of constant
duration occurring at the sampling rate. No quantization of the samples
normally occurs (Figure 3a, b). In principle the pulses may occupy the entire
time between samples, but in most practical systems the pulse duration,
known as the duty cycle, is limited to a fraction of the sampling interval. Such
a restriction creates the possibility of interleaving during one sample interval
one or more pulses derived from other PAM systems in a process known as
time-division multiplexing (TDM).
3
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
Quantization
The PAM samples still represent the voice signal in analog form. For digital
transmission, further processing is required. Pulse Code Modulation is a
technique used to convert the PAM samples to a binary weighted code for
digital transmission. PCM coding is a two step process performed by the
CODEC. The first step is quantization, where each sample is assigned a
specific quantizing interval. The second step is PCM coding of the quantizing
interval into an 8-bit PCM code word. Each is discussed in the text that
follows. Converting PAM samples to a digital signal involves assigning the
amplitude of a PAM sample one of a whole range of possible amplitude values,
which are divided into quantizing intervals. There are 256 possible quantizing
intervals, 128 positive and 128 negative. The boundaries between adjacent
quantizing intervals are called decision values. Below Figure(4) show the
simple representation of quantization process.
If the max and min amplitude values of information signal x(t) are Amax and
Amin, respectively, and if n-digit code words will be used, then the quantizing
interval/pace “a”
Becomes:
In quantizing process, “which quanta region does the sample belong to” is an
important question. The sample value is rounded to the closest quanta level.
4
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
Later the quantized signal is encoded and the signal is matched with code
words. In two-word number system, +V volt pulse can be sent for ‘1’s, and
space/no volt is sent for ‘0’s to transmit the code.
As another method, +V volt pulse is sent for ‘1’s, and –V volt pulse is sent
for ‘0’s. A guide gap (tg) is kept between two pulses. An example to the PCM
steps explained up to here is given in Figures 5 and 6 respectively.
5
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
Encoding
The last stage is encoding, in which the result of quantization process
converted to bit streams, each sample can be change to a code word. For
example a quantization code of 2 is encoded as 010; 5 is encoded as 101;
and so on. Note that the number of bits for each sample is determined from
the number of quantization levels. If the number of quantization levels is L,
the number of bits is [n = Log2 L].
In other cases, the long term DC value of the modulated signal is important,
as building up a DC offset will tend to bias detector circuits out of their
operating range. In this case special measures are taken to keep a count of
the cumulative DC offset, and to modify the codes if necessary to make the
DC offset always tend back to zero.
Many of these codes are bipolar codes, where the pulses can be positive,
negative or absent. In the typical alternate mark inversion code, non-zero
pulses alternate between being positive and negative. These rules may be
violated to generate special symbols used for framing or other special
purposes.
6
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
Demodulation Process
To produce output from the sampled data, the procedure of modulation is
applied in reverse (See Figure 8). After each sampling period has passed, the
next value is read and a signal is shifted to the new value. As a result of these
transitions, the signal will have a significant amount of high-frequency
energy. To smooth out the signal and remove these undesirable aliasing
frequencies, the signal would be passed through analog filters that suppress
energy outside the expected frequency range (that is, greater than the
Nyquist frequency fs / 2). Some systems use digital filtering to remove some
of the aliasing, converting the signal from digital to analog at a higher sample
rate such that the analog filter required for anti-aliasing is much simpler. In
some systems, no explicit filtering is done at all; as it's impossible for any
system to reproduce a signal with infinite bandwidth, inherent losses in the
7
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
system compensate for the artifacts — or the system simply does not require
much precision. The sampling theorem suggests that practical PCM devices,
provided a sampling frequency that is sufficiently greater than that of the
input signal, can operate without introducing significant distortions within
their designed frequency bands.
8
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
When the bit stream is transmitted along a line the pulses become distorted
and the rise and fall times become significant. Ideally, a 1 will be “high” for
15.625 Ms. In practice, the pulse may only be above the “high” threshold for
a few Ms so it is very important that the bit is read within a certain time limit
of the clock pulse.
9
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
10
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
Delta Modulation
The pulse code modulation(PCM) can transmit all the bits which are used to
code sample. Hence signaling rate and transmission channel bandwidth are
large in PCM. To overcome this problem delta modulation is used. Delta
modulation transmits only one bit per sample. That is the present sample
value is compared with original analog wave, whether the amplitude is
increased or decreased is sent. Input signal is approximated to step signal by
the delta modulator. The step size is fixed(in adaptive delta modulation is not
fixed). If the difference is positive, then the approximated signal is increased
by one step. If the difference is negative is reduced by one.
11
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
12
AHMED O. ABU ELKHAIR – ISLAMIC UNIVERSITY OF GAZA (2010)
2) Secure Communications
References
1. Bates and Gregory. Voice & Data Communications Handbook. 5th edition. McGraw-Hill Publishing,
2006.
2. William Stalling. Data and Computer Communications. 7th edition. Prentice Hall, 2004.
4. William N. Waggener. Pulse Code Modulation Systems Design. Artech House Publishers, 1998.
5. Behrouz A. Forouzan. Data Communications and Networking. 4th edition. McGraw Hill Higher
Education, 2007.
8. Answers, http://www.answers.com/topic/pulse-modulation-2
13