Arbitrary Waveform - Introductory Microcomputer Interfacing Laboratory - Solved Exam, Exams of Microcomputers

Main points of this past exam are: Arbitrary Waveform, Periodically Sampling, Causes Frequency, Aliasing, Periodically Sampling, Computing, Fourier

Typology: Exams

2012/2013

Uploaded on 03/22/2013

saryu
saryu 🇮🇳

4.3

(4)

42 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
145M April 16, 2008 page 1 S. Derenzo
`Solutions for Midterm #2 - EECS 145M Spring 2008
1.1 Frequency aliasing is caused by sampling at a frequency fs that is less than twice the highest
frequency fmax in the waveform.
It may be avoided by using an analog low-pass filter to eliminate frequencies above fs/2.
[4 points off for increasing the sampling frequency, since fmax is not known]
1.2 Spectral leakage is caused when frequency components are not sampled for a whole number
of cycles, which results in a discontinuity between the last sample and the “next sample”,
which is also the first sample.
It is avoided by multiplying the sampled values by a windowing function that has zero value
and zero slope at the ends of the sampling window.
[3 points off for a solution that samples for a longer time- this does not eliminate the
discontinuity and long-range spectral leakage will still occur]
[3 points off if the only answer is to sample for an integer number of cycles- nothing is
known about the frequency components present]
2.1 H(f) can only be non-zero at multiples of the repeat frequency = n/P
[4 points off for describing or sketching only the first harmonic]
2.2 All the components in the Fourier integral have periods that are integer multiples of P, so
integrating from 0 to P is all that is necessary.
H(f)=h(t)g(t)dt g(t)=exp(j2
π
nt /P)
Multiply and integrate
h(t)
g(t) g(t+P/2) = g(t)
h(t+P/2) = -h(t)
0P/2 P
g(t) = exp(-j2!nt/P)
For n even, g(t+P/2) = exp(-j2!n[t+P/2]/P) = exp(-j2!nt/P-j2!n/2) = exp(-j2!nt/P) = g(t)
For even n, the harmonic factor exp(-j2!nt/P) is the same in the interval from t = 0 to P/2 as it is
in the interval from t = P/2 to P. However, h(t) has the opposite sign from t =0 to P/2 as it does
from t = P/2 to P and the two inner products cancel.
[Full credit for showing that the integral from 0 to P could be split into two integrals that
cancel][4 exams out of 17 had part 2.2 correct]
[5 points off for a valiant but incomplete attempt]
[the most common approach was to integrate both h(t)g(t) and h(t+P/2)g(t+P/2) from 0 to P,
without following up with a convincing argument that each was zero for even n.]
pf2

Partial preview of the text

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

145M April 16, 2008 page 1 S. Derenzo `Solutions for Midterm #2 - EECS 145M Spring 2008 1.1 Frequency aliasing is caused by sampling at a frequency fs that is less than twice the highest frequency fmax in the waveform. It may be avoided by using an analog low-pass filter to eliminate frequencies above fs/2. [4 points off for increasing the sampling frequency, since fmax is not known] 1.2 Spectral leakage is caused when frequency components are not sampled for a whole number of cycles, which results in a discontinuity between the last sample and the “next sample”, which is also the first sample. It is avoided by multiplying the sampled values by a windowing function that has zero value and zero slope at the ends of the sampling window. [3 points off for a solution that samples for a longer time- this does not eliminate the discontinuity and long-range spectral leakage will still occur] [3 points off if the only answer is to sample for an integer number of cycles- nothing is known about the frequency components present] 2.1 H(f) can only be non-zero at multiples of the repeat frequency = n/P [4 points off for describing or sketching only the first harmonic] 2.2 All the components in the Fourier integral have periods that are integer multiples of P, so integrating from 0 to P is all that is necessary.

H ( f ) = ∫ h ( t ) g ( t ) dt g ( t ) = exp(− j 2 π nt / P )

Multiply and integrate h(t) g(t) (^) g(t+P/2) = g(t) h(t+P/2) = -h(t) 0 P/2 P g ( t ) = exp(-j2! nt / P ) For n even, g ( t + P /2) = exp(-j2! n [ t + P /2]/ P ) = exp(-j2! nt / P -j2! n /2) = exp(-j2! nt / P ) = g ( t ) For even n , the harmonic factor exp(-j2! nt / P ) is the same in the interval from t = 0 to P /2 as it is in the interval from t = P /2 to P. However, h ( t ) has the opposite sign from t =0 to P /2 as it does from t = P /2 to P and the two inner products cancel. [Full credit for showing that the integral from 0 to P could be split into two integrals that cancel][4 exams out of 17 had part 2.2 correct] [5 points off for a valiant but incomplete attempt] [the most common approach was to integrate both h ( t ) g ( t ) and h ( t + P /2) g ( t + P /2) from 0 to P , without following up with a convincing argument that each was zero for even n .]

145M April 16, 2008 page 2 S. Derenzo 3.1 Need to show Butterworth filter, S/H amplifier, A/D, timer, computer [2 points off for each missing component] G 1 = 0.99 f 1 /fc = 0.823, fc = 10 kHz/0.823 = 12.15 kHz 3.2 G 2 = 0.001 f 2 /fc = 1.995; f 2 = 24.24 kHz fs > f 1 + f 2 = 34.24 kHz [3 points off for fs > 2fc = 24 kHz. This is not sufficient] [5 points off for fs > 2f 1 = 20 kHz. This assumes a perfect rejection above 10 kHz. 3.3 T = 1/(f * 217 * !) = 1/(10 kHz * 131,072 * 3.1416)= 0.24 ns [2 points off for a minor numerical error] [5 points off for not solving for T] 3.4 For S = 0.4 s, ∆f = 2.5 Hz. [S = 0.3 to 0.5 seconds was accepted for full credit] [5 points off for S = 0.1 seconds] [3 points off for S = 0.2 seconds] 3.5 34.24 kHz x 0.4 sec = 13,696 (next power of 2 is 16,384). 3. Set counter to sample A/D for 0.4 sec at 34.24 kHz Start sampling output of Butterworth filter When done, multiply samples by Hann window Take FFT [2 points off for no Hann or similar window] [2 points off for not giving the frequency that corresponds to Hn ] Each Fourier frequency component Hn corresponds to 2.5xn Hz. EECS145M Midterm #2 class statistics: Problem max average rms 1 20 19.5 1. 2 20 13.5 3. 3 60 51.5 6. total 100 84.6 8. Grade distribution: Range number approximate letter grade 65-69 1 C+ 70-74 1 B- 75-79 3 B 80-84 1 B+ 85-89 8 A- 90-94 1 A 95-99 2 A+ 100 0 A+