Docsity

Successive Approximation - Introductory Microcomputer Interfacing Laboratory - Solved Exam, Exams of Microcomputers

Toggle sidebar
bg1
April 17, 2000 page 1 S. Derenzo
Solutions for Midterm #2 - EECS 145M Spring 2000
PROBLEM 1
1a Flash
1b Successive approximation
1c Integrating or dual slope
1d Successive approximation
PROBLEM 2
2a Non-zero amplitudes would be expected at H4m and HM–4m, for each harmonic m of the
primary frequency 1/P present in h(t).
h(t)
h(t)
h(t)
h(t)
0P2P3P S=4P
[4 points off if no mention of harmonics] [8 points off for H0 and H1 only] [5 points off for H0,
H4 and H8 only]
2b. The Fourier amplitudes HM/8 and H7M/8 would change.
2c. Due to spectral leakage, all Fourier amplitudes would be non-zero, but the largest Hn would
be at frequency indices near n = 3.5m and n = M - 3.5m.
2d. The Hanning window would reduce the spectral leakage and the non-zero Fourier amplitudes
Hn would be at the 2 or 3 frequency indices near n = 3.5m and n = M - 3.5m.
PROBLEM 3
3a v = 3 m/s f = 100 kHz (1 + 3/300) = 101,000 Hz
v = 30 m/s f = 100 kHz (1 + 30/300) = 110,000 Hz
v = 30.3 m/s f = 100 kHz (1 + 30.3/300) = 110,100 Hz
v = 60 m/s f = 100 kHz (1 + 60/300) = 120,000 Hz
The exact calculation gives 101,010; 111,111; 111,235; and 125,000 Hz; both were OK.
3b ∆f = 100 Hz, so the minimum length of the sampling window must be S = 1/∆f = 0.01 s
3c The spectral leakage from 100 kHz to 101 kHz will be severe, so a Hanning window would
be useful in nearly eliminating it. Since there is only one echo frequency to worry about, the
broadening caused by the Hanning window will still allow the echo frequency to be
determined to within one Fourier frequency index, to a resolution of ∆f = 100 Hz. So there is
no need to increase S.
An alternative, a precise number of 100 kHz cycles could be sampled. The much smaller echo
signal would still have spectral leakage, but that would be OK.
Another alternative was to subtract 1 V 100 kHz from the echo signal.
3d The maximum signal frequency is 120 kHz at 60 m/s, so we would want the Butterworth filter
to pass all frequencies below f1 = 120 kHz.
It was allowed to let the filter fc = 120 kHz and solve for f1≈ 90 kHz
[4 points off for f1 = 60 kHz, which would cause the filter to reject the signal at 2 f1 = 120
kHz.]
3e The low pass filter accepts frequencies below f1 = 120 kHz and rejects frequencies above f2 =
240 kHz. So the minimum sampling frequency fs = f1 + f2 = 360 kHz
fs = 2 f2 = 480 kHz was also accepted.
[3 points off for fs = 2 f1, which would alias all frequencies between f1 and 2 f1 onto the
range from 0 to f1.]
pf2

Partial preview of the text

Download Successive Approximation - Introductory Microcomputer Interfacing Laboratory - Solved Exam and more Exams Microcomputers in PDF only on Docsity!

April 17, 2000 page 1 S. Derenzo

Solutions for Midterm #2 - EECS 145M Spring 2000

PROBLEM 1

1a Flash 1b Successive approximation 1c Integrating or dual slope 1d Successive approximation

PROBLEM 2 2a Non-zero amplitudes would be expected at H 4 m and H M–4 m , for each harmonic m of the primary frequency 1/ P present in h ( t ).

h ( t ) h ( t ) h ( t ) h ( t )

(^0) P 2 P 3 P S =4 P

[4 points off if no mention of harmonics] [8 points off for H 0 and H 1 only] [5 points off for H 0 , H 4 and H 8 only]

2b. The Fourier amplitudes H M /8 and H 7 M /8 would change. 2 c. Due to spectral leakage, all Fourier amplitudes would be non-zero, but the largest Hn would be at frequency indices near n = 3.5 m and n = M - 3.5 m. 2d. The Hanning window would reduce the spectral leakage and the non-zero Fourier amplitudes H n would be at the 2 or 3 frequency indices near n = 3.5 m and n = M - 3.5 m.

PROBLEM 3 3a v = 3 m/s f = 100 kHz (1 + 3/300) = 101,000 Hz v = 30 m/s f = 100 kHz (1 + 30/300) = 110,000 Hz v = 30.3 m/s f = 100 kHz (1 + 30.3/300) = 110,100 Hz v = 60 m/s f = 100 kHz (1 + 60/300) = 120,000 Hz The exact calculation gives 101,010; 111,111; 111,235; and 125,000 Hz; both were OK. 3b ∆f = 100 Hz, so the minimum length of the sampling window must be S = 1/∆ f = 0.01 s 3c The spectral leakage from 100 kHz to 101 kHz will be severe, so a Hanning window would be useful in nearly eliminating it. Since there is only one echo frequency to worry about, the broadening caused by the Hanning window will still allow the echo frequency to be determined to within one Fourier frequency index, to a resolution of ∆f = 100 Hz. So there is no need to increase S. An alternative, a precise number of 100 kHz cycles could be sampled. The much smaller echo signal would still have spectral leakage, but that would be OK. Another alternative was to subtract 1 V 100 kHz from the echo signal. 3d The maximum signal frequency is 120 kHz at 60 m/s, so we would want the Butterworth filter to pass all frequencies below f 1 = 120 kHz. It was allowed to let the filter fc = 120 kHz and solve for f 1 ≈ 90 kHz [4 points off for f 1 = 60 kHz, which would cause the filter to reject the signal at 2 f 1 = 120 kHz.] 3e The low pass filter accepts frequencies below f 1 = 120 kHz and rejects frequencies above f 2 = 240 kHz. So the minimum sampling frequency f s = f 1 + f 2 = 360 kHz fs = 2 f 2 = 480 kHz was also accepted. [3 points off for fs = 2 f 1 , which would alias all frequencies between f 1 and 2 f 1 onto the range from 0 to f 1 .]

April 17, 2000 page 2 S. Derenzo

3f Sampling at 360 kHz for 0.01138 s (just above the minimum S value from part 3b) would produce 4096 samples. (480 kHz would require 8192 samples.) [1 point off if not a power of two] 3g The echo is 100 times smaller than the 100 kHz tone and the white noise is 10 times smaller than the peak echo. The low pass filter falls off as 1/f^8. [2 points off if no FFT frequency index] [2 points off if no frequency scale in Hz] [2 points off if white noise not shown] [4 points off if primary tone or echo not shown] [3 points off for blank vertical scale] [2 points if vertical scale is not numbered] [2 points off if effect of filter not shown]

0 1024 2048 3072 4095 n

1000

100

1

10 1/f^8

0 90 180 90 0. kHz

primary tone

echo

white noise

FFT magnitude (relative scale)

100 kHz

110 kHz

Midterm #2 class statistics:

Problem max average rms 1 20 14.8 2. 2 35 24.3 7. 3 45 38.9 3. total 100 78.0 9.

Grade distribution:

Range number approximate letter grade 56-60 1 C 61-65 1 C+ 66-70 1 B- 71-75 2 B 76-80 3 B+ 81-85 4 A- 86-90 2 A 91-95 1 A+ 96-100 0 A+