Cs601 Assignment 2 Helping Material
Cs601 Assignment 2 Helping Material
Data Encoding
http://vujannat.ning.com
Review
Amplitude
0 1 0 0 0
Time
Unipolar Encoding Issues
• Synchronization: A major issue:
– Example: For a bit rate of 1000 bps, the
receiving device must measure each bit for
0.005 s.
• DC Component:
• The average amplitude of a unipolar encoded
signal is not zero.
– This creates a DC component ( a component with zero
frequency).
– DC component can not travel through some media
that can not handle DC component
Polar Encoding
NRZ RZ Biphase
Amplitude
0 1 0 0 1 1 1 0
Time
Variation of Nonreturn to Zero
(NRZ)
NRZ-I (Nonreturn to Zero Invert on ones)
• A 0 is represented by no change
Amplitude
0 1 0 0 0 1 1 1 0
Time
Nonreturn to Zero-Level
Nonreturn to Zero, invert on ones
Amplitude
0 1 0 0 1 1 1 0
Time
0 1 0 0 0 1 1 1 0
Return to Zero
• One solution to synchronization
issue of NRZ-L and NRZ-I is using RZ
(Return to Zero) encoding schemes.
– It uses three values: positive, negative
and zero.
– In RZ, the signal changes during each bit.
– A 1 bit is represented by positive-to zero
and a 0 bit by negative-to-zero.
Return to Zero
It requires two signal changes to encode one bit.
(uses more bandwidth)
0 1 0 0 1 1 1
Time
NRZ RZ Biphase
– Differential Manchester
Biphase Encoding
• Manchester Encoding:
– The inversion at the middle of each bit is
used for both synchronization and bit
representation
0 1 0 0 1 1 1 0
Zero One
Differential Encoding
• Data represented by changes rather
than levels
• More reliable detection of transition
rather than level
• In complex transmission layouts it is
easy to lose sense of polarity
Biphase Encoding
• Differential Manchester:
– Transition at the middle of bit interval is used for
clocking only.
– Transition at the start of a bit period represents
zero.
– No transition at start of a bit period represents
one.
– Note: this is a differential encoding scheme
– Used by IEEE 802.5.
Differential Manchester
Encoding
0 1 0 0 1 1 1 0
B i p o l a
A M B I 8 HZ SD
Bipolar Alternate Mark
Inversion (AMI)
0 1 0 0 1 1 10
Bipolar-AMI and Pseudoternary
Types of Bipolar Encoding
• Pros:
– DC component is zero
– A long sequence of 1’s is always
synchronized.
– Lower bandwidth
– Easy error detection
• Cons
– No mechanism for synchronization of long string of
zeros
Variation of AMI
• Bipolar 8-zero substitution (B8ZS)
• (implemented in US)
• High Density bipolar 3 (HDB3)
• (implemented in Europe)
s (t ) = A cos( 2π f c
t) Binary 1
s (t ) = 0 Binary 0
ASK
Modulation Techniques(ASK)
Frequency Shift Keying
• Values represented by different
frequencies (near carrier)
• Less susceptible to error than ASK
• Up to 1200bps on voice grade lines
• High frequency radio
• Even higher frequency on LANs using
co-ax
Modulation Techniques (ASK)
s (t ) = A cos( 2π f 1
t) Binary 1
s (t ) = A cos(2π f 2
t) Binary 0
s (t ) = A cos( 2π f c
t +π ) Binary 1
s (t ) = A cos( 2π f c
t) Binary 0
s (t ) = A cos( 2π f t + π / 4)
c
Binary 11
s (t ) = A cos( 2π f t + 3π / 4) Binary 10
c
s (t ) = A cos( 2π f t + 5π / 4) Binary 00
c
s (t ) = A cos( 2π f t + 7π / 4) Binary 01
c
4-PSK
4-PSK
Constellation
8-QAM Signal
8-PSK
Constellation
Have a great day .
See you on Friday.
PSK
Bandwidth
4-QAM and 8-QAM
Constellation
Bandwidth for ASK
Bandwidth for FSK
16-QAM
Constellation
Bit Rate and Baud Rate
Bit Rate and Baud Rate
Modulation Techniques(FSK)
Performance of Digital to Analog
Modulation Schemes
• Bandwidth
– ASK and PSK bandwidth directly related to bit rate
– FSK bandwidth related to data rate for lower
frequencies, but to offset of modulated frequency
from carrier at high frequencies
– (See Stallings for math)
• In the presence of noise, bit error rate of PSK
and QPSK are about 3dB superior to ASK
and FSK
Analog Data, Digital Signal
• Digitization
– Conversion of analog data into digital data
– Digital data can then be transmitted using NRZ-L
– Digital data can then be transmitted using code other than NRZ-L
– Digital data can then be converted to analog signal
– Analog to digital conversion done using a codec
– Pulse code modulation
– Delta modulation
Pulse Code Modulation(PCM)
(1)
• If a signal is sampled at regular intervals at a
rate higher than twice the highest signal
frequency, the samples contain all the
information of the original signal
– (Proof - Stallings appendix 4A)
• Voice data limited to below 4000Hz
• Require 8000 sample per second
• Analog samples (Pulse Amplitude Modulation,
PAM)
• Each sample assigned digital value
Pulse Code Modulation(PCM)
(2)
• 4 bit system gives 16 levels
• Quantized
– Quantizing error or noise
– Approximations mean it is impossible to recover
original exactly
• 8 bit sample gives 256 levels
• Quality comparable with analog transmission
• 8000 samples per second of 8 bits each gives
64kbps
Nonlinear Encoding
• Quantization levels not evenly spaced
• Reduces overall signal distortion
• Can also be done by companding
Delta Modulation
• Analog input is approximated by a
staircase function
• Move up or down one level (δ ) at each
sample interval
• Binary behavior
– Function moves up or down at each
sample interval
Delta Modulation - example
Delta Modulation - Operation
Delta Modulation - Performance
• Good voice reproduction
– PCM - 128 levels (7 bit)
– Voice bandwidth 4khz
– Should be 8000 x 7 = 56kbps for PCM
• Data compression can improve on this
– e.g. Interframe coding techniques for video
Analog Data, Analog Signals
• Why modulate analog signals?
– Higher frequency can give more efficient
transmission
– Permits frequency division multiplexing (chapter 8)
• Types of modulation
– Amplitude
– Frequency
– Phase
Analog
Modulation
Spread Spectrum
• Analog or digital data
• Analog signal
• Spread data over wide bandwidth
• Makes jamming and interception harder
• Frequency hoping
– Signal broadcast over seemingly random series of frequencies
• Direct Sequence
– Each bit is represented by multiple bits in transmitted signal
– Chipping code
Required Reading
• Stallings chapter 5
Review
Atmospheric and
Extraterrestrial Noise
–Lightning: It is a major source of noise, caused
by the static discharge of thunderclouds.
•Several million volts
•Currents exceeding 20,000 amps.
–Solar Noise: Ionized gases of the sun produces
a wide range of frequencies that penetrate the
Earth’s atmosphere.
–Cosmic Noise Radiation of noise by distant stars
penetrating the Earth’s atmosphere.Long haul
telecommunications service (1500 km support
20,000 to 60,000 voice channels)
•An alternative to fiber optic and coaxial cable
•Short point-to-point links between buildings
(closed-circuit TV or data link)