Difference between revisions of "CSC270 Homework 9"
(→Problem #2) |
|||
Line 14: | Line 14: | ||
=Problem #2= | =Problem #2= | ||
− | . | + | Instead of wiring the 7442 as you did in the lab on 4/8/09, when you were implementing the 1-bit Output Port, assume that you had wired the 7442 to the 6811 in the following way: |
+ | |||
+ | * A3 of the 7442 is connected to A13 of the 6811 | ||
+ | * A2 of the 7442 is connected to A14 of the 6811 | ||
+ | * A1 of the 7442 is connected to A15 of the 6811 | ||
+ | * A0 of the 7442 is connected directly to E of the 6811 (no inverter!) | ||
+ | * Ouput 3 of the 7442 (Pin 4) is connected to the clock input of the 74LS74 flipflop. | ||
+ | |||
+ | Will this design work? In other words, would the LSB of Acca get stored in the flipflop when the processor execute | ||
+ | |||
+ | STAA 9000 | ||
+ | |||
+ | Why, or why not? | ||
+ | |||
+ | Be careful, this is tricky! Use all the resources at your disposition to answer this question. |
Revision as of 10:43, 9 April 2009
--D. Thiebaut 19:06, 8 April 2009 (UTC)
Problem #1
Give the schematics for a 3-LED sequencer, very similar to what we did before Spring break. We will label one LED the green LED, another one the yellow LED, and the last one the red LED.
Show the 6811 assembly language program that will activate the LEDs in the following pattern: Green is ON for 1 second, then Yellow turns on for a second, then Red comes on for a second. And the cycle starts over with Green coming on. In other word, create a 3-state sequencer where each LED is ON in one state only.
Compare the difficulty/complexity of modifying the state diagram of the sequencer if you were using flip-flops for the sequencer, and the new 6811-based sequencer. For example, if we decided that Green should stay on for 2 seconds, Yellow for 1 second, and Red for 5 seconds, what are the implications for the flip-flop based sequencer? For the 6811-based sequencer?
Problem #2
Instead of wiring the 7442 as you did in the lab on 4/8/09, when you were implementing the 1-bit Output Port, assume that you had wired the 7442 to the 6811 in the following way:
- A3 of the 7442 is connected to A13 of the 6811
- A2 of the 7442 is connected to A14 of the 6811
- A1 of the 7442 is connected to A15 of the 6811
- A0 of the 7442 is connected directly to E of the 6811 (no inverter!)
- Ouput 3 of the 7442 (Pin 4) is connected to the clock input of the 74LS74 flipflop.
Will this design work? In other words, would the LSB of Acca get stored in the flipflop when the processor execute
STAA 9000
Why, or why not?
Be careful, this is tricky! Use all the resources at your disposition to answer this question.