LABEX5
LABEX5
Section:
Laboratory Exercise 5
DIGITAL PROCESSING OF CONTINUOUS-TIME SIGNALS
5.1 THE SAMPLING PROCESS IN THE TIME-DOMAIN
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
Q5.1 The plots of the continuous-time signal and its sampled version generated by running Program
P5_1 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q5.4 The plots of the continuous-time signal and its sampled version generated by running Program
P5_1 for the following four values of the sampling period are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q5.5 The plots of the continuous-time sinusoidal signal of frequency 3 Hz and its sampled version
generated by running a modified Program P5_1 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The plots of the continuous-time sinusoidal signal of frequency 7 Hz and its sampled version
generated by running a modified Program P5_1 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Answers:
Q5.6 The plots of the discrete-time signal and its continuous-time equivalent obtained by running
Program P5_2 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The plot generated by running Program P5_2 again with the range of t changed so as to
display the full range of ya(t) is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q5.8 The plots of the discrete-time signal and its continuous-time equivalent obtained by running
Program P5_2 with the original display range restored and with the frequency of the sinusoidal
signal changed to 3 Hz are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The plots of the discrete-time signal and its continuous-time equivalent obtained by running
Program P5_2 with the original display range restored and with the frequency of the sinusoidal
signal changed to 7 Hz are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q5.11 The plots generated by running Program P5_3 with sampling period increased to 1.5 are shown
below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q5.12 The modified Program P5_3 for the case of is given below:
< Insert program code here. Copy from m-file(s) and paste. >
The plots generated by running the modified Program P5_3 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The plots generated by running the modified Program P5_3 with sampling period increased to
1.5 are shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
< Insert program code here. Copy from m-file(s) and paste. >
Answers:
Q5.14 The gain response obtained by running Program P5_4 is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Based on this plot we conclude that the filter designed _______ the given specifications.
Q5.15 The required modifications to Program P5_4 to design a Type 1 Chebyshev lowpass filter
meeting the same specifications are given below:
< Insert program code here. Copy from m-file(s) and paste. >
The gain response obtained by running the modified Program P5_4 is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Based on this plot we conclude that the filter designed _______ the given specifications.
Q5.16 The required modifications to Program P5_4 to design a Type 2 Chebyshev lowpass filter
meeting the same specifications are given below:
< Insert program code here. Copy from m-file(s) and paste. >
The gain response obtained by running the modified Program P5_4 is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Based on this plot we conclude that the filter designed _______ the given specifications.
< Insert program code here. Copy from m-file(s) and paste. >
The gain response obtained by running the modified Program P5_4 is shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Based on this plot we conclude that the filter designed _______ the given specifications.
Answers:
Q5.19 The binary equivalents in sign-magnitude form of the decimal fractions are:
(a)
(b)
(c)
(d)
Answer:
Q5.20 The decimal equivalents of the binary fractions along with the errors in conversion are as
follows:
(a) 0.796875 (error=0.004775); 0.80078125 (error=0.00086875)
(b) -0.796875 (error=-0.004775); -0.80078125 (error=-0.00086875)
(c) 0.640625 (error=0.002705); 0.64062500 (error=0.002705)
(d) -0.90625 (error=-0.00625); -0.91015625 (error=-0.00234375)
Answers:
Q5.21 The function of the operator ~= is - Toán tử “~” thực hiện phép đảo theo bit. Nó biến mỗi “bit 0”
thành “bit 1” và mỗi “bit 1” thành “bit 0”.
Q5.22 The ones'-complement representations of the binary numbers developed in Question Q5.19 are
as follows:
(a) 0 1 1 0 0 1 1; 0 1 1 0 0 1 1 0 1
(b) 1 0 0 1 1 0 0; 1 0 0 1 1 0 0 1 0
(c) 0 1 0 1 0 0 1; 0 1 0 1 0 0 1 0 0
(d) 1 0 0 0 1 0 1; 1 0 0 0 1 0 1 1 0
Q5.23 The function of the operator | is – “|” toán tử thực hiện phép toán OR logic theo bit trên toán
hạng của nó.
The function of the operator & is – Toán tử “&” thực hiện phép toán AND logic theo bit trên các
toán hạng của nó.
Q5.24 The two's-complement representations of the binary numbers developed in Question Q5.19 are
as follows:
(a) 0 1 1 0 0 1 1; 0 1 1 0 0 1 1 0 1
(b) 1 0 0 1 1 0 1; 1 0 0 1 1 0 0 1 1
© 0 1 0 1 0 0 1; 0 1 0 1 0 0 1 0 0
(d) 1 0 0 0 1 1 0; 1 0 0 0 1 0 1 1 1
Answer:
Q5.25 The MATLAB program to determine and plot the magnitude responses of the uncompensated
and the droop-compensated D/A converters is given below:
% Program Q5_25.m
T = 1.0;
wa = 0: (pi/T)/511: (pi/T);
Hza = zeros(1,Lwa);
Hza(1) = 1;
wa2 = wa (2:Lwa);
MagHfiraComp = abs(HfiraComp);
GainHfiraComp = 20*log10(MagHfiraComp);
MagHiiraComp = abs(HiiraComp);
GainHiiraComp = 20*log10(MagHiiraComp);
xlabel('Frequency');
ylabel('Gain, dB');
From this plot we make the following observations: Cả DACS bù FIR và IIR đều có cải tiến
đáng kể về mặt giảm độ võng của DAC không bù. Độ lớn phổ của DAC bù IIR phẳng hơn một
chút trong dải thông và giảm chậm hơn một chút so với DAC bù FIR.
Date: Signature: