


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



College of Engineering Electrical Engineering and Computer Sciences Department
145M Microcomputer Interfacing Lab
Final Exam Solutions May 23, 1997
1a The transparent latch input and output are digital while the sample and hold amplifier input and output are analog. Both have similar control lines whose state determines whether the output is equal to the input or held at its last value. [1 point off for describing both but not stating what is different] [4 points off for describing both without mentioning analog or digital] [4 points off for stating that the transparent latch is always transparent but the S/H can be either sample or hold]
1b D/A differential linearity error is the difference between output voltage step sizes and the average step size. D/A relative accuracy error is the difference between output voltage (as a function of input number) and a straight line passing through the minimum and maxi- mum values (end points). [5 points off for defining differential linearity error as relative accuracy error and defining relative accuracy error as absolute accuracy error]
1c Frequency aliasing is caused by insufficient sampling and causes frequencies above one- half the sampling frequency to appear as lower frequencies. Spectral leakage is caused by sampling a non-integer number of cycles, which produces a discontinuity at the edges of the sampling window, which adds erroneous contributions to many Fourier coefficients. (More precisely, the observed Fourier transform is the true Fourier transform convolved with the Fourier transform of the sampling window)
2a DS, SD
2b TR, SA, HF, SD
2c FL
2d SA or SD
2e SA, HF
3a 1. increasing the sampling frequency fs will increase the Nyquist limit f max = fs /2, allowing the sampling of higher frequencies without aliasing
3b 5. Increasing the sampling time S decreases the frequency resolution ∆ f = 1/ S.
3c 4. Adding a Hanning window will reduce spectral leakage
4a
Start Conversion
Counter/ Timer
Parallel Input Port
A/D Converter
10 μ- computer Data Ready Strobe
Input data available
A/D output data S/H amp
12-pole Butterworth LPF
Analog input
Successive approximation 10-bit
83 kHz
[2 points off for not specifying the type of A/D converter] [4 points off for not using the timer to control the conversion rate]
4b
1 Counter/timer generates an external pulse “start conversion” 2 The counter/timer pulse also puts the S/H in hold mode 3 A/D converter converts analog data 4 A/D converter asserts data on its output lines 5 A/D converter signals “data ready” 6 S/H goes back to sample mode 7 Program detects “data ready” 8 Program reads data
4c A 12-stage Butterworth filter has a gain = 0.999 at f 1 /fc = 0.772. Since we want 0.1% accuracy for all frequencies at or below 18 kHz, f 1 = 18 kHz, and fc = 18 kHz / 0.772 = 23.3 kHz.
4d A 12-stage Butterworth filter has a gain = 0.001 at f 2 /fc = 1.778. With fc = 23.3 kHz, f 2 = (23. kHz) (1.778) = 41.5 kHz. So the filter reduces all frequencies above 41.5 kHz below 0.1% of their amplitude, as desired, and we must sample at twice this frequency, or 83 kHz. [4 points off for fs = 18 kHz x 2] [4 points off for fs = 2 fc]
4e Without a Hanning window, the fre- quency resolution ∆f must be no more than 0.5 Hz to resolve equal harmonic compo- nents separated by 1 Hz. (If ∆f = 1 Hz, it will be impossible to see a valley between two equal harmonics separated by 1 Hz.) With a Hanning window, however, neigh- boring Fourier coefficients can have as much as 1/2 the amplitude, so ∆f = 0.33 Hz would be necessary to observe a valley between two equal harmonics separated by 1 Hz. So the sampling window must be at least 3 s long. Fourier index
0 1 2 3 4 5 6 7 8 9
1 Hz
[4 points off for S = 1 s]
145M Final Exam Grades:
Problem 1 2 3 4 5 Total Average* 23.6 22.5 26.4 48.9 31.1 152. rms* 3.0 2.3 2.6 5.2 12.9 16. Maximum 30 30 30 60 50 200
145M Numerical Grades (9 passing undergraduates only):
Lab total Lab Partic. Midterm #1 Midterm #2 Final Total Average 449.9 100 76.7 73.9 156.1 856. rms 27.1 0 12.2 10.6 12.7 41. Maximum 500 100 100 100 200 1000
145M Letter Grade Distribution (passing students only)
Letter Grade Course Totals (1000 max) A+ 923.0, 922.5(G), A 915.5, 904.0(G) A– 878.5, 870.0(G), 859. B+ 838.0, 835.0, 833.5, 828. B 798. B– none
(G) = graduate student