Midterm #1 Solutions for EECS 145M Spring 2003, Exams of Microcomputers

Solutions for midterm #1 of the eecs 145m spring 2003 course. It includes details on transparent latches, tri-state buffers, and instructions for designing an experiment to measure reaction times. The document also includes a section on using a/d converters and tri-state buffers.

Typology: Exams

2012/2013

Uploaded on 03/22/2013

sarup
sarup 🇮🇳

30 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
March 3, 2003 page 1 S. Derenzo
Solutions for Midterm #1 - EECS 145M Spring 2003
1a The transparent latch has a digital input, and digital output, and a digital control input that
puts the circuit into transparent mode or hold mode. In transparent mode the output is equal
to the input. When the circuit is switched to hold mode the output is held at its current
value.
[5 points off if no hold mode]
1b The tri-state buffer has a digital input, and digital output, and a digital control input that
puts the circuit into transparent mode or tri-state mode. In transparent mode the output is
equal to the input. In tri-state mode the output is in a high-impedance state that neither
drives nor loads anything connected to it.
[5 points off if no high impedance mode]
2See Figures 3.16 and 3.17 on page 169 of the textbook
[2 points off for using an amplifier rather than a comparator]
[2 points off for not starting with all bits zero]
[5 points off for describing the tracking A/D converter]
3
Acquire a computer with a digital I/O port and an internal clock
Connect a pushbutton switch to one line of the digital input port and one line of the output
port to an amplifier and fast indicator light (like an LED)
Write a computer program that detects a pushbutton, waits a random delay, prompts the
subject by turning on the light and measures the time until the pushbutton is pressed
Select a large number of candidates representing group d (racecar drivers) and group p (jet
fighter pilots)
After initial training and a good nights sleep, take as much reaction time data as possible,
allowing for rest periods
Compute the average reaction times dp and , the standard deviation of the samples
ss
dp
and , and the standard errors of the mean ss
dp
and and compute Student’s t:
tdp dp
mm
dpdd pp
== -
+
=-
+
D
D
sss s s
22 2 2
//
Look up the probability of exceeding this value or t by chance. If the probability is < 0.1%,
then the group with the lowest average has a faster reaction time.
[2 points off for only 10 measurements]
[5 points off if reaction time includes the random computer delay before the prompt]
[5 point off if Student’s t and probability not determined]
pf3

Partial preview of the text

Download Midterm #1 Solutions for EECS 145M Spring 2003 and more Exams Microcomputers in PDF only on Docsity!

Solutions for Midterm #1 - EECS 145M Spring 2003

1a The transparent latch has a digital input, and digital output, and a digital control input that puts the circuit into transparent mode or hold mode. In transparent mode the output is equal to the input. When the circuit is switched to hold mode the output is held at its current value. [5 points off if no hold mode] 1b The tri-state buffer has a digital input, and digital output, and a digital control input that puts the circuit into transparent mode or tri-state mode. In transparent mode the output is equal to the input. In tri-state mode the output is in a high-impedance state that neither drives nor loads anything connected to it. [5 points off if no high impedance mode]

2 See Figures 3.16 and 3.17 on page 169 of the textbook [2 points off for using an amplifier rather than a comparator] [2 points off for not starting with all bits zero] [5 points off for describing the tracking A/D converter]

3

  • Acquire a computer with a digital I/O port and an internal clock
  • Connect a pushbutton switch to one line of the digital input port and one line of the output port to an amplifier and fast indicator light (like an LED)
  • Write a computer program that detects a pushbutton, waits a random delay, prompts the subject by turning on the light and measures the time until the pushbutton is pressed
  • Select a large number of candidates representing group d (racecar drivers) and group p (jet fighter pilots)
  • After initial training and a good nights sleep, take as much reaction time data as possible, allowing for rest periods
  • Compute the average reaction times d and p , the standard deviation of the samples s (^) d and s p , and the standard errors of the mean s (^) d and s p and compute Student’s t:

t d p d p

d p^ d^ m^ d^ p^ mp

D

s (^) D s 2 s 2 s (^2) / s^2 /

  • Look up the probability of exceeding this value or t by chance. If the probability is < 0.1%, then the group with the lowest average has a faster reaction time. [2 points off for only 10 measurements] [5 points off if reaction time includes the random computer delay before the prompt] [5 point off if Student’s t and probability not determined]

4a

A/D #

A/D #

Tri-state #

Tri-state #

12

12

12

16-bit parallel input

Start conversion

Data available 1

parallel output

Select #

Select #

Data available 2

Analog input 1

Analog input 2

[5 points off for not using tri-state buffers for selectively connecting the A/D outputs to the parallel input port] 4b 1 Read the system timer to get the current tick count n in ms and set data storage index i = 0. 2 Write word to parallel output port that has start conversion LOW, select1 LOW, and select LOW (assume that select = LOW is tri-state) 3 Write word to parallel output port that has start conversion HIGH, select1 LOW, and select2 LOW. This causes both A/Ds to convert simultaneously] 4 Read parallel input port in a loop until data available 1 goes HIGH 5 Write word to parallel output port that has start conversion HIGH, select1 HIGH, and select2 LOW 6 Read the parallel port, mask off handshaking bits, and store as data1(i). 7 Read parallel input port in a loop until data available 2 goes HIGH 8 Write word to parallel output port that has start conversion HIGH, select1 LOW, and select2 HIGH 9 Read the parallel port, mask off handshaking bits, and store as data2(i). 10 Set i = i + 1 and read the system timer until the tick counter reads n + 1000 i 11 loop back to step 3 [3 points off for reading the tri-state outputs before they are enabled] [3 points off for not reading the A/Ds sequentially] [3 points off for not starting both A/D converters simultaneously] [3 points off for not sampling the two waveforms once per second]