

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
The final exam questions for the microcomputer interfacing lab course (eecs 145m) held at the university of california, berkeley in spring 1993. The exam covers topics such as r-2r ladder of a d/a converter, average step size of an a/d converter, handshaking between a microcomputer and a digital circuit, two's complement operation, tri-state buffer, measuring frequency of power line, designing a microcomputer-based system for two-track recording of music, and designing a system for frequency filtering in a sound system.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Problem 1 (total 36 points):
Define the following terms (30 words or less)
a. (6 points) R-2R Ladder (of a D/A converter)
b. (6 points) Average Step Size (of an A/D converter)
c. (6 points) Relative Accuracy (of an A/D converter)
d. (6 points) Handshaking (between a microcomputer and a digital circuit)
e. (6 points) Two's Complement Operation
f. (6 points) Tri-state buffer
Problem 2 (35 points)
Describe how you would measure the frequency of the 60 Hz, 120 V power line to an accuracy of 0.001 Hz over a measurement period of 1 second. Assume that the frequency is in the 59 to 61 Hz range and that you have the following components.
A microcomputer with a 9513 timer/counter circuit (like the one used in laboratory exercise 2) and an 8-bit parallel I/O port (like the one used in laboratory exercise 3).
Do the following:
a. (12 points) Draw a block diagram of your measurement system, showing and labeling all essential components and signal lines.
b. (12 points) Describe the operation of your system (hardware and software) in a flow chart or pseudo-code.
c. (11 points) Draw a timing diagram for the important signals.
Problem 3 (44 points)
Design a microcomputer-based system for two-track (stereo) recording of music at a sampling rate of 50 kHz. Both tracks are to be sampled simultaneously, but the digital data must be read by the computer sequentially because you have only one parallel input port. You have the following components at your disposal:
BIHOLD line latches data onto the 16 internal registers. (Similar to the port used in the 145M lab.)
Two 16-bit registers with tri-state output buffers. External data are latched onto internal registers with a low-to-high edge on a strobe line. When an additional "select" line is high, the 16 outputs agree with the 16 inputs. When the "select" line is low, the 16 outputs are in a high impedance state.
a. (20 points) Draw a block diagram of your recording system, showing and labeling all essential components and signal lines.
b. (12 points) Describe the operation of your system in flowchart of pseudo code.
c. (12 points) Show a timing diagram for one complete sampling cycle.
Problem 4 (total 55 points):
In concert halls and outdoor arenas, the sound that the that the audience hears is not necessarily the sound produced by the performers. The reason is that hte limited rseponse of the loud speakers, absorption by surrounding surfaces, resonances within enclosing volumes, and feedback effects can greatly alter the frequency spectrum. One spectacular feedback effect is the loud whine that occurs at particular frequency when the gain loop (from the recording microphone to the amplifier to the speakers and back through the air to the recording microphone) is greater than 1. At high volumes, it would be desirable to attenuate the signal at such resonant frequencies.
Design a system for frequency filtering in a sound system so that the sound that reaches a sensing microphone in the audience has the same frequency content as the sound that reaches a recording microphone on the stage. Do not worry about phase, seperate stereo or quadriphonic channels, or trying to correct the sound at any other place in the audience.
Assume the following:
The recording microphone and the power amplifiers that drive the loudspeakers have a flat response from 20 Hz to 20 kHz.
The sampling microphone placed in the audience records all frequencies between 20 Hz and 20 kHz equally.