



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: Maximum Rating, Button Alerts, Computer, Random, Computer Program, Respond, Forward Biased Diode
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




College of Engineering Electrical Engineering and Computer Sciences Department
EECS 145M: Microcomputer Interfacing Laboratory
Spring Midterm #1 (Closed book- calculators OK) Wednesday, March 1, 2000
PROBLEM 1 (30 points) In Laboratory Exercise 2 you measured the human reaction time between a visual prompt on the display screen and the pressing of the return key. This is an imperfect design due to random delays in refreshing the display screen (60 Hz) and the use of a slow (9600 baud) serial port to detect the pressing of the return key. You decide to use a parallel I/O port, a mechanical push button for user input, and a high-power, bright LED (light emitting diode) for the visual prompt. Assume the following:
1 The first press of the button alerts the computer that the user is ready.
2 The computer program then waits a random time from 5 s to 10 s and then lights the LED.
3 The user presses the button a second time to respond to the LED prompt.
4 The maximum rating of the LED is 0.1 A at 0.6 V (forward biased diode). Assume that the LED comes to full brightness instantly when the power is applied.
5 You have a power amplifier (voltage gain = 1) to drive the LED.
6 The computer has a digital I/O port with eight bits of input and 8 bits of output (“0” = 0V, “1” = 5 V).
7 Your program can read a 1 kHz system timer
8 For problem 1, ignore system interrupts that would cause your program to pause.
1a. (15 points) Draw a block diagram of your system, showing and labeling all essential components, connections, and signals. (You may draw the power amplifier with a single input, a single output, and a common ground)
1b. (15 points) List the steps (hardware and software) that must take place for a single measurement of the reaction time.
PROBLEM 2 (10 points)
System interrupts can last longer than the shortest button push the user could make (even with contact bounce). This would cause your program to miss short button pushes entirely. Show how you would use a set-reset latch to prevent this. (SET = HI makes output HI; RESET = HI makes output LOW; SET = LOW and RESET = LOW keeps previous output).
3b. (15 points) List the steps (hardware and software) that must take place for a single measurement of the reaction time.
PROBLEM 4 (30 points)
Design a system for simultaneously sampling (within a few ns) five different analog voltages, and digitizing the voltages with a single A/D converter that is read with a single digital input port.
Assume
4a. (15 points) Draw a block diagram of your system, showing and labeling all essential components, connections, and signals.
4b. (15 points) List the steps (hardware and software) that must take place to simultaneously sample the five analog voltages and read them into computer memory.