Maximum Rating - Microcomputer Interfacing Laboratory - Exam, Exams of Microcomputers

Main points of this exam paper are: Maximum Rating, Button Alerts, Computer, Random, Computer Program, Respond, Forward Biased Diode

Typology: Exams

2012/2013

Uploaded on 04/01/2013

saji
saji 🇮🇳

4.5

(2)

54 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name (Last, First)
Student ID number
EECS145M 2000 Midterm #1 Page 1 Derenzo
UNIVERSITY OF CALIFORNIA
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:
1The first press of the button alerts the computer that the user is ready.
2The computer program then waits a random time from 5 s to 10 s and then lights the LED.
3The user presses the button a second time to respond to the LED prompt.
4The 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.
5You have a power amplifier (voltage gain = 1) to drive the LED.
6The computer has a digital I/O port with eight bits of input and 8 bits of output (“0” = 0V,
“1” = 5 V).
7Your program can read a 1 kHz system timer
8For 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)
pf3
pf4
pf5

Partial preview of the text

Download Maximum Rating - Microcomputer Interfacing Laboratory - Exam and more Exams Microcomputers in PDF only on Docsity!

UNIVERSITY OF CALIFORNIA

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

  • Your computer program determines when the five waveforms are sampled, and then sequentially digitizes and stores each signal.
  • You have five analog switches. Each has an analog input, and analog output, and a digital control line (“0” = 0V = open; “1” = 5V = closed).
  • You have five sample-and-hold amplifiers. Each has an analog input, and analog output, and a digital control line (“0” = LOW = 0V = sample, “1” = HIGH = 5V = hold)
  • The A/D converter is started by making the “start conversion” line HIGH (5V)
  • When conversion is complete, the A/D converter makes a “data available” line HIGH
  • Making “start conversion” LOW makes “data available” LOW
  • The computer has a digital I/O port with 16 lines of input and 16 lines of output.

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.