Set Reset Latch - Introductory Microcomputer Interfacing Laboratory - Solved Exam, Exams of Microcomputers

Main points of this past exam are: Set Reset Latch, Flip-Flop, Transparent Latch, Tri-State Buffer, Set-Reset Latch, Interfacing Circuit, Read Eight

Typology: Exams

2012/2013

Uploaded on 03/22/2013

sarup
sarup 🇮🇳

30 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
February 24, 2010 page 1 S. Derenzo
Solutions for Midterm #1 - EECS 145M Spring 2010
1.1 Edge-triggered D-type flip-flop:
one digital data input
one digital clock input
one digital data output
on every rising edge of the clock the output is set equal to the input
otherwise the output is held constant
1.2 Transparent latch:
one digital data input
one digital gate input
one digital data output
when the gate signal is high the output is equal to the input
when the gate signal is low the output is held constant
1.3 Tri-state buffer
one digital data input
one digital “output enable” input
one digital data output
when the “output enable” signal is high the output is equal to the input
when the “output enable” signal is low the output neither drives nor loads anything it is
connected to (high impedance state)
1.4 Set-reset latch
one digital “set” input
one digital “reset” input
one digital output that is “set” and “reset” by the two inputs
2.1
Elements needed for full credit
8 separate lines from output port to trigger inputs of the 8 digital devices
eight separate set-reset latches with each “set” connected to the “data available (pulse)”
from the corresponding digital device
no points off for eight one-shots set for an output pulse width several times 1 µs. This would
work, but only if the computer reads the input port in a tight loop. It would not work if the
computer were multi tasking and was not able to read the input port frequently enough.
[5 points off if no set-reset latches to convert the very brief data available pulse into a
persistent signal that the computer can read and reset]
pf3
pf4

Partial preview of the text

Download Set Reset Latch - Introductory Microcomputer Interfacing Laboratory - Solved Exam and more Exams Microcomputers in PDF only on Docsity!

Solutions for Midterm #1 - EECS 145M Spring 2010

1.1 Edge-triggered D-type flip-flop: one digital data input one digital clock input one digital data output on every rising edge of the clock the output is set equal to the input otherwise the output is held constant 1.2 Transparent latch: one digital data input one digital gate input one digital data output when the gate signal is high the output is equal to the input when the gate signal is low the output is held constant 1.3 Tri-state buffer one digital data input one digital “output enable” input one digital data output when the “output enable” signal is high the output is equal to the input when the “output enable” signal is low the output neither drives nor loads anything it is connected to (high impedance state) 1.4 Set-reset latch one digital “set” input one digital “reset” input one digital output that is “set” and “reset” by the two inputs 2. Elements needed for full credit

  • 8 separate lines from output port to trigger inputs of the 8 digital devices
  • eight separate set-reset latches with each “set” connected to the “data available (pulse)” from the corresponding digital device no points off for eight one-shots set for an output pulse width several times 1 μs. This would work, but only if the computer reads the input port in a tight loop. It would not work if the computer were multi tasking and was not able to read the input port frequently enough. [5 points off if no set-reset latches to convert the very brief data available pulse into a persistent signal that the computer can read and reset]
  • eight 8-bit transparent latches or edge-triggered flip-flops with control inputs connected to the “data available (pulse)” from the corresponding digital device [5 points off if no data buffer to convert the very brief data pulses into persistent signals that the computer can read]
  • 8 data lines from each digital device connected to the inputs of the corresponding latch or flip-flop
  • eight 8-bit tri-state drivers with inputs connected to the output of the corresponding latch or flip-flop [5 points off if no tri-state drivers, which are necessary to connect 8 x 8 data lines to 8 lines of an input port]
  • The 8 output data lines of the eight tri-state drivers combined into an 8-line bus and connected to the digital input port
  • 8 lines from the output port connected to the enable line of each tri-state driver
  • 8 lines from the output port connected to the “reset” lines of the set-reset latches External parallel device 1 Set-reset latch 1 Set-reset latch 8 External parallel device 8 Tri- state driver 1 Tri- state driver 8 Edge- triggered flip-flop 1 Edge- triggered flip-flop 8 Parallel input port 8 for data available 8 for data Micro- computer Output enable 1 Set 1 Set 8 Reset 1 Reset 8 Output enable 8 Trigger 1 Trigger 8 Data 8 available (latched) Data 1 available (latched) Data 1 available (pulse) Data 8 available (pulse) Parallel output port 8 for trigger 8 for output enable 2.
  • Output levels that set all 8 tri-state drivers to their high impedance mode
  • Output a high-low-high to the trigger input of digital device #1 (this resets set-reset latch #1)
  • Read the input line connected to set-reset latch #1 in a tight loop and exit when it becomes “set”

EECS145M Midterm #1 class statistics: Problem max average rms 1 24 21.7 2. 2 40 30.2 6. 3 36 32.4 1. total 100 84.3 7. Grade distribution: Range number approximate letter grade 60 - 64 0 F 65 - 69 0 D 70 - 74 2 C 75 - 79 4 B 80 - 84 3 B 85 - 89 3 A 90 - 94 3 A 95 - 99 2 A+ 100 0 A+