Digital Representation Sept 4-5-11 12
Digital Representation Sept 4-5-11 12
Digital Representation Sept 4-5-11 12
Signals
Gaurav S. Kasbekar
Dept. of Electrical Engineering
IIT Bombay
Introduction
• Recall: digital communication systems have several advantages
over analog communication systems
❑ former have replaced or are replacing latter in most contexts, e.g.,
cellular networks, TV
• “Analog communication” and “digital communication”:
❑ in practice, all communication is via continuous signals and hence
analog in nature
❑ the message signal that is to be transmitted is either analog or digital
❑ E.g., if the source is speech, then:
o In analog communication, it is directly used to modulate a high-frequency
carrier signal
o In digital communication, it is sampled and quantized to obtain a bit stream,
which is then used to modulate a high-frequency carrier signal
• First step in digital transmission of analog source (e.g., speech,
music) is conversion of source to digital representation
• We now study:
❑ this analog to digital conversion
❑ and representation of the analog information as a sequence of pulses
The Sampling Process
• Sampling is used to convert an analog signal to
sequence of samples that are usually spaced
uniformly in time
• Sampling rate must be chosen carefully, so that:
❑the sequence of samples uniquely defines the original
analog signal
• Sampling theorem tells us how to choose sampling
rate
• We now briefly review the sampling process and
prove the sampling theorem
The Sampling Process (contd.)
• Consider an arbitrary signal 𝑔(𝑡) of finite energy, which is specified for all
time 𝑡
• Suppose 𝑔(𝑡) sampled at uniform rate:
❑ once every 𝑇𝑠 seconds
• Then we obtain an infinite sequence of samples spaced 𝑇𝑠 seconds apart:
❑ denoted by 𝑔 𝑛𝑇𝑠 , where 𝑛 takes on all possible integer values
• We refer to:
❑ 𝑇𝑠 as “sampling period”
❑ and 𝑓𝑠 = 1/𝑇𝑠 as “sampling rate”
• Let:
❑ 𝑔𝛿 𝑡 = σ∞
𝑛=−∞ 𝑔 𝑛𝑇𝑠 𝛿(𝑡 − 𝑛 𝑇𝑠 )
• 𝑔(𝑡) and 𝑔𝛿 𝑡 shown in fig.
• We will show that Fourier transform of sampled
signal 𝑔𝛿 𝑡 is:
1) 𝐺𝛿 𝑓 = 𝑓𝑠 σ∞
𝑚=−∞ 𝐺 𝑓 − 𝑚𝑓𝑠
❑ where 𝐺 𝑓 is Fourier transform of 𝑔(𝑡)
• 1) shows that process of uniformly sampling a
signal 𝑔(𝑡) results in a periodic spectrum with
period equal to the sampling rate
Ref: “Communication Systems” by Haykin and Moher, 5th ed
Proof of the Claim 𝐺𝛿 𝑓 = 𝑓𝑠 σ∞
𝑚=−∞ 𝐺 𝑓 − 𝑚𝑓𝑠
• First, consider a periodic signal 𝑓𝑇0 (𝑡) of period 𝑇0
• We can represent it using Fourier series:
❑ 𝑓𝑇0 𝑡 = σ∞
𝑛=−∞ 𝑐𝑛 exp 𝑗2𝜋𝑛𝑓0 𝑡 , where
1 𝑇0 /2 1
❑ 𝑐𝑛 = 𝑓 𝑡 exp −𝑗2𝜋𝑛𝑓0 𝑡 𝑑𝑡 and 𝑓0 =
𝑇0 −𝑇0 /2 𝑇0 𝑇0
𝑇0 𝑇0
𝑓𝑇0 𝑡 , − ≤𝑡≤ ,
• Let 𝑓 𝑡 = ቐ 2 2
0, else.
❑ So 𝑓𝑇0 𝑡 = σ∞
𝑚=−∞ 𝑓(𝑡 − 𝑚𝑇0 )
• Hence, 𝑐𝑛 :
❑ 𝑓0 𝐹(𝑛𝑓0 ), where
❑ 𝐹(𝑓) is the Fourier transform of 𝑓 𝑡
• Thus:
❑ σ∞ ∞
𝑚=−∞ 𝑓 𝑡 − 𝑚𝑇0 = 𝑓0 σ𝑛=−∞ 𝐹(𝑛𝑓0 )exp 𝑗2𝜋𝑛𝑓0 𝑡
1) So Fourier transform of σ∞
𝑚=−∞ 𝑓(𝑡 − 𝑚𝑇0 ) is:
❑ 𝑓0 σ∞𝑛=−∞ 𝐹(𝑛𝑓0 )𝛿(𝑓 − 𝑛𝑓0 )
• Now, in the sampling context: 𝑔𝛿 𝑡 = σ∞𝑛=−∞ 𝑔 𝑛𝑇𝑠 𝛿(𝑡 − 𝑛 𝑇𝑠 )
• Fourier transform of 𝑔𝛿 𝑡 is 𝐺𝛿 𝑓 = 𝑓𝑠 σ∞
𝑚=−∞ 𝐺 𝑓 − 𝑚𝑓𝑠 by:
❑ Duality theorem and the fact that the 𝛿(. ) function is an even function
• Recall:
1) 𝑔𝛿 𝑡 = σ∞𝑛=−∞ 𝑔 𝑛𝑇𝑠 𝛿(𝑡 − 𝑛 𝑇𝑠 )
The Sampling Process
2) 𝐺𝛿 𝑓 = 𝑓𝑠 σ∞
𝑚=−∞ 𝐺 𝑓 − 𝑚𝑓𝑠
• Taking Fourier transforms on both sides of 1), we get:
3) 𝐺𝛿 𝑓 = σ∞
(contd.)
𝑛=−∞ 𝑔 𝑛𝑇𝑠 exp −𝑗2𝜋𝑛𝑓𝑇𝑠
❑ This relation is called:
o discrete-time Fourier transform
❑ Can be viewed as Fourier series representation of the periodic frequency function 𝐺𝛿 𝑓
• Next, suppose the signal 𝑔(𝑡) is strictly bandlimited:
❑ 𝐺 𝑓 = 0 for 𝑓 ≥ 𝑊
1
• Also, suppose we choose the sampling period 𝑇𝑠 =
2𝑊
• Then by 3), we get:
𝑛 −𝑗𝜋𝑛𝑓
4) 𝐺𝛿 𝑓 = σ∞
𝑛=−∞ 𝑔 exp
2𝑊 𝑊
• Also, by 2), we get:
1
5) 𝐺 𝑓 = 2𝑊 𝐺𝛿 𝑓 , for −𝑊 < 𝑓 < 𝑊
• Substituting 4) into 5), we get:
1 𝑛 −𝑗𝜋𝑛𝑓
6) 𝐺 𝑓 = 2𝑊 σ∞
𝑛=−∞ 𝑔 exp , for −𝑊 < 𝑓 < 𝑊
2𝑊 𝑊
𝑛
• 6) shows that if sample values 𝑔 of signal 𝑔(𝑡) are specified for all 𝑛, then signal 𝑔(𝑡) is completely
2𝑊
determined for all values of 𝑡
• Taking inverse Fourier transform of 6), we get:
𝑛
7) 𝑔 𝑡 = σ∞
𝑛=−∞ 𝑔 2𝑊
sinc(2𝑊𝑡 − 𝑛) for 𝑡 ∈ (−∞, ∞)
• Equation 7) provides an interpolation formula for reconstructing the original signal 𝑔 𝑡 from the sequence
𝑛
of sample values 𝑔
2𝑊
• Thus, we have derived the “Sampling Theorem”, which states the following:
❑ A band-limited signal which only has frequency components in the range −𝑊 < 𝑓 < 𝑊 is completely described by
specifying the values of the signal at instants of time separated by 1/2𝑊 seconds
❑ Such a signal can be completely recovered from a knowledge of its samples taken at the rate of 2𝑊 samples per second
• Sampling rate of 2𝑊 samples per second, for a signal bandwidth of 𝑊 Hz, called Nyquist rate; its reciprocal
1
called Nyquist interval
2𝑊
Aliasing
• In above derivation of sampling theorem, we assumed that signal
𝑔(𝑡) is strictly band-limited
• However, in practice, an information-bearing signal is not strictly
band-limited
❑ so some undersampling occurs
• So sampling process produces some “aliasing” as shown in fig
• To combat the effects of aliasing in
practice:
❑ Prior to sampling, a low-pass filter
used to attenuate those high-
frequency components that are not
essential to information being
conveyed by signal
❑ Filtered signal is sampled at a rate
slightly higher than Nyquist rate
Ref: “Modern Digital and Analog Comm. Systems” by B.P. Lathi and Z. Ding, 4th ed
•
Quantization
Samples of a continuous signal, such as voice, take real values
❑ Hence, infinite number of amplitude levels
• Not necessary to transmit exact amplitudes of the samples
❑ Since human eye or ear, as final receiver, can only detect finite intensity differences
• So original continuous signal can be approximated by a signal constructed of
discrete amplitudes selected from a finite set as shown in fig
• If the discrete amplitude levels are assigned with sufficiently close spacing, then:
❑ approximated signal can be made practically indistinguishable from original continuous
signal
• “Quantization” defined as process of transforming the sample amplitude 𝑚 𝑛𝑇𝑠 of
a message signal 𝑚 𝑡 into a discrete amplitude 𝑣 𝑛𝑇𝑠 taken from a finite set of
possible amplitudes
• When digital communication used to
transmit an analog message source
(e.g., voice), then:
❑ After sampling, message signal is
quantized and then converted into a
sequence of bits