Professional Documents
Culture Documents
DIGITAL
COMMUNICATIONS
DIGITAL TRANSMISSION
Digital Transmission is the transmittal of
digital pulses between two points in a
communication system. The original source
information may be in digital form, or
analog signals that must be converted to
digital from prior to transmission and
converted back to analog form by means of
a DAC at the receiving end.
Advantages of Digital
Transmission
Noise Immunity
Digital pulses are better suited for processing and
multiplexing.
Digital pulses can easily be stored.
Transmission rate of digital system can easily be
changed to adapt to different environments and to
interface with different types of equipment.
Digital systems use signal regeneration rather than
signal amplification.
Digital signals are easier to measure and evaluate.
Digital systems are better suited to evaluate error
performance.
Disadvantages of Digital
Transmission
Transmission of digital signals requires more
bandwidth than transmitting analog signals.
Complicated equipments required.
Digital transmission requires precise time
synchronization between transmitter and
receiver clocks.
Compatibility with analog facilities.
Digital Radio
Is the transmittal of digitally modulated
analog carriers between two or more
points in a communication system. The
modulating input signal and the
demodulated output signal are digital
pulses.
S
I B log 2 1
N
Methods of converting
information into pulse form:
PWM (Pulse Width Modulation) This method is also
called the Pulse Duration Modulation. The pulse width
is proportional to the amplitude of the analog signal.
PPM (Pulse Position Modulation) The position of a
constant width pulse within a prescribed time slot is
varied according to the amplitude of the signal.
PAM (Pulse Amplitude Modulation) The amplitude of
a constant width, constant position pulse is varied
according to the amplitude of the analog signal.
PCM (Pulse Code Modulation) The analog signal is
sampled and converted to a fixed length, serial binary
number for transmission.
Analog Signal
Sample Pulses
PWM
PPM
PAM
PCM
PAM
QUANTIZATION
BINARY ENCODING
DIGITAL TO DIGITAL ENCODING
Sampling Rate
The minimum sampling rate of a PCM
system:
fs 2 fa
Where: fs = minimum Nyquist sampling rate (Hertz)
fa = highest frequency to be sampled (Hertz)
PCM Codes
The codes currently used for PCM are sign-magnitude
codes, where the most significant bit is the sign bit and
the remaining bits are used for magnitude.
Sample Pulse
PAM signal
PCM Code
Dynamic Range
Is the ratio of the largest possible magnitude
to the smallest possible magnitude that can
be decoded by the DAC.
Vmax
Vmax
DR
Vmin resolution
Vmax
DR in dB 20 log
Vmin
2 1 DR
n
2 1 DR
n
Example
A PCM system has the following parameters: a
maximum analog input frequency of 4kHz, a
maximum decoded voltage at the receiver of
2.55V, and a minimum dynamic range of 46 dB.
Determine the following: Minimum sampling
rate, minimum number of bits used in the PCM
code, resolution, and quantization error.
Coding Efficiency
This is a numerical indication of how efficiently
a PCM code is utilized. This is the ratio of the
minimum number of bits required to achieve a
certain dynamic range to the actual number of
PCM bits used.
Coding efficiency =
x 100%
Linear Encoding
Companding
Is the process of compressing, then
expanding.
Higher-amplitude analog signals are
compressed prior to transmission, then
expanded at the receiver.
+30 dB
50 dB Dynamic range
+20 dB
+10 dB
25 dB compressed
dynamic range
+15 dB
+10 dB
+20 dB
+10 dB
0 dB
+5 dB
0 dB
0 dB
10 dB
5 dB
10 dB
10 dB
15 dB
20 dB
20 dB
30 dB
30 dB
50 dB Dynamic range
+30 dB
Analog Companding
- law Companding
Compression characteristic for -law:
Vout
Vin
Vmax ln 1
V
max
ln 1
Example
For a compressor with a = 255,
determine:
(a) The voltage gain for the following
relative values of Vin , Vmax , 0.75Vmax ,
0.5Vmax , and 0.25Vmax .
(b) The compressed output voltage for a
maximum input voltage of 4V.
(c) Input and output dynamic ranges and
compression.
Digital Companding
Involves compression at the transmit end after
the input sample has been converted to a linear
PCM code and expansion at the receive end
prior to PCM system.
The analog signal is first sampled and converted
to a linear code, then the linear code is digitally
compressed. At the receive end, the compressed
PCM code is received, expanded, then decoded.
Example
Determine the 12-bit linear code, the 8-bit
compressed code, and the recovered 12-bit
code for a resolution of 0.01V and analog
sample voltages of:
(a) 0.05V
(b) 0.32V
(c) 10.23V
Slope overload
This happens when the slope of the analog
signal is greater than the delta modulator
can maintain.
Remedies:
Granular Noise
Analogous to quantization noise in PCM.
Results when the original analog input
signal has a relatively constant amplitude
and the reconstructed signal has variations
that were not present in the original signal.
Remedy:
Granular Noise
Differential PCM
Is designed specifically to take advantage
of the sample-to-sample redundancies in
typical speech waveforms.
In DPCM, the difference in the amplitude
of two successive samples is transmitted
rather than the actual sample.
DPCM Transmitter
DPCM Receiver
/ T < 0.5
V
t
T = 2
/ T = 0.5
1
2
P lim
f (t ) dt
T x T
T / 2
(normalized)
1
P
TO
TO / 2
v(t )
TO / 2
dt
Thus,
1
P
TO
0 t
t T
1 2 T 2
0 V dt 2TO V t 0 TO V
V
P
T R
VRMS
R
VRMS
V
T
V2
P
2R
VRMS
Encoding
Transformation of Information into signals
*** We must encode data into signals to send
them from one place to another.
*** How information is encoded depends on
its original format.
*** The signal must further be manipulated so
that it contains identifiable changes that are
recognizable to the sender and receiver as
representing the information needed/
Data
Is a representation of facts,
concepts, or instructions in a
formalized manner suitable for
communication.
*** Data do not necessarily
represent something physical in
terms of the measurable word
but it must be used for
producing information.
Information
The meaning that is
currently assigned to data
by means of conventions
applied to those data.
*** It is produced when
data is interpreted.
Information
2 types of INFORMATION:
Digital Information
Analog Information
2 types of SIGNALS:
Digital Signals
Analog Signals
v am t 1 v m t cos c t
2
vam t 1 1 cos c t
2
vam t A cos c t
OOK output
vam t 1 1 cos c t
2
vam t 0
Example
Given a bandwidth of 10kHz. (1kHz. to 11kHz.),
draw the full duplex ASK diagram of the system.
Find the carriers and the bandwidths in each
direction. Assume there is no gap between the
bands in two direction.
For Full Duplex transmission ASK, the bandwidth
for each direction is:
BW = 10kHz. / 2 = 5 kHz.
v fsk t Vc cos 2 f c f t
v fsk t Vc cos 2 f c f t
fm fs
2
BW 2 f f b
Examples
Find the bandwidth for an FSK signal transmitting at
2kbps. Transmission is in half-duplex mode and the
carriers must be separated by 3 kHz.
Find the maximum bit rate for an FSK signal if the
bandwidth of the medium is 12 kHz. and the distance
between the two carriers must be at least 2 kHz.
Transmission is in half duplex mode.
Determine (a) the peak frequency deviation, (b) the
minimum bandwidth, and (c) baud rate for an FSK signal
with a mark frequency of of 49 kHz., and a space
frequency of 51 kHz, and an input bit rate of 2kbps.
FSK Receiver
Non Coherent demodulator
Continuous-Phase Frequency
Shift Keying (CP-FSK)
The mark and space frequencies are
selected such that they are separated from
the center frequency by an exact odd
multiple of one-half the bit rate.
fm
fb
and f s n
BPSK Transmitter
Output Phase-versus-time
relationship for BPSK
QPSK Transmitter
Output Phase-versus-time
relationship for QPSK
Eight-Phase PSK
There are eight possible output phases.
The incoming bits are considered in
groups of three bits called tribits.
8-PSK Transmitter
Output phase-versus-time
relationship for 8-PSK
Quadrature Amplitude
Modulation (QAM)
Is a form of digital modulation where the
digital information is contained in both
amplitude and phase of the transmitted
carrier.
Types:
(a) 8-QAM
(b) 16-QAM
(c) 32-QAM
(d) 64-QAM
8-QAM Transmitter
16-QAM Transmitter
Bandwidth Efficiency
transmission rate (bps)
Bandwidth Efficiency =
minimum bandwidth (Hz.)
For a transmission rate of 10 Mbps:
10 MHz
Hz
cycle
10 Mbps 2bps 2bits
QPSK: Bandwidth Efficiency =
5MHz
Hz
cycle
BPSK: Bandwidth Efficiency =
3.33MHz
Hz
cycle
10 Mbps 4bps 4bits
Digital/Digital
Encoding
UNIPOLAR ENCODING
One of the two binary states is represented
by a voltage level (usually 1) and the other
is represented by a zero voltage or an idle
line (usually 0)
Amplitude
0
Time
UNIPOLAR ENCODING
Advantage of UNIPOLAR Encoding:
Simplicity
Disadvantages of UNIPOLAR Encoding:
It cannot travel through media that cannot
handle DC components such as microwaves and
transformers (Average amplitude is not zero).
Synchronization problem whenever the data
stream includes a long uninterrupted series of 1s
and 0s (Depends on timers).
Synchronization Problem
For a rate of 1kbps, the receiver reads one
bit per 0.001 s.
Propagation delays distort the timing of
the signal such that five 1s can be
stretched to 0.006 seconds causing an
extra bit to be read by the receiver. That
extra bit causes everything after that bit to
be read erroneously
Synchronization Problem
0 1 1 1 1 1 0 1 0 1 0 0 0 1 0
0.006 s
0.001 s
POLAR ENCODING
Uses two voltage levels (+, )
Average DC Component is zero.
BIPHASE ENCODING
The signal changes at the middle of the bit
interval but do not return to zero, it
continues to the opposite pole instead.
Two Types:
Manchester
Differential Manchester
BIPHASE ENCODING
MANCHESTER inversion at the middle of each bit
interval is used for both synchronization and bit
representation. 1 represented by a to + transition
and vice versa to represent a 0.
DIFFERENTIAL MANCHESTER inversion at the
middle if the bit interval is used for synchronization
but the presence or absence of transition at the
beginning of the interval is used to identify a bit. 0 is
represented by a presence of transition at the
beginning of the bit and 1 if otherwise.
Manchester Encoding
Differential Manchester
Encoding
BIPOLAR ENCODING
Uses three voltage levels (+, , and 0)
0 is represented by a zero level
1 is represented by + and alternately.
Three Types:
Bipolar AMI
Mark mean 1 and Space mean 0.
+
0
0 1 0 0 1 1 1 0
Violations in B8ZS
If the 1 before the long string of 0s is +
+ 0 0 0 0 0 0 0 0
+ 0 0 0 +
Violations in B8ZS
If the 1 before the long string of 0s is
0 0 0 0 0 0 0 0
0 0 0
+ 0 +
B8ZS Encoding
Violations in HDB3
When the number of 1s since last
substitution is odd:
+ 0 0 0 0
0 0 0 0
+ 0 0 0 +
0 0 0
Violations in HDB3
When the number of 1s since last
substitution is even:
+ 0 0 0 0
0 0
0 0 0 0
+ 0 0 +
HDB3 Encoding
2B1Q
MLT-3
Block Coding
Block Coding was introduced to improve
the performance of line coding.
Block Coding also addresses the problem
of synchronization and error detection.
4B/5B Encoding
4B/5B NRZ-I
4B/5B MLT-3
8B/6T
1
From Table
+1
+1
Data Communications
Network of computers and computer
peripherals used to transmit or receive
information between two or more locations.
Data Communications Code
Are used to represent characters and symbols
such as letters, digits, punctuation marks, etc.
ASCII Code
American Standard Code for Information
Interchange
7-bit binary code used for encoding characters
and symbols and is the most common data
communications code
Also called International Alphabet number 5
Burst Error
Note:
A burst error means that 2 or more bits
in the data unit have changed.
Burst Error
Redundancy
Note:
Error detection uses the concept of
redundancy, which means adding
extra bits for detecting errors at the
destination.
Redundancy
Parity Check
Note:
In parity check, a parity bit is added to
every data unit so that the total
number of 1s is even
(or odd for odd-parity).
Parity Check
Note:
Simple parity check can detect all
single-bit errors. It can detect burst
errors only if the total number of
errors in each data unit is odd.
Example
Supposethesenderwantstosendthewordworld.In
ASCIIthefivecharactersarecodedas
1110111 1101111 1110010 1101100 1100100
Thefollowingshowstheactualbitssent
1110111011011110111001001101100011001001
Example
NowsupposethewordworldinExample1isreceivedby
thereceiverwithoutbeingcorruptedintransmission.
11101110110111101110010011011000
11001001
Thereceivercountsthe1sineachcharacterandcomesup
withevennumbers(6,6,4,4,4).Thedataareaccepted.
Example
NowsupposethewordworldinExample1iscorrupted
duringtransmission.
11111110110111101110110011011000
11001001
Thereceivercountsthe1sineachcharacterandcomesup
withevenandoddnumbers(7,6,5,4,4).Thereceiver
knowsthatthedataarecorrupted,discardsthem,andasks
forretransmission.
Example
Supposethefollowingblockissent:
1010100100111001110111011110011110101010
However,itishitbyaburstnoiseoflength8,andsomebits
arecorrupted.
1010001110001001110111011110011110101010
Whenthereceivercheckstheparitybits,someofthebitsdo
notfollowtheevenparityruleandthewholeblockis
Polynomials
The CRC process can now be described as:
G ( x)
R( x)
Q( x)
P( x)
P( x)
Tx G ( x) R ( x)
***An error E(x) will only be undetectable if
it is divisible by P(x)
x11 + x10 + x8 + x7 + x5 + x4 + x2 +
x+1
Polynomials
All 1s in the frame will be represented as
the sum of xb 1 (b is the bit position of
the 1).
The CRC 12
x12+x11+x3+x+1
whichhasadegreeof12,willdetectall
bursterrorsaffectinganoddnumberof
bits,willdetectallbursterrorswitha
lengthlessthanorequalto12,andwill
detect,99.97percentofthetime,burst
errorswithalengthof12ormore.
Checksum
Checksum
Checksum
Note:
The sender follows these steps:
The unit is divided into k sections, each of n bits.
All sections are added using ones complement to get
the sum.
The sum is complemented and becomes the checksum.
The checksum is sent with the data.
Checksum
Note:
The receiver follows these steps:
The unit is divided into k sections, each of n bits.
All sections are added using ones complement to get
the sum.
The sum is complemented.
If the result is zero, the data are accepted: otherwise,
Example
Supposethefollowingblockof16bitsistobesentusinga
checksumof8bits.
1010100100111001
Thenumbersareaddedusingonescomplement
10101001
00111001
Sum 11100010
Checksum00011101
Thepatternsentis101010010011100100011101
Example
NowsupposethereceiverreceivesthepatternsentinExample
7andthereisnoerror.
101010010011100100011101
Whenthereceiveraddsthethreesections,itwillgetall1s,
which,aftercomplementing,isall0sandshowsthatthereisno
error.
10101001
00111001
00011101
Sum
11111111
Complement
00000000meansthatthepatternisOK.
Example
Nowsupposethereisabursterroroflength5thataffects4
bits.
101011111111100100011101
Whenthereceiveraddsthethreesections,itgets
10101111
11111001
00011101
PartialSum111000101
Carry
Sum
1
11000110
Complement00111001thepatterniscorrupted.
Error Correction
Done by adding redundancy bits to the
data unit.
Relationship between Number of data bits
and number of redundancy bits:
2 m r 1
r
Hamming Code
Solution for error correction
Positions of redundancy bits in Hamming
Code:
Hamming Code
(XXX1)
(XX1X)
(X1XX)
(1XXX)
Example
MULTIPLEXING
is a term used to refer to a process where
multiple analog message signals or digital
data streams are combined into one signal.
The aim is to share an expensive resource.
is the set of techniques that allows the
simultaneous transmission of multiple
signals across a single data link. As data
and telecommunications use increases, so
does traffic.
Bandwidth Utilization
Note
Categories of Multiplexing
FDM Process
Example 1
Assume that a voice channel occupies
a bandwidth of 4 kHz. We need to
combine three voice channels into a
link with a bandwidth of 12 kHz, from
20 to 32 kHz. Show the configuration,
using the frequency domain. Assume
there are no guard bands.
Example 2
Five channels, each with a 100-kHz bandwidth, are
to be multiplexed together. What is the minimum
bandwidth of the link if there is a need for a guard
band of 10 kHz between the channels to prevent
interference?
Solution
For five channels, we need at least four guard
bands.Thismeansthattherequiredbandwidthis
atleast
5100+410=540kHz
Example 3
Four data channels (digital), each transmitting
at 1 Mbps, use a satellite channel of 1 MHz.
Design an appropriate configuration, using
FDM.
Solution
The satellite channel is analog. We divide it into
four channels, each channel having a 250-kHz
bandwidth. Each digital channel of 1 Mbps is
modulated such that each 4 bits is modulated to 1
Hz. One solution is 16-QAM modulation.
16-QAM Implementation
FDM Hierarchy
Wavelength Division
Multiplexing (WDM)
is an analog multiplexing technique to combine
optical signals.
Couples light at two or more discrete
wavelengths into and out of an optical fiber.
Different wavelengths in a light pulse travel
through an optical fiber at different speeds (e.g.
blue light propagates slower than red)
WDM
TDM
In TDM, the channel is divided into
timeslots.
Synchronous TDM
In synchronous TDM, the multiplexer allocates exactly
the same timeslot to each device at all times, whether or
not a device has anything to transmit.
Example 4
In the previous slide, the data rate for each input
connection is 3 kbps. If 1 bit at a time is multiplexed (a
unit is 1 bit), what is the duration of (a) each input
slot, (b) each output slot, and (c) each frame?
Solution
Wecananswerthequestionsasfollows:
a.Thedatarateofeachinputconnectionis1kbps.
Thismeansthatthebitdurationis1/1000sor1ms.
Thedurationoftheinputtimeslotis1ms(sameas
bitduration).
Example 4
b.Thedurationofeachoutputtimeslotisonethird
oftheinputtimeslot.Thismeansthatthe
durationoftheoutputtimeslotis1/3ms.
c.Eachframecarriesthreeoutputtimeslots.Sothe
durationofaframeis31/3ms,or1ms.The
durationofaframeisthesameasthedurationof
aninputunit.
Example 5
The figure shows synchronous TDM with a data
stream for each input and one data stream for the
output. The unit of data is 1 bit. Find (a) the input bit
duration, (b) the output bit duration, (c) the output
bit rate, and (d) the output frame rate.
Example 5
Four 1-kbps connections are multiplexed together. A
unit is 1 bit. Find (a) the duration of 1 bit before
multiplexing, (b) the transmission rate of the link, (c)
the duration of a time slot, and (d) the duration of a
frame.
Solution
Wecananswerthequestionsasfollows:
a. Thedurationof1bitbeforemultiplexingis
1/1kbps,or0.001s(1ms).
b. The rate of the link is 4 times the rate of a
connection,or4kbps.
Example 5
c. The duration of each time slot is onefourth of the
durationofeachbitbeforemultiplexing,or1/4ms
or250s.Notethatwecanalsocalculatethisfrom
thedatarateofthelink,4kbps.Thebitdurationis
theinverseofthedatarate,or1/4kbpsor250s.
d.Thedurationofaframeisalwaysthesameasthe
durationofaunitbeforemultiplexing,or1ms.We
canalsocalculatethisinanotherway.Eachframe
inthiscasehasfourtimeslots.Sothedurationofa
frameis4times250s,or1ms.
Interleaving
Example 6
Four channels are multiplexed using TDM. If each
channel sends 100 bytes /s and we multiplex 1 byte
per channel, show the frame traveling on the link, the
size of the frame, the duration of a frame, the frame
rate, and the bit rate for the link.
Example 6
Solution
The multiplexer is shown in the figure. Each
frame carries 1 byte from each channel; the size
of each frame, therefore, is 4 bytes, or 32 bits.
Becauseeachchannelissending100bytes/sanda
framecarries1bytefromeachchannel,theframe
ratemustbe100framespersecond.Thebitrate
is10032,or3200bps.
Example 7
A multiplexer combines four 100-kbps channels using
a time slot of 2 bits. Show the output with four
arbitrary inputs. What is the frame rate? What is the
frame duration? What is the bit rate? What is the bit
duration?
Example 7
Solution
The figure shows the output for four arbitrary
inputs. The link carries 50,000 frames per second.
Theframedurationistherefore1/50,000sor20s.
The frame rate is 50,000 frames per second, and
eachframecarries8bits;thebitrateis50,0008=
400,000 bits or 400 kbps. The bit duration is
1/400,000s,or2.5s.
Empty Slots
Multilevel Multiplexing
Multiple-slot Multiplexing
Pulse Stuffing
Framing Bits
Example 8
We have four sources, each creating 250 characters per
second. If the interleaved unit is a character and 1
synchronizing bit is added to each frame, find (a) the
data rate of each source, (b) the duration of each
character in each source, (c) the frame rate, (d) the
duration of each frame, (e) the number of bits in each
frame, and (f) the data rate of the link.
Solution
Wecananswerthequestionsasfollows:
a.Thedatarateofeachsourceis2508=2000bps
=2kbps.
Example 8
b.Eachsourcesends250characterspersecond;
therefore,thedurationofacharacteris1/250s,or
4ms.
c.Eachframehasonecharacterfromeachsource,
whichmeansthelinkneedstosend250framesper
secondtokeepthetransmissionrateofeachsource.
d.Thedurationofeachframeis1/250s,or4ms.Note
thatthedurationofeachframeisthesameasthe
durationofeachcharactercomingfromeachsource.
e.Eachframecarries4charactersand1extra
synchronizingbit.Thismeansthateachframeis
48+1=33bits.
Example 9
Two channels, one with a bit rate of 100 kbps and
another with a bit rate of 200 kbps, are to be
multiplexed. How this can be achieved? What is the
frame rate? What is the frame duration? What is the bit
rate of the link?
Solution
We can allocate one slot to the first channel and two
slotstothesecondchannel.Eachframecarries3bits.
Theframerateis100,000framespersecondbecauseit
carries 1 bit from the first channel. The bit rate is
100,000frames/s3bitsperframe,or300kbps.
Digital Hierarchy
Statistical TDM
The number of time slots is based on a
statistical analysis of the number of input
lines that are likely to be transmitting at
any given time.