Button Alerts - Introductory Microcomputer Interfacing Laboratory - Solved Exam, Exams of Microcomputers

Main points of this past exam are: Button Alerts, First Press, Computer Program, Random Time, Second Time, Forward Biased Diode, Brightness Instantly

Typology: Exams

2012/2013

Uploaded on 03/22/2013

saryu
saryu 🇮🇳

4.3

(4)

42 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
March 1, 2000 page 1 S. Derenzo
Solutions for Midterm #1 - EECS 145M Spring 2000
1a
µComputer
8-bit input port
8-bit output port
LED
44
buffer amp
push button switch
5V
0.6 V, 0.1 A
The push button should be connected to the input port and the LED should be driven by the output
port and amplifier.
[2 points off for no series resistor to limit LED current]
[1 point off if resistor shown but value not given]
[3 points off if input and output ports not shown]
1b.
1Computer waits for button to be pressed
2User presses the button, grounding the input line
3Computer senses low signal
4Computer uses system clock to wait a random 5-10 sec time
5Computer puts output line to amplifier high
6Computer reads system time T1 (ms)
7LED lights
8Computer waits for low input line
9Human recognizes LED and presses button a second time
10 Computer recognizes low line and reads system time T2
11 Computer subtracts system times (T2 - T1), converts to seconds, displays and stores results,
and turns off LED
[2 points if hardware steps such as button press and LED lighting not given]
[2 points off if time difference not calculated and stored]
2
Set
Reset
5 V µComputer
8-bit input port
8-bit output port
latch
1 k
Te essential features of the solution are (1) button sets latch (2) latch output goes to computer input
port (3) output port resets latch [3 points off for each missing feature]
pf3
pf4

Partial preview of the text

Download Button Alerts - Introductory Microcomputer Interfacing Laboratory - Solved Exam and more Exams Microcomputers in PDF only on Docsity!

Solutions for Midterm #1 - EECS 145M Spring 2000

1a

μComputer

8-bit input port

8-bit output port

LED

44 Ω

buffer amp

push button switch

5V 0.6 V, 0.1 A

The push button should be connected to the input port and the LED should be driven by the output port and amplifier. [2 points off for no series resistor to limit LED current] [1 point off if resistor shown but value not given] [3 points off if input and output ports not shown]

1b. 1 Computer waits for button to be pressed 2 User presses the button, grounding the input line 3 Computer senses low signal 4 Computer uses system clock to wait a random 5-10 sec time 5 Computer puts output line to amplifier high 6 Computer reads system time T1 (ms) 7 LED lights 8 Computer waits for low input line 9 Human recognizes LED and presses button a second time 10 Computer recognizes low line and reads system time T 11 Computer subtracts system times (T2 - T1), converts to seconds, displays and stores results, and turns off LED [2 points if hardware steps such as button press and LED lighting not given] [2 points off if time difference not calculated and stored]

2

Set

5 V Reset μComputer

8-bit input port

8-bit output port

latch

1 kΩ

Te essential features of the solution are (1) button sets latch (2) latch output goes to computer input port (3) output port resets latch [3 points off for each missing feature]

With this solution, the latch is set by the push button and is certain to remain set until the computer detects and resets it.

3a

μComputer

8-bit input port

8-bit output port

32-bit input port

LED

44 Ω

buffer amp

32-bit counter with 1 MHz clock

stop

reset

Set

Reset

latch

push button switch

5 V

Using a simple push button switch was accepted here. [3 points off if push button does not stop counter]

3b

1 Computer resets counter and puts LED driver output low 2 Computer waits for button to be pressed 3 User presses the button, grounding the input line (this incidentally stops counter) 4 Computer senses low signal 5 Computer waits a random 5-10 sec time 6 Computer resets and starts counter 7 Computer puts output line to amplifier high 8 LED lights 9 Human recognizes LED and presses button a second time 10 pulse from button stops counter and signals computer 11 Computer reads counter and converts to seconds

Timing between first button push and lighting LED is not critical and can be done in software. Timing between LED prompt and second button push is critical and should be done using the counter.

[2 points off if push button stops counter but does not signal computer when to read counter] [2 points off if counter is not reset when LED is turned on] [3 points off if computer stops counter]

Midterm #1 class statistics:

Problem max average rms 1 30 28.1 0. 2 10 8.6 2. 3 30 28.1 2. 4 30 27.7 2. total 100 92.5 4.

Grade distribution:

Range number approximate letter grade 81-85 1 C 86-90 3 B 91-95 8 A-B 96-100 3 A