770 likes | 1.36k Views
Chapter 4. Digital Processing of Continuous-Time Signals. Outline. Sampling of Continuous-Time Signals Recovery of Analog Signals Implication of the Sampling Process Sampling of Bandpass Signals Analog Lowpass Filter Design. 4.1 Introduction.
E N D
Chapter 4 Digital Processing of Continuous-Time Signals
Outline • Sampling of Continuous-Time Signals • Recovery of Analog Signals • Implication of the Sampling Process • Sampling of Bandpass Signals • Analog Lowpass Filter Design
4.1 Introduction • Digital processing of a continuous-time signal involves the following basic steps: (1) Conversion of the continuous-time signal into a discrete-time signal; (2) Processing of the discrete-time signal; (3) Conversion of the processed discrete-time signal back into a continuous-time signal.
Some concepts: 1. ADC: Analog-to-Digital Converter 2. DAC: Digital-to-Analog Converter 3. S/H : Sample-and-Hold (circuit). 4. Anti-aliasing filter. 5. Reconstruction or interpolation filter.
(a) (b) t t t t t t 0 0 0 0 0 0 T T 4.2 Sampling of Continuous-Time Signals Ideal sampling models
4.2.1 Effect of Sampling in the Frequency Domain • When τ« T, p(t)~δT(t); so we firstly discuss ideal sampling: The output of ideal sampling is: (1)In time domain:
(2)In frequency domain: If given: Then:
… … 0 0 … … 0 The frequency procedure of sampling • Gp(jΩ) is a periodic function of Ω consisting of a sum of shifted and scaled replicas of Ga(jΩ) , shifted by integer multiples of ΩT and scaled by 1/T.
Assume ga(t) is a band-limited signal with a CTFT Ga(j) as shown below: • The spectrum P(j) of p(t) having a sampling period T=2/T is indicated below:
It is evident from the top figure on the previous slide that if T>2 m , there is no overlap between the shifted replicas of Ga(j) generating Gp(j); • On the other hand, as indicated by the figure on the bottom, if T<2 m , there is an overlap of the spectra of the shifted replicas of Ga(j) generating Gp(j).
Sampling theorem • Let ga(t) be a band-limited signal with CTFT Ga(j)=0 for | |> m , Then ga(t) is uniquely determined by its samples ga(nT) , -n if T 2 m , whereT=2/T. • The condition T 2 m is often referred to as the Nyquist condition. • The frequency T/2 is usually referred to as the folding frequency.
The highest frequency m contained in ga(t) is usually called the Nyquist frequency since it determines the minimum sampling frequency T =2m that must be used to fully recover ga(t) from its sampled version. • The frequency 2m is called the Nyquist rate.
Oversampling - The sampling frequency is higher than the Nyquist rate; • Undersampling - The sampling frequency is lower than the Nyquist rate; • Critical sampling - The sampling frequency is equal to the Nyquist rate; • Note: A pure sinusoid may not be recoverable from its critically sampled version.
Examples • In digital telephony, a 3.4 kHz signal bandwidth is acceptable for telephone conversation; • Here, a sampling rate of 8 kHz, which is greater than twice the signal bandwidth, is used. • In high-quality analog music signal processing, a bandwidth of 20 kHz has been determined to preserve the fidelity; • Hence, in compact disc (CD) music systems, a sampling rate of 44.1 kHz, which is slightly higher than twice the signal bandwidth, is used.
Example4.1 Consider the three continuous-time sinusoidal signals: • Their corresponding CTFTs are:
These continuous-time signals sampled at a rate of T = 0.1 sec, i.e., with a sampling frequency T =20 rad/sec • The sampling process generates the continuous-time impulse trains, g1p(t), g2p(t) , and g3p(t) • Their CTFTs are given by:
And • These figures also indicate by dotted lines the frequency response of an ideal lowpass filter with a cutoff at c=T/2=10 and a gain T=0.1. • In fact, the 3 discrete-time sinusoidal signals are:
The Relationship BetweenG(ejw) and Gp(jΩ) • We now derive the relation between the DTFT of g[n] and the CTFT of gp(t) • To compare: with And make use of g[n]=ga(nT), -∞<n<∞
Observation: We have G(ejω)=Gp(jΩ)|Ω=ω/T Or, equivalently, Gp(jΩ)=G(ejω)|ω=ΩT From the above observation and
The relation derived on the previous slide can be alternately expressed as From Or from It follows that G(ejω) is obtained from Gp(jΩ) by applying the mapping Ω=ω/T ★
Now, the CTFT Gp(j W) is a periodic function of W with a period WT = 2p/T • Because of the mapping, the DTFT G(ej) is a periodic function of w with a period 2p
Supplement: The practical sampling • In practical condition, p(t) is a periodic rectangle impulse with τ-width . If the τ and T are fixed, then when k varies, the magnitude of Ck varies with:
0 0 Supplement: The practical sampling • So we can see, in practical sampling, use Ck to substitute Ak, but Ck is varying.
4.2.2 Recovery of the Analog Signal By filtering in frequency domain or interpolation in time domain, the continuous signal can be recovered from The Sampled Discrete signal. • Here, the filter is called reconstruction filter or interpolation filter or smoothing filter.
The spectra of the filter and pertinent signals are shown below:
If T>2 m , ga(t) can be recovered exactly from gp(t) by passing it through an ideal lowpass filter Hr(j) with a gain T and a cutoff frequency c greater than m and less than T - m; • On the other hand, if T< 2 m , due to the overlap of the shifted replicas of Ga(j) , the spectrum Gp(j) cannot be separated by filtering to recover Ga(j). The distortion caused by a part of the replicas outside the baseband folded back or aliased into the baseband.
We now derive the expression for the output of the ideal lowpass reconstruction filter Hr(j) as a function of the samples g[n]. ^ • The impulse response hr(t) of the ideal lowpass reconstruction filter is obtained by taking the inverse DTFT of Hr(j)
Thus, the impulse response is given by • The input to the lowpass filter is the impulse traingp(t):
Therefore, the output of the ideal lowpass filter is given by: ^ ^ ^ * Applying hr(t)=sin(ct)/(Tt/2), and assuming: c= T/2= /T , we get:
^ is called Poisson sum formula or interpolation formula.
4.3 Sampling of Bandpass Signals • The conditions developed earlier for the unique representation of a continuous-time signal by the discrete-time signal obtained by uniform sampling assumed that the continuous-time signal is bandlimited in the frequency range from DC to m ---lowpass signal. • There are continuous-time signals which are bandlimited to a higher frequency range L || H with L >0 --- bandpass signals.
To prevent aliasing a bandpass signal can of course be sampled at a rate greater than twice the highest frequency, i.e. by ensuring T2 H • However, due to the bandpass spectrum of the continuous-time signal, the spectrum of the discrete-time signal obtained by sampling will have spectral gaps with no signal components present in these gaps. • Moreover, if H is very large, the sampling rate also has to be very large which may not be practical in some situations.
Let = H - L define the bandwidth of the bandpass signal. • Assume:H= M() • We choose the sampling frequency T to satisfy the condition: T= 2() = 2H/M • T is smaller than 2H , the Nyquist rate undersampling
As before, Gp(j) consists of a sum of Ga(j) and replicas of Gp(j) shifted by integer multiples of twice the bandwidth DW and scaled by 1/T; • The amount of shift for each value of k ensures that there will be no overlap between all shifted replicas. no aliasing
0 0 • Figure below illustrate the idea:
Discuss: (1)If ga(t) is bandlimited with its frequency band in (fL, fH) . (2)If using sampling rate: Where, n is a maximum integer which meets fs>=2(fH-fL)=2B (n = 0,1,2……) Then, the sampled signal ga(nTs) can be used to represent original signal ga(t).
Note: • Before band-sampling, the signal in only one frequency-band can be permitted. • For lowest sampling rate, that is fs=2B, the signal center frequency f0 should be:
The band-sampling result is moving the signal in the frequency band of (nB, (n+1)B)(n=0,1,2,…) to the frequency band of (0, B). • When n is odd number, the relationship between them is reversal; while n is even, the relationship is opposite.
As can be seen, ga(t) can be recovered from gp(t) by passing it through an ideal bandpass filter with a passband given by L || H and a gain of T. • Note: Any of the replicas in the lower frequency bands can be retained by passing through bandpass filters with passbands L- k() || H- k() , 1k M-1providing a translation to lower frequency ranges.
4.4 Analog Lowpass Filter Design • Filter specifications • Several kinds of analog filters (1) Butterworth approximation (2) Chebyshev approximation:Type1 and Type2 (3) Elliptic approximation • Analog filter design using MATLAB • Design of analog Highpass, Bandpass and Bandstop filters
Analog Lowpass Filter Specifications • In the passband, defined by 0 p , we require 1-p |Ha(j)| 1+ p , || p i.e., |Ha(j)| approximates unity within an error of p • In the stopband, defined by s , we require |Ha(j)| s s i.e., |Ha(j)| approximates zero within an error of s
dB dB Analog Lowpass Filter Specifications • p - passband edge frequency • s - stopband edge frequency • p - peak ripple value in the passband • s - peak ripple value in the stopband • Peak passband ripple • Minimum stopband attenuation
Analog Lowpass Filter Specifications • Magnitude specifications may alternately be given in a normalized form as indicated below
In this situation minimum stopband attenuation : Transtion ratio or selectivity parameter Discrimination parameter Obviously, the smaller the ε is, the better the Ha(jΩ) is.