Digital Com Lesson 1
Digital Com Lesson 1
Sign Magnitude
Sign magnitude (sometimes also referred to as sign modulus) is the easiest
of the methods we may use.
With sign magnitude we designate one of the bits (usually the far left, also
known as the most significant bit) to indicate whether a number is positive or
negative. Usually a '0' indicates the number is positive and a '1' indicates the
number is negative.
Mathematical numbers are generally made up of a sign and a value
(magnitude) in which the sign indicates whether the number is positive, ( + )
or negative, ( – ) with the value indicating the size of the number, for example
23, +156 or -274. Presenting numbers is this fashion is called “sign-
magnitude” representation since the left most digit can be used to indicate
the sign and the remaining digits the magnitude or value of the number.
Sign-magnitude notation is the simplest and one of the most common
methods of representing positive and negative numbers either side of zero,
(0). Thus negative numbers are obtained simply by changing the sign of the
corresponding positive number as each positive or unsigned number will
have a signed opposite, for example, +2 and -2, +10 and -10, etc.
But how do we represent signed binary numbers if all we have is a bunch of
one’s and zero’s. We know that binary digits, or bits only have two values,
either a “1” or a “0” and conveniently for us, a sign also has only two values,
being a “+” or a “–“.
Then we can use a single bit to identify the sign of a signed binary number as
being positive or negative in value. So to represent a positive binary number
(+n) and a negative (-n) binary number, we can use them with the addition of
a sign.
For signed binary numbers the most significant bit (MSB) is used as the sign
bit. If the sign bit is “0”, this means the number is positive in value. If the sign
bit is “1”, then the number is negative in value. The remaining bits in the
number are used to represent the magnitude of the binary number in the
usual unsigned binary number format way.
Then we can see that the Sign-and-Magnitude (SM) notation stores positive
and negative values by dividing the “n” total bits into two parts: 1 bit for the
sign and n–1 bits for the value which is a pure binary number. For example,
the decimal number 53 can be expressed as an 8-bit signed binary number
as follows.
The largest number we may represent (With a given number of bits is
effectively halved. This is because there are still the same number of
combinations of 1's and 0's but now half of them are given to representing
negative numbers. In fact, with sign magnitude we actually have just under
half because zero may be represented as either 1000000 or 00000000. With
unsigned (or no negative numbers) with 8 bits we have:
00000000 - representing 0, the smallest number possible.
11111111 - representing 255, the largest number possible.
For a total of 256 possible numbers represented.
For Sign Magnitude
11111111 - representing -127, the smallest number possible.
10000000 - representing 0.
00000000 - also representing 0.
01111111 - representing 127, the largest possible number.
For a total of 255 possible numbers represented.
Positive Signed Binary Numbers
-0 1000 1111 –
Some additional blocks as shown in the block diagram are used in most of
digital communication system:
Encryptor: Encryptor prevents unauthorized users from understanding the
messages and from injecting false messages into the system.
MUX : Multiplexer is used for combining signals from different sources so that
they share a portion of the communication system.
DeMUX: DeMultiplexer is used for separating the different signals so that they
reach their respective destinations.
Decryptor: It does the reverse operation of that of the Encryptor.
Synchronization: Synchronization involves the estimation of both time and
frequency
coherent systems need to synchronize their frequency reference with carrier in
both
frequency and phase.
PCM [Pulse Code Modulation]
PCM is an important method of analog –to-digital conversion. In this modulation
the analog signal is converted into an electrical waveform of two or more levels. A
simple two level waveform is shown in fig 3.1.
The PCM system block diagram is shown in fig 3.2. The essential operations in the
transmitter of a PCM system are Sampling, Quantizing and Coding. The Quantizing and
encoding operations are usually performed by the same circuit, normally referred to as
analog to digital converter.
The essential operations in the receiver are regeneration, decoding and
demodulation of the quantized samples. Regenerative repeaters are used to reconstruct
the transmitted sequence of coded pulses in order to combat the accumulated effects of
signal distortion and noise.
PCM Transmitter:
Basic Blocks:
1. Anti aliasing Filter
2. Sampler
3. Quantizer
4. Encoder
An anti-aliasing filter is basically a filter used to ensure that the input signal to sampler is
free from the unwanted frequency components.
For most of the applications these are low-pass filters. It removes the frequency
components of the signal which are above the cutoff frequency of the filter. The cutoff
frequency of the filter is chosen such it is very close to the highest frequency component
of the signal.
Sampler unit samples the input signal and these samples are then fed to the Quantizer
which outputs the quantized values for each of the samples. The quantizer output is fed
to an encoder which generates the binary code for every sample. The quantizer and
encoder together is called as analog to digital converter.
Differential Pulse Code Modulation (DPCM)
For the signals which does not change rapidly from one sample to next sample, the
PCM scheme is not preferred. When such highly correlated samples are encoded the
resulting encoded signal contains redundant information. By removing this redundancy
before encoding an efficient coded signal can be obtained. One of such scheme is the
DPCM technique. By knowing the past behavior of a signal up to a certain point in time,
it is possible to make some inference about the future values. The transmitter and
receiver of the DPCM scheme is shown in the fig3.12 and fig 3.13
respectively. Transmitter: Let x(t) be the signal to be sampled and x(nTs) be it’s
samples. In this scheme the input to the quantizer is a signal
where x^(nTs) is the prediction for unquantized sample x(nTs). This predicted value is
produced by using a predictor whose input, consists of a quantized versions of the input
signal x(nTs). The signal e(nTs) is called the prediction error.
By encoding the quantizer output, in this method, we obtain a modified version of the
PCM called differential pulse code modulation (DPCM).
The receiver consists of a decoder to reconstruct the quantized error signal. The
quantized version of the original input is reconstructed from the decoder output using
the same predictor as used in the transmitter. In the absence of noise the encoded
signal at the receiver input is identical to the encoded signal at the transmitter output.
Correspondingly the receive output is equal to u(nTs), which differs from the input x(nts)
only by the quantizing error q(nTs).
Prediction Gain ( Gp):
The output signal-to-quantization noise ratio of a signal coder is defined as
DPCM Transmitter
The DPCM Transmitter consists of Quantizer and Predictor with two summer circuits.
Following is the block diagram of DPCM transmitter.
The signals at each point are named as − x(nTs)x(nTs) is the sampled input
xˆ(nTs)x^(nTs) is the predicted sample e(nTs)e(nTs) is the difference of sampled input
and predicted output, often called as prediction error v(nTs)v(nTs) is the quantized
output u(nTs)u(nTs) is the predictor input which is actually the summer output of the
predictor output and the quantizer output.
The predictor produces the assumed samples from the previous outputs of the
transmitter circuit. The input to this predictor is the quantized versions of the input
signal x(nTs)x(nTs).
Quantizer Output is represented as − v(nTs)=Q[e(nTs)]v(nTs)=Q[e(nTs)]
=e(nTs)+q(nTs)=e(nTs)+q(nTs)
Where q (nTs) is the quantization error
Predictor input is the sum of quantizer output and predictor output,
u(nTs)=xˆ(nTs)+v(nTs)u(nTs)=x^(nTs)+v(nTs)
u(nTs)=xˆ(nTs)+e(nTs)+q(nTs)u(nTs)=x^(nTs)+e(nTs)+q(nTs)
u(nTs)=x(nTs)+q(nTs)u(nTs)=x(nTs)+q(nTs)
The same predictor circuit is used in the decoder to reconstruct the original input.
DPCM Receiver
The block diagram of DPCM Receiver consists of a decoder, a predictor, and a summer
circuit. Following is the diagram of DPCM Receiver.
The notation of the signals is the same as the previous ones. In the absence of noise,
the encoded receiver input will be the same as the encoded transmitter output.
As mentioned before, the predictor assumes a value, based on the previous outputs.
The input given to the decoder is processed and that output is summed up with the
output of the predictor, to obtain a better output.
Delta Modulation (DM)
Delta Modulation is a special case of DPCM. In DPCM scheme if the base band signal
is sampled at a rate much higher than the Nyquist rate purposely to increase the
correlation between adjacent samples of the signal, so as to permit the use of a simple
quantizing strategy for constructing the encoded signal, Delta modulation (DM) is
precisely such as scheme. Delta Modulation is the one-bit (or two-level) versions of
DPCM.
DM provides a staircase approximation to the over sampled version of an input base
band signal. The difference between the input and the approximation is quantized into
only two levels, namely, ±δ corresponding to positive and negative differences,
respectively, Thus, if the approximation falls below the signal at any sampling epoch, it
is increased by δ. Provided that the signal does not change too rapidly from sample to
sample, we find that the stair case approximation remains within ±δ of the input signal.
The symbol δ denotes the absolute value of the two representation levels of the one-bit
quantizer used in the DM. These two levels are indicated in the transfer characteristic of
Fig 3.14. The step size of the quantizer is related to δ by
Let the input signal be x(t) and the staircase approximation to it is u(t). Then, the basic
principle of delta modulation may be formalized in the following set of relations:
In the receiver, shown in fig.3.16, the stair case approximation u(t) is reconstructed by
passing the incoming sequence of positive and negative pulses through an accumulator
in
a manner similar to that used in the transmitter. The out-of –band quantization noise in
the high frequency staircase waveform u(t) is rejected by passing it through a low-pass
filter with a band-width equal to the original signal bandwidth.
Delta modulation offers two unique features:
1. No need for Word Framing because of one-bit code word.
2. Simple design for both Transmitter and Receiver