






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 exam paper are: Glitch, Converter, Handshaking, Sender, Receiver-, Frequency Aliasing, Sample
Typology: Exams
1 / 11
This page cannot be seen from the preview
Don't miss anything!







NAME (please print)
STUDENT (SID) NUMBER
College of Engineering Electrical Engineering and Computer Sciences Berkeley
1 ____________ (100 max) 8 _____________ (100 max) 21 ____________ (100 max)
2 ____________ (100 max) 9 _____________ (100 max) 22 ____________ (100 max)
3 ____________ (100 max) 10 ____________ (100 max) 23 ____________ (100 max)
_______________ (700 max) _______________ (100 max) _______________ (200 max) _______________ (1000 max)
May 20, 1991
Answer the questions on the following pages completely, but as concisely as possible. The exam is to be taken closed book. Although the exam was designed to be completed in two hours, you can use the full three hour assigned period. Use the reverse side of the exam sheets if you need more space. Calculators are OK but not needed. In answering the problems, you are not limited by the particular equipment you used in the laboratory exercises. Many formulae from the course have been provided for you on the last page.
Partial credit can only be given if you show your work.
FINAL EXAM GRADE :
1 __________ (42 max) 3 __________ (30 max) 5 _________ (30 max)
2 __________ (48 max) 4 __________ (50 max) TOTAL __________ (200 max)
Problem 1 (total 42 points):
Define the following terms (30 words or less)
a. (6 points) Glitch (of a D/A converter)
b. (6 points) Handshaking (between any sender and receiver- either could be the computer)
c. (6 points) Frequency Aliasing
Problem 2 (48 points)
Design a microcomputer-based data acquisition system that contains a microcomputer and a number of external circuits. Your design must satisfy the requirements given below:
The microcomputer:
(i) Sets up the timer board to use two 16-bit cascaded counters (numbers 0 and 1) for control- ling the time interval T between output pulses. Assume that it counts down to zero, produces an output pulse on an external line, reloads, and then resumes counting down. (ii) Sets up the timer board to use two 16-bit counters (numbers 2 and 3) to control the number of pulses N. Assume that it counts down for every output pulse and stops at zero. (iii) Starts the counters.
A/D converter:
Adder:
Memory:
Anti-aliasing filter:
Problem 2 (continued):
Note:
Do the following:
a. (14 points) Draw the block diagram for the microcomputer, external circuits, and the lines that connect them. Label every essential item, control line, and data line.
b. (14 points) Describe in step-by-step sequence how your program and external circuit works. (There is no need to write detailed C code- just a flow chart in list form)
Problem 3 (total 30 points):
Briefly describe the following processes. Be sure to include all necessary steps (pretend that you are writing a detailed procedure for an inexperienced young colleague).
a. (10 points) Digital Filtering of a Sampled Waveform with Analog Output
b. (10 points) Sampling, Digital Storage, and Playback of the Human Voice
c. (10 points) Measuring the Time Required for the FFT Function to Compute a 4096 element FFT
Problem 4 (total 50 points):
You are asked to design a system for using the FFT to analyze the harmonic content of certain musical instruments. The requirements are:
Answer the following questions about these design requirements:
a. (5 points) What is the minimum sampling frequency required?
b. (5 points) What is the minimum time needed to take all the samples required?
c. (5 points) What is the minimum number of samples required?
d. (5 points) How many bits of A/D accuracy are required?
e. (5 points) How does your design avoid aliasing? Give details.
Problem 5 (total 30 points):
In Laboratory Exercises 21 and 22, you took 512 samples, stored them in memory, called the FFT function to generate 512 complex Fourier coefficients, and computed 512 modulus values. Design a system using digital filtering to do these same tasks continuously, rather than in “batch” mode. Assume that you have available a large number of low-cost processors suitable for digital filtering.
a. (13 points) Give the formula for your digital filter. Is it FIR or IIR?
b. (13 points) Draw a representative section of the block diagram, showing components and interconnections.
c. (4 points) How many processors are needed in all?
V(n) = Vref^ −^ + n
Vref^ +^ − Vref^ − 2 N
=^ Vmin +^ n^
Vmax − Vmin 2 N^ − 1
n =
V − Vref^ − ∆V
INTEGER
V(n − 1,n) = Vref^ −^ + (n − 0.5)∆V ∆V =
Vref^ +^ − Vref^ − 2 N^ − 1
a =
st − rq ms − r^2
and b =
mq − rt ms − r^2
G(a) =
exp −
a − μ σ
2 πσ^2
μ ≈ a = (^) m^1 ai i= 1
m
σ^2 = Var(a) =
m − 1
(^) Ri^2 i= 1
m
m − 1
(^) ( ai − a)^2 i = 1
m
Fn = fke−i2^ πnk/N k= 0
N− 1
Fn N
e+i2^ πnk/N n= 0
N− 1
(^2) + Im(F n )
2
For fk = a (^) j cos(2πjk / N) + bj sin(2πjk / N) F 0 = Na 0 Fn = (N / 2)(a (^) n − ibn ) j= 0
N− 1
fmax = fs/2 T = 1/fs S = NT ∆f = 1/S
yi = A 1 xi − 1 + A 2 xi − 2 +... + AM xi −M + B 1 yi − 1 +... + BNyi− N
t =
Var(∆)
a − b Var(a ) + Var(b )
a − b Var(a) / ma + Var(b)/ mb
t =
d Var(d )
d 1 m
m − 1
fmax =
2 N+^1 πT e
iθ (^) = cosθ + i sinθ