CHAPTER FOUR1
CHAPTER FOUR1
CHAPTER FOUR1
ECEg4116 1
INTRODUCTION
We will study how to encode analog waveforms into base
band digital signals. Digital signal is popular because of
the low cost and flexibility.
Main goals:
• To study how analog waveforms can be converted to
digital waveforms, Pulse Code Modulation.
• To learn how to compute the spectrum for digital signals.
• Examine how the filtering of pulse signals affects our
ability to recover the digital information.
ECEg4116 2
Binary Bandpass Signaling techniques
On–Off keying (OOK) [amplitude shift keying (ASK)] - Consists of keying (switching) a
carrier sinusoid on and off with a unipolar binary signal.
Binary Phase-Shift Keying (BPSK) - Consists of shifting the phase of a sinusoidal carrier
0o or 180o with a unipolar binary signal.
- BPSK is equivalent to PM signaling with a digital waveform.
ECEg4116 3
Binary Bandpass Signaling techniques
ECEg4116 4
On-Off Keying (OOK)
Also known as Amplitude Shift Keying (ASK)
g f f Tb
2
fTb
s(t)
OOK signal
ECEg4116 7
Detection of OOK
Non-Coherent Detection
ECEg4116 8
Binary Phase Shift Keying (BPSK)
Generation:
Message: m(t)
Carrier:Cos(2fct)
BPSK output
AcCos(2fct+Dpm(t))
-90
Phase shift
1
Tb
R
Message 1 0 1 0 1 0 1
Unipolar m(t)
Modulation
Bipolar m(t)
Modulation
s(t)
BPSK output
ECEg4116 9
Binary Phase Shift Keying (BPSK)
The BPSK signal is represented by
st Ac cos c t D p mt
let m(t ) 1
Average normalized
power of s(t) : Ac2 2
Null-to-Null
BW
ECEg4116 11
PSD of optimum BPSK
Binary Phase Shift Keying (BPSK)
If Dp /2
2
Pilot exists Ac2 sin( ( f f c ) / R )
8R ( f f c ) / R
fc
2R = 2/Tb
ECEg4116 12
Frequency Shift Keying (FSK)
Discontinuous FSK :
Message: m(t)
Cos(2f1t)
Osc. f1 FSK output
AcCos(2f1t+1) or
Cos(2f2t) AcCos(2f2t+2)
Osc. f2
ECEg4116 13
Frequency Shift Keying (FSK)
Continuous FSK :
t
st Ac cos c t D f m d
or
st Re g t e j ct
where
g t Ac e j t
t
t D f m d for FSK
ECEg4116 14
Frequency Shift Keying (FSK)
1
Tb
R
Message 1 0 1 0 1 0 1
Unipolar m(t)
Modulation
Bipolar m(t)
Modulation
s(t)
FSK output
(Discontinuous)
Mark(binary 1) frequency: f1
Space(binary 0) frequency: f2
ECEg4116 15
PULSE AMPLITUDE MODULATION
Pulse Amplitude Modulation (PAM) is used to describe the
conversion of the analog signal to a pulse-type signal in
which the amplitude of the pulse denotes the analog
information.
s(t)
ws(t) =w(t)s(t)
ECEg4116 18
Generating Natural Sampling
The PAM wave form with natural sampling can be generated using
a CMOS circuit consisting of a clock and analog switch as shown.
ECEg4116 19
Spectrum of Natural Sampling
sin( nd )
Ws ( f ) F[ws (t )] cnW ( f nf s ) d W ( f nf s )
n n nd
sin( nd )
Ws ( f ) d
n nd
W ( f nf s )
sin( nd )
d
nd
ECEg4116 20
Recovering Naturally Sampled PAM
At the receiver, the original analog waveform, w(t), can be
recovered from the PAM signal, ws(t), by passing the PAM signal
through a low-pass filter where the cutoff frequency is: B <fcutoff <
fs -B
If the analog signal is under sampled fs < 2B, the effect of spectral
overlapping is called Aliasing. This results in a recovered analog
signal that is distorted compared to the original waveform.
LPF Filter
B <fcutoff < fs -B
ECEg4116 21
Demodulation of PAM Signal
The analog waveform may be recovered from the PAM
signal by using product detection,
ECEg4116 22
Instantaneous Sampling (Flat-Top PAM)
• This type of PAM signal
consists of instantaneous
samples.
23
ECEg4116
Instantaneous Sampling (Flat-Top PAM)
DEFINITION: If w(t) is an analog waveform bandlimited to
B Hertz, the instantaneous sampled PAM signal is given by
ws (t ) w(kTs )h(t kTs ) h(t ) w(kTs ) (t kTs ) h(t ) w(t ) (t kTs )
k k k
– Where h(t) denotes the sampling-pulse shape and, for flat-top
sampling, the pulse shape is,
sin f
H ( f ) h(t )
f 24
ECEg4116
The spectrum of the flat-top PAM
Analog signal maybe recovered from the flat-top PAM signal by the use of a LPF.
LPF Response
Note that the recovered signal
has some distortions due to the
curvature of the H(f).
Distortions can be removed by
using a LPF having a response
1/H(f).
ECEg4116 25
Some notes on PAM
• The flat-top PAM signal could be generated by using a
sample-and-hold type electronic circuit.
• There is some high frequency loss in the recovered analog
waveform due to filtering effect H(f) caused by the flat top
pulse shape.
• This can be compensated (Equalized) at the receiver by
making the transfer function of the LPF to 1/H(f)
• This is a very common practice called “EQUALIZATION”
• The pulse width τ is called the APERTURE since τ/Ts
determines the gain of the recovered analog signal
Disadvantages of PAM
• PAM requires a very larger bandwidth than that of the original signal;
• The noise performance of the PAM system is not satisfying.
ECEg4116 26
PULSE CODE MODULATION (PCM)
DEFINITION: Pulse code modulation (PCM) is essentially
analog-to-digital conversion of a special type where the
information contained in the instantaneous samples of an
analog signal is represented by digital words in a serial bit
stream.
ECEg4116 28
Analog to Digital Conversion
The Analog-to-digital Converter (ADC)
performs three functions:
– Sampling
Analog
Input
• Makes the signal discrete in time.
Signal • If the analog input has a
bandwidth of W Hz, then the
Sample minimum sample frequency
such that the signal can be
reconstructed without distortion.
ADC – Quantization
Quantize
111 • Makes the signal discrete in
amplitude.
110
101
100
011
010
• Round off to one of q discrete
Encode
001
000
levels.
– Encode
• Maps the quantized values to
digital words that are bits long.
Digital Output If the (Nyquist) Sampling Theorem is
Signal
111 111 001 010 011 111 011
satisfied, then only quantization
ECEg4116 29
introduces distortion to the system.
Quantization
The output of a sampler is still continuous in amplitude.
– Each sample can take on any value e.g. 3.752, 0.001, etc.
– The number of possible values is infinite.
ECEg4116 30
Illustration of the Quantization Error
ECEg4116 31
Uniform Quantization
Dynamic Range: • Most ADC’s use uniform
(-8, 8)
quantizers.
Output sample
XQ
7
• The quantization levels of
5
a uniform quantizer are
3
equally spaced apart.
1
-8 -6 -4 -2 -1 2 4 6 8
• Uniform quantizers are
-3
Input sample X
optimal when the input
-5
distribution is uniform.
-7
When all values within the
Quantization Characteristic Dynamic Range of the
Example: Uniform =3 bit quantizer quantizer are equally
q=8 and XQ = {1,3,5,7} likely.
ECEg4116 32
Quantization Example
Analogue signal
Sampling TIMING
Quantization levels.
Quantized to 5-levels
Quantization levels
Quantized 10-levels
ECEg4116 33
PCM encoding example
M=8
ECEg4116 36
Waveforms in a PCM system for M=8
M=8
M 2n n log 2 ( M )
M is the number of Quantization levels
(c) Error Signal n is the number of bits per sample
ECEg4116 37
(d) PCM Signal
PCM Transmission System
ECEg4116 38
Practical PCM Circuits
• Three popular techniques are used to
implement the analog-to-digital converter
(ADC) encoding operation:
1. The counting or ramp, ( Maxim ICL7126 ADC)
2. Serial or successive approximation, (AD 570)
3. Parallel or flash encoders. ( CA3318)
• The objective of these circuits is to generate
the PCM word.
• Parallel digital output obtained (from one of the
above techniques) needs to be serialized
before sending over a 2-wire channel
• This is accomplished by parallel-to-serial
converters [Serial Input-Output (SIO) chip]
• UART,USRT and USART are examples for
SIO’s
ECEg4116 39
Bandwidth of PCM Signals
• The spectrum of the PCM signal is not directly related to the spectrum of the
input signal.
• The bandwidth of (serial) binary PCM waveforms depends on the bit rate R
and the waveform pulse shape used to represent the data.
• The Bit Rate R is
R=nfs
Where n is the number of bits in the PCM word (M=2n) and fs is the sampling
rate.
• For no aliasing case (fs≥ 2B), the MINIMUM Bandwidth of PCM Bpcm(Min) is: