

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this past exam are: Parallel, Output Port, Transparent, Immediately Appears, Program, Input Data Available, Ready For Input Data
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


1a The following are essential:
Start Conversion
Parallel Output Port
Parallel Input Port
D/A Converter
A/D Converter
16
12 μ- computer Data Ready
Analog data
Strobe
Ready for input data
Input data available
A/D output data
D/A input data
1b 1 Set “Ready for input data” low, which makes “Input data available” low 2 Start loop over all values of n from 0 to 2^16 – 1 3 Write n to the D/A converter 4 Write a low, then a high to “Ready for input data” to start A/D conversion 5 Read “Input data available” in a loop until it goes high 6 When the A/D converter finishes, it strobes the data onto the input port and sets the “Input data available” line high 7 The program detects this and reads the input port 8 The program sets “Ready for input data” low, which causes the A/D converter to set “Input data available” low 9 If the A/D output has changed from the last value read (say from m–1 to m), store the value of n, which corresponds to the Vm–1, m transition voltage. 10 Loop back to step 2 11 Tabulate the difference between the measured transition voltages Vm–1, m and the ideal transition voltages V(m–1,m) = (m–0.5)(4.095V/4095) = 0.001 V (m–0.5). The maximum value is the maximum absolute accuracy error.
[3 points off if only 12 D/A bits are varied. The transition voltages (or the center of the steps) cannot be determined accurately unless more than 12 bits of the accuracy of the 16-bit D/A is used.] [4 points off if the method is not automatic] [3 points off if the transition voltages are not measured] [3 points off if handshaking steps not indicated]
1c As part 1b above, but compare the measured transition voltages Vm–1, m (as a function of m) with the straight line passing between the first measured transition voltage V 0 , 1 and the last measured transition voltage V4094, 4095. The largest deviation is the maximum linearity error. [3 points off if the straight line is defined in terms of Vref–^ and Vref+^ (which is required for the absolute accuracy error). The maximum linearity error requires a straight line that passed through the measured end points]
1d As part 1b above, but compare the A/D step sizes Vm, m–1 – Vm–1, m with their average value. The largest deviation is the maximum differential linearity error. Alternatively, the A/D step sizes could be determined as the number of successive D/A inputs that produce the same A/D output. Note: It was essential to use the concept of a “table of transition voltages” to answer parts b and c of this problem.
1e Since the D/A has an absolute accuracy of ±1LSB, and its step size is 16 times finer than the average step size of the A/D, this design can measure the A/D transition voltages to an accuracy of ±1/16 of the A/D LSB. As a result, the accuracy is 1 A/D LSB for the maximum absolute and linear errors and 1.414 A/D LSB for the maximum differential linearity error (difference between two random errors).
2a The low-pass Butterworth anti-aliasing filter must preserve signal amplitudes to an accuracy of 1%, and reduce frequencies above one-half the sampling frequency by a factor of less than 0.2%. The highest frequency in the signal is the 15th harmonic of 2 kHz, or 30 kHz. The signal amplitude accuracy of 1% corresponds to a filter gain of 0.99 at 30 kHz. If we choose an 8-stage Butterworth anti-aliasing filter (see the table at the end of the exam), the gain of 0.99 occurs at f 1 = 0.784 fc and the gain of 0.001 (a conservative value to reduce the higher harmonics below 0.2%) occurs at f 2 = 2.317 fc. Since f 1 = 30 kHz, f 2 = (2.371/0.784)(30 kHz) = 91 kHz. If we choose a 12-stage Butterworth anti-aliasing filter, the gain of 0.99 occurs at f 1 = 0.850 fc, the gain of 0.001 occurs at f 2 = 1.778 fc, and f 2 = (1.778/0.850)(30 kHz) = 63 kHz. [8 points off if 60 kHz sampling alone is used to avoid aliasing- it is essential to limit the highest frequencies in the signal with a low pass filter before sampling] [5 points off for not recognizing that the signal we want extends to 30 kHz] [2 points off for not checking that filter gain is >99% at 30 kHz and <0.2% at fs/2]
2b If we choose the 8-stage Butterworth anti-aliasing filter described in 2a , frequencies above f 2 = 91 kHz are eliminated, and the minimum sampling frequency is 182 kHz. If we choose the 12-stage Butterworth anti-aliasing filter described in 2a , frequencies above f 2 = 63 kHz are eliminated, and the minimum sampling frequency is 126 kHz. [5 points off for assuming that the LPF cut off abruptly at the corner frequency]
2c Since the frequency resolution in the FFT was required to be ∆f = 0.5 Hz, the minimum time needed to take the samples is S = 1/∆f = 2 s.
2d If using an 8-stage Butterworth filter, the number of samples is (2 s)(182 kHz), or 364k samples. In practice, we would sample for 2.9 s to acquire 524,288 samples, a power of two. If using a 12-stage Butterworth filter, the number of samples is (2 s)(126 kHz), or 252k samples. In practice, we would sample for 2.1 s to acquire 262,144 samples, a power of two. [1 point off if time and/or fs not adjusted to give a power of 2]
2e A Hanning window is essential because it is impossible to ensure that a complete number of samples will be taken at all the frequencies where signals are present. Without the Hanning window to suppress spectral leakage, frequency components will be spread out over many frequencies with a 1/f falloff, and it will be impossible to meet the 0.2% accuracy requirement.