Nota Topic 2
Nota Topic 2
SYSTEM FUNDAMENTALS
1
COURSE LEARNING OUTCOME
2
CHAPTER 2 : MODULATION TECHNIQUES
LEARNING OUTCOME
2.1 Remember modulation and demodulation.
2.2 Understand modulation and demodulation
2.3 Remember Analog Modulation
2.4 Understand Analog Modulation
2.5 Understand digital information in communication system
2.6. Understand M-ary Encoding
2.7 Remember pulse modulation
3
CHAPTER 2 : MODULATION TECHNIQUES
LEARNING OUTCOME
4
2.1 Remember modulation and demodulation.
2.2 Understand modulation and demodulation
5
MODULATION & DEMODULATION
6
MODULATION & DEMODULATION
7
WHAT IS MODULATION?
8
MODULATION PROCESS
Modulator
Modulated Signal (High Frequency)
Information Signal
(Low frequency) Carrier Signal
(High frequency)
Modulator Demodulator
Modulated Signal
-
(High Frequency)
Information
Signal (Low Demodulated Signal = info
frequency) Carrier Signal (Low Frequency)
(High frequency)
10
TYPES OF MODULATION
Types of Modulation
11
TYPES of MODULATION
QAM
where;
v(ct) = time-varying sine wave of Carrier signal voltage
A = peak amplitude (volts)
f = frequency (hertz, Hz)
θ = phase shift (radians)
13
WHY MODULATION IS NECESSARY?
15
2.3 Remember Analog Modulation
2.4 Understand Analog Modulation
16
ANALOG MODULATION
17
ANALOG MODULATION
19
1. AMPLITUDE MODULATION (AM)
20
1. AMPLITUDE MODULATION (AM)
Characteristics:
CARRIER SIGNAL
(Vc) - The amplitude of carrier signal is
Characteristics: varied by the modulating signal.
- High frequency - Frequency and phase remain
- eg: microwave frequency constant
- frequency and amplitude fixed. - High frequency
Figure 2.1 : Single- Frequency Amplitude Modulation
22
AMPLITUDE MODULATION (AM)
Carrier Signal
Information Signal
Frequency Modulated
(FM) Signal
Phase Modulated
(PM) Signal
25
2. FREQUENCY MODULATION (FM)
26
2. FREQUENCY MODULATION (FM)
• Definition
PM is the process of changing the phase of
analog carrier signal in proportion with the
amplitude of the information signal
• In PM, the carrier amplitude and frequency
remains constant while the carrier phase is
varied by the modulating signal.
• As the modulating signal amplitude increases,
the carrier phase increases and vice versa.
29
3. PHASE MODULATION (PM)
31
COMPARISON OF FM AND PM
32
2.5 Understand digital information in
communication system
At the end of this learning session, student
should be able to explain :
- The difference between digital radio and digital
transmission.
- Digital communication block diagram
- Advantages of the digital communication
compares to analog modulation.
33
DIGITAL COMMUNICATION
34
DIGITAL COMMUNICATION
36
DIGITAL COMMUNICATION
38
TYPES of DIGITAL COMMUNICATION
Information
Source
Source Encoder Channel Encoder Digital Modulator
ASK,FSK,PSK Signal
Analog, digital signal Message Symbol Code Symbol
(Bits) (Bits) Channel
ASK,FSK,PSK Signal
Information
Source Decoder Channel Decoder Digital Demodulator
Sink
Source Encoder
Digital Information
Textual Information
Analog Information Sampler Quantizer Encoder Channel Encoder
45
M-ARY ENCODING
46
M-ary CODING
• M-ary is a term derived from the word binary.
47
M-ary CODING
• The number of conditions, M possible with n bits is
expressed mathematically as;
M 2 n
Where, n = number of bits
M = number of conditions, or levels, or
combinations
possible with n bits
Example 2.2
A digital signal has two levels. How many bits are needed
per level? Draw that digital signals.
Example 2.3
A digital signal has four levels. How many bits are needed
per level? Draw that digital signals.
49
M-ary CODING
Solution example 2.2
n log 2 M number of levels, M = 2
n log 2(2) number of bits per level, n = 1 bit
log 2
n 1 bit
log 2
50
M-ary CODING
Solution example 2.3
n log 2(4) number of levels, M = 4
log 4 number of bits per level, n = 2 bits
n 2 bits
log 2
51
2.7 Remember Pulse Modulation
52
PULSE MODULATION
53
PULSE MODULATION
54
PULSE MODULATION TECHNIQUE
55
PULSE MODULATION TECHNIQUE
56
Figure 3.3 : Pulse Modulation Pulse Modulation
Technique
Information signal
Sampling Pulses
PWM
PPM
PAM
(Single Polarity/Flat Top Sampling)
PCM
57
PULSE MODULATION TECHNIQUE
• PWM - the width of the pulses is varied proportional to the analog
amplitude information signal.
(The higher amplitude of Information signal, the wider of pulse.)
• PPM – the position of the pulses is varied proportional to the analog
amplitude information signal.
(The higher amplitude of Information signal, the farther to the right the
pulse is positioned).
• PAM - the amplitude of the pulses is varied proportional to the analog
amplitude information signal.
(The higher amplitude of Information signal, the higher amplitude of
pulse).
• PCM – With PCM, the analog information signal is sampled into PAM
signal and then converted to a serial n-bit binary code for transmission.
58
PULSE WIDTH MODULATION (PWM)
60
PULSE AMPLITUDE MODULATION (PAM)
PAM
Sample pulses
61
PULSE MODULATION TECHNIQUE
62
DIGITAL PULSE MODULATION (DPM)
64
PULSE CODE MODULATION
65
Pulse Code Modulation (PCM)
67
Pulse Code Modulation (PCM)
APPLICATION:
• In electronic communication circuit, the PCM technique is
applied at
– Analog to Digital Converter (ADC) device - in Coder
– Digital to Analog Converter (DAC) device - in Decoder
– In digital telephony Multiplexing (TDM-PCM)
– Digital PABX
– Digital Audio recording
– CD laser disks, etc.
69
Figure 2.6 Block Diagram of PCM - Full
Sampling Pulses
Serial PCM code (bits)
Analog Signal
Decoder & Lowpass
Hold Filter
(c) PCM Receiver
70
PCM Block Diagram
71
PCM Block Diagram
72
Pulse Code Modulation (PCM)
Information signal
Bandpass Filter
Filtered signal
e.g : 300 – 3400Hz
fmmin fmmax
74
2.10 Understand sampling process in PCM
2.11 Apply Nyquist Sampling Theorem
75
1. SAMPLING
• Definition: Sampling is a process where the information
signal (in analog signal) is sampled by sampling pulse signal
which is generated at certain sampling rate,fs.
• Sampling process will convert an analog signal (in
continuous-time signal) to a sampled signal (in discrete-
time signal) either in PAM, PWM or PPM.
• For PCM, the sampled signal is PAM signal.
• By this process, the amplitude of pulses signal is varied
proportional to the analog amplitude of information signal.
76
1. Sampling
Figure 2.9
• According to Figure 2.9, Analog
information signal is sampled every
TS seconds.
Info signal • Ts is referred to as the Sampling
Interval or Sampling Period.
• The amplitude of sampling pulse
signal is varied according to
amplitude of information signal
-TS 0 TS 2TS 3TS
which produce a PAM signal.
Sampling Pulse Signal
• There are 3 methods of sampling
which are
i. Ideal Sampling
ii. Natural Sampling
-TS 0 TS 2TS PAM Signal iii. Flat-Top Sampling
77
Figure 2.10 : Three different sampling methods for PCM
Ts
Ts
78
1. SAMPLING
• Ideal Sampling – the analog information signal is sampled
instantaneously by pulses. This sampling is not practical
and cannot be easily implemented.
79
1. SAMPLING
Sample Switch
fm fs
• From Figure 2.13, it could be seen that the higher the sampling
rate, fs the smaller sampling interval, Ts, the closer the
recovered signal approaches the original signal.
Original
Information
Signal is
recovered.
Original
Information
Signal is NOT
recovered.
82
SAMPLING THEOREM
According to the Nyquist Sampling theorem; to reconstruct the
original signal, the sampling rate must be at least (minimum)
two times the highest frequency contained in the info signal.
fs ≥ 2fm(max)
EXAMPLE 2.4 :
Given the bandwidth of the telephone lines signal is 300 to 3400 Hz.
Determine the minimum sampling rate that suitable for sampling that signal
and sampling interval required.
ANSWER :
fs = 2fm(max) = 2 ( 3400Hz) = 6800 Hz @ 6800 samples/s
Ts = 1/ fs = 1/6800Hz = 0.147ms
83
SAMPLING THEOREM
EXAMPLE 2.5 :
• For an intuitive example of the Nyquist Theorem, let us sample a
simple sine wave at three sampling rates:
i) fs = 2fm (Nyquist rate),
ii) fs = 2(2fm) (2 times the Nyquist rate), and
iii) fs = ½(2fm) (one-half the Nyquist rate).
ANSWER:
From Figure 2.12 below;
• For part (a), it can be seen that the sampling at the Nyquist rate can
create a good approximation of the original sine wave
• Oversampling in part (b) can also create the same approximation, but it is
redundant and unnecessary.
• Sampling below the Nyquist rate (part c) does not produce a signal that
looks like the original sine wave. 84
Figure 2.12 : Recovery of a sampled sine wave for different sampling rates
Harry Nyquist
86
2.12 Understand Quantization process in PCM
87
2. QUANTIZATION
• Definition: Quantization is a process rounding off the amplitudes
of sampled (PAM) signal to a countable number of quantization
levels.
• Analog signal has an infinite (uncountable) number of amplitude
possibilities. By using the quantization process, the amplitudes of
sampled PAM signal is rounding off to a finite(countable) set of
quantization levels, L.
• The number of amplitude levels, L for the quantization depend on
the number of bits, n used to code the signal.
• It use M-ary formula to determine the number of quantization
levels, L. n n = number of bits per level
L 2 L = number of finite quantization level
88
2. QUANTIZATION
• For example, if 3 bits is used to code the signal, therefore the
number of quantization levels, L are;
L 2 n 23
L 8 levels
1
Original
0 analog
Mid-point signal
Figure 2.13: Quantization 90
2. QUANTIZATION
• This is achieved by dividing the distance between Vmax and Vmin into L
zones, each of height of step size, ∆.
• Since we want to use 3 bit PCM code (n=3), so the Quantization Level
is; L = 2n
L = 23 = 8 level
• The 8 zones are: -4V to -3V, -3V to -2V, -2V to -1V, -1V to 0V,
0V to 1V, 1V to 2V, 2V to 3V, and 3V to 4V.
• The midpoints are: -3.5V, -2.5V, -1.5V, -0.5V, 0.5V, 1.5V, 2.5V, and
3.5V.
• This midpoint is called quantization level, L. The midpoint of
each zone is assigned a value from 0 to L-1 quantization levels.
• Each sampled signal’s amplitude is quantized (rounding-off) to
the midpoint of the interval (quantization level) in which it lies.
• For example in Figure 2.13 above, the second sample has
sampled amplitude value of 3.1V. After quantization, the
sampled amplitude value is quantized to 3.5V level.
92
2. QUANTIZATION
• There are two types of Quantizing method which are;
i. Uniform Quantization – uniform step size, ∆
ii. Non-uniform Quantization – non-uniform step size, ∆
• The previous example is Uniform quantization where the step size is uniform
for each zone.
• However, a non-uniform quantization is commonly used because the
uniform quantization is not efficient for a signal that has smaller amplitude.
• For example, in speech communication (voice signal), the signal is found have
more smaller amplitudes rather than larger amplitudes
• Thus, uniform quantization scheme is wasteful for speech signals because
many of quantization levels, L are rarely used. The non-uniform quantizing
method is more suitable because the step size could be adjusted depends on
the amplitude of signal (smaller step size for lower amplitude and larger for
higher amplitude).
93
2.13 Apply the M-ary, Quantization error and SQR
formulas
94
Quantization Error (Qe)
• When a signal is quantized, we introduce an error because
Quantization is an approximation process.
• The difference between sampled and quantized value is referred
as the quantization error (Qe).
Qe Quantized value - Sampled value (V)
Since, numberSQR(dB)
of bits is 3,
so6.02(3)
the SQRis1.76 19.82dB
96
Qe, SQR and BIT RATE
• From the SQR equation, it could be seen that the values of
SQR is depends on the number of bits, n.
• The higher number of bits, the higher value of SQR could be
achieved, the more quantization error could be reducing,
and the more accurate recovery signal could be achieved.
• This is because when the number of bit, n is increased, the
number of quantization level, L also increase and the step
size, ∆ will become smaller.
• When the step size become smaller, the amplitude difference
(gap) between sampled signal and quantized signal could be
minimized (or maybe no gap) which results in smaller errors.
97
Qe, SQR and BIT RATE
• Thus, the recovery original signal is more accurate when
the quantization errors are reduced.
• In conclusion, the quality of sampled PAM signal can be
improved by using a PCM code with more bits, n. BUT, the
more bits will introduce higher bit rate.
• Bit Rate is the number of bits transmitted during one
second and is expressed in bits per second (bps).
• The Bit Rate for PCM could be found from the formula;
Bit Rate = fS x n fS = sampling rate
n = number of bits per sample
98
BIT RATE
EXAMPLE 2.7
We want to digitize the human voice. What is the bit rate,
assuming 8 bits per sample?
99
EXERCISE 1
A signal has a bandwidth of 10 Mhz. The signal is sampled, quantize
and binary coded to obtain a pulse-code modulated (PCM) signal. The
signal is sampled at the Nyquist sampling rate.
100
101
3. ENCODING
• Definition : Encoding is a process of translating the quantized
signal into a decimal code number. Then this decimal code
number is converted to its representative binary sequence.
102
3. ENCODING
• The Decimal Code Number for each quantization level is
converted to its representative binary sequence by using
Binary Code or Grey Code or Folded Binary Code.
Code Number Binary Code Gray Code
7 111 110
6 110 111
5 101 101
4 100 100
3 011 000
2 010 001
1 001 011
0 000 010
• The essential features of binary PCM are shown in Figure 2.14
103
3. ENCODING
Binary Quantized signal Sampled signal
code
111
110
101
100
011
010
001
000
Figure 2.14
104
3. ENCODING
• From figure 2.14 above, we assign the decimal code
number 0 to the level -3.5V, the code number 1 to level -
2.5V, and so on until level +3.5V.
• Each decimal code number (0 - 7) has its own 3 bits
binary code representation, ranging from 000 for code
number 0 to 111 for code number 7.
105
Example 2.8
Encode the following quantized signal and find the
quantization error for each samples.
4V
3.94
3.24
3V
2.2
2V
1.5
1V
0V
-1.2
-1V
-1.22 -1.1 -1.88
-1.88
-2V
-2.26
-3V
-4V
Figure 2.15
106
Solution Example 2.8
3.5V 3.94
3.24
2.5V 2.2
1.5V 1.5
0.5V
-0.5V
-1.2
-1.5V -1.22 -1.1
-1.88
-2.5V -2.26
-0.5V
-0.28
107
EXERCISE 1
Q. Encode the following Quantized signal
step size is
distributed evenly
Solution:
No. of level, L = 16
Therefore, no. of bits
for each level is
n = log2 L
n = log2 (16)
n = 4 bits
Figure 2.16
108
EXERCISE 2
A signal in the frequency range 300-3400Hz is limited to a peak swing of 8V. The
signal is sampled using a minimum sampling rate for digital transmission and the
samples are quantize to 8 evenly space level. Calculate the frequency sampling,
the step size value, transmission bit rate, and the signal to quantization noise
power ratio (SQR). Transfer each of the quantize signal in figure below into a code
word and serial bit.
PCM DECODER
• According to Figure 2.8, to recover an analog signal from
a digitized signal we follow the following steps:
1. We use a decoder and hold circuit that holds the
amplitude value of a pulse till the next pulse arrives.
This will produce a staircase PAM signal.
4.110
Figure 2.8 Block Diagram of PCM Decoder (Receiver)
PAM signal
Decoder
& Hold
111
PCM DECODER
• If the original info signal is sampled at (or greater than)
Nyquist Sampling Rate AND if there are enough
Quantization levels, the original signal would be
recovered back with less distortion.
112
Differential PCM (DPCM) &
Adaptive Differential PCM (ADPCM)
113
DIFFERENTIAL PCM
• In a typical PCM-encoded speech (human voice)
waveform, the successive samples signal has a little
difference of amplitude between two sampled signal.
• This necessitates transmitting several identical(same) PCM
codes, which is redundant.
Prediction
Error Figure 2.17: DPCM Transmitter
116
2.14 Know and understand Digital Modulation
2.15 Apply the digital modulation techniques
117
DIGITAL MODULATION
118
DIGITAL MODULATION
119
Figure 2.19 Digital-to-analog conversion
120
Figure 2.20 Types of Digital Modulation
Digital Modulation
121
DIGITAL MODULATION
122
Digital Modulation Techniques
Carrier signal
fC
Data
ASK
f0 f1
FSK
PSK
125
Figure 2.22: Implementation of binary ASK
126
Frequency Shift Keying (FSK)
• As the binary input signal changes from a logic 0 to a logic 1 and vice
versa, the output frequency shifts between two frequencies: logic 1 -
frequency (f1) and logic 0 - frequency (f0).
127
Figure 2.23: Binary Frequency Shift Keying
128
Figure 2.24: Implementation of binary FSK
129
Phase Shift Keying (PSK)
130
Phase Shift Keying (PSK)….cont
132
Figure 2.26 Implementation of BPSK
133
REFERENCES
• Wayne T. (2004). Electronic Communication Systems:
Fundamentals Through Advance (6th ed.). Prentice Hall. ISBN-
10: 0130453501 or ISBN-13: 9780130453501
• M. Forouzan, B.A. (2012). Data Communications and
Networking (5th ed). Mc Graw Hill. (ISBN: 978-0-07-131586-
9)
• Hwei Hsu (2002). Schaum’s Outline of Theory and Problems
of Analog and Digital Communications (2nd ed). McGraw-Hills.
ISBN-10: 0071402284. ISBN-13: 978-0071402286
• Miller, Gary M. (2008). Modern Electronic Communication
(9th ed.). Prentice Hall. ISBN: 0-13-225113-2.
134