Fundamentals of Digital Communication
Fundamentals of Digital Communication
Communication
Digital communication system
Analog Digital
Input Low
Signal Source Channel
Pass Sampler Quantizer Multiplexer
Analog/ Encoder Encoder
Filter
Digital
Carrier
Pulse
Twisted Pair To Channel Modulator Shaping
Line
Encoder
Filters
Co-axial Cable
Optical Fiber
Wireless De- Receiver
From Channel Detector
Space Modulator Filter
Signal
at the Digital-to-Analog Channel De-
user end Converter Decoder Multiplexer
Analog Digital
2
Digital Modulation
• cost effective because of advances in digital technology
(VHDL, DSP, FPGA…)
• advantages/disadvantages vs analog
- better noise immunity
- robustness to channel impairments
- ability to multiplex information
- error control: detect & correct corrupt bits
- able to encrypt data
- flexible software modulation & demodulation
- requires complex signal conditioning
modulating signal (message) represented as pulses
• n bits represented by m finite states
• n = log2m
3
Factors in Digital Modulation
4
(i) Power Efficiency, p
Ability to preserve signal fidelity at low power
• increasing signal power increases noise immunity
• specifics depend on modulation technique
• measures trade-off between fidelity & signal power
Eb = bit energy
N0 = noise power spectral density
5
(ii) Bandwidth Efficiency, B
Ability to accommodate data in limited bandwidth
• increasing data rate requires increased bandwidth
• direct relationship to system capacity
• measured in terms of bit rate, Rb & RF bandwidth, B
B =Rb/B 6.36
Fundamental Upper Bound on achievable Bit Rate per given
Bandwidth (aka Shannon Bound)
Bmax = C/B
S
Bmax = log2 1 6.37
N
• C = maximum channel capacity (bps) 6
typically there is a tradeoff between B & p
e.g
addition of error control codes increases p and decreases B
- increases bandwidth for given data rate
- reduces required received power for specified BER
8
Analog vs. Digital
x(t)
Analog signals
Value varies continuously
t
Digital signals x(t)
Value limited to a finite set
t
Binary signals x(t) 1 1 1
Has at most 2 values
Used to represent bit values 0 T 0 0 0
Bit time T needed to send 1 bit
Data rate R=1/ T bits per second t
9
Performance Metrics
In analog communications we want,
ˆ (t) m(t)
m
Probability of error
Bit Error Rate (BER): Number of bit errors that occur for a
10
Analog versus Digital
Regenerator receiver
Original Regenerated
pulse pulse
Propagation distance
12
Analog versus Digital
Flexibility:
Perform encryption
Compression
Error correction/detection
Reliable reproduction
13
Bandwidth of signal
Baseband versus bandpass:
Baseband Bandpass
signal signal
Local oscillator
Bandwidth dilemma:
Bandlimited signals are not realizable!
Realizable signals have infinite bandwidth!
14
Different definition of bandwidth:
a) Half-power bandwidth d) Fractional power containment bandwidth
b) Noise equivalent bandwidth e) Bounded power spectral density
c) Null-to-null bandwidth f) Absolute bandwidth
(a)
(b)
(c)
(d)
15
(e)50dB
Sampling
Time domain Frequency domain
xs (t ) x (t ) x(t ) X s ( f ) X ( f ) X ( f )
x (t )
| X(f )|
x (t ) | X ( f ) |
xs (t )
| Xs( f )|
16
Aliasing effect
LP filter
Nyquist rate
aliasing
17
Sampling theorem
In
Average quantization noise power
Quantized
19
Encoding (PCM)
20
Quantization example
amplitude
x(t)
111 3.1867
100 0.4552
010 -1.3657
21
Quantization error
Quantizing error: The difference between the input and output
of a quantizer e(t ) xˆ (t ) x(t )
Process of quantizing noise
Qauntizer
Model of quantizing noise
y q (x)
AGC x(t ) xˆ (t )
x(t ) xˆ (t )
x
e(t )
+
e(t)
ˆ(t)x(t)
x
22
Quantization error …
Quantizing error:
Granular or linear errors happen for inputs within the
range of quantizer
Saturation errors are larger than linear errors
2
q
E
{[
xq
(
x
)]
}
e(
x
)
p(
x
)
dx
22
Lin
Sat
2 2
12
q L/2
q2
2
2
p
Lin(
xl)
q l
l Uniform q. 2
Lin
12 l
0 12
23
Uniform and non-uniform
quant.
Uniform (linear) quantizing:
No assumption about amplitude statistics and correlation properties of the
input.
Not using the user-related specifications
Robust to small changes in input statistic by not finely tuned to a specific
set of input parameters
Simply implemented
Application of linear quantizer:
Signal processing, graphic and display applications, process control
applications
Non-uniform quantizing:
Using the input statistics to tune quantizer parameters
Larger SNR than uniform quantizing with same number of levels
Non-uniform intervals in the dynamic range with same quantization noise
variance
Application of non-uniform quantizer:
Commonly used for speech
24
Non-uniform quantization
It is done by uniformly quantizing the “compressed” signal.
At the receiver, an inverse compression characteristic, called
“expansion” is employed to avoid signal distortion.
compression+expansion companding
y C (x) x̂
x(t ) y (t ) yˆ (t ) xˆ (t )
x ŷ
Compress Quantize Expand
Transmitter Channel Receiver
25
Pulse Code Modulation (continued)
• Binary values are later converted to an analog signal
• Waveform similar to original results
26
Pulse Code Modulation (continued)
27
Pulse Code Modulation (continued)
28
Pulse Code Modulation (continued)
29
Delta Modulation
• An analog waveform is tracked using a binary 1 to
represent a rise in voltage and a 0 to represent a drop
30
Source Coding
To eliminate redundancy
Huffman Coding
Shannon-Fano Coding
31
Channel Coding
Error Control Coding
To reduce the impact of channel errors by controlled
introduction of redundancy
Decrease in effective data rate
Increased coding gain
ARQ methods
32
Line Coding Formats
(Converting Data into Signals)
• Numerous techniques –
• NRZ-L
• NRZ-I
• Manchester
• Differential Manchester
• Bipolar AMI
33
Converting Data into Signals
(continued)
34
Pulse Shaping Filters
Bandlimiting signals in frequency domain
spreads signal in time domain
35
t/Ts)
sin(
Consider: heff(t) = t/Ts
6.44
heff(nTs) = 0
Transfer function of Nyquist Pulse Shaping Filter
HNYQ(f)
1
scaling factor , 0 ≤ ≤ 1
=0
Guassian filter has narrow absolute bandwidth
• not as narrow as RC filter
• sharp cut-off frequency & low overshoot
• smooth transfer function & no zero crossings
3Ts Ts
Ts 3Ts t
-4T -3T -2T -T 0 T 2T 3T 4T 2 2 2 2
39
What is modulation
Modulation is the process of encoding
information from a message source in a
manner suitable for transmission
It involves translating a baseband message
signal to a bandpass signal at frequencies
that are very high compared to the baseband
frequency.
Baseband signal is called modulating signal
Bandpass signal is called modulated signal
40
Modulation Techniques
Modulation can be done by varying the
Amplitude
Phase, or
Frequency
of a high frequency carrier in accordance with the
amplitude of the message signal.
Demodulation is the inverse operation:
extracting the baseband message from the
carrier so that it may be processed at the
receiver.
41
Fundamentals of Signals
Amplitude
• Height of the wave above or
below a given reference point
Frequency
• Number of times a signal
makes complete cycle within a
given time frame
• Spectrum - Range of frequencies that a
signal spans from minimum to
maximum
• Bandwidth - The absolute value of the
difference between the lowest and
highest frequencies of a signal
42
• For example, voice spectrum 300 - 3100 Hz
Fundamentals of Signals (continued)
Phase
• Position of the waveform
relative to a given moment
of time or relative to time
zero
• A change in phase can be
any number of angles
between 0 and 360 degrees
• Phase changes often occur
on common angles, such as
45, 90, 135, etc.
43
Where do you need modulation ?
Textual Format
source info.
Pulse
Analog Transmit
Sample Quantize Encode modulate
info.
Pulse
Bit stream waveforms Channel
Format
Analog
info. Low-pass
Decode Demodulate/
filter Receive
Textual Detect
sink
info.
Digital info.
45
Modulation
-Transmitting Digital Data with Analog Signals
46
Amplitude Shift Keying
47
Amplitude Shift Keying (continued)
48
Amplitude Shift Keying (continued)
49
Frequency Shift Keying
50
Phase Shift Keying
51
Goal of Advanced Modulation and
Coding Techniques
Modulation is difficult task in hostile channels
like the mobile radio channels
52
Multipath Propagation
multipath
LOS pulses pulses
signal at sender
signal at receiver
t
short term fading
53
Wireless channel
Channel
Channel Coherence
Coherence bandwidth >> Signal
time >> Symbol bandwidth
duration
Frequency
Fast FadingSelective
Channel Fading Channel
55
Phase Shift Keying (continued)
• 315 degrees
56
Phase Shift Keying (continued)
57
Phase Shift Keying (continued)
58
Phase Shift Keying (continued)
59
Spread Spectrum Technology
60
Spread Spectrum Technology (continued)
61
Spread Spectrum Technology (continued)
63
Thank you
64