Difference between revisions of "CSC270 Final Exam 2016"

From dftwiki3
Jump to: navigation, search
Line 167: Line 167:
 
==Your Assignment==
 
==Your Assignment==
 
<br />
 
<br />
# Program the 6811 to generate a signal on an output bit that oscillates at 3 different frequencies.  To switch frequency, you will simply stop the 6811, enter a different program (or constants) in memory, and restart it.  You are free to pick the 3 different frequencies
+
# Program the 6811 to generate an '''output''' signal that can be made to oscillate at 3 different frequencies.  To switch frequency, you will simply stop the 6811, enter a different program (or constants) in memory, and restart it.  You are free to pick the 3 different frequencies that best fit your design.
# Connect the output of the 6811 kit that you have wired up in Step 1 above to an Arduino that activates 3 different LEDs.
+
# Connect the output signal of the 6811 to an Arduino that has 3 signals connected to 3 different LEDs.
# Program the Arduino to recognize the different frequencies.  When the Arduino recognizes the slowest of the 3 frequencies, it activates one LED.  When it recognizes the fastest frequency, it activates another LED.  Finally, it activates the last of the 3 LEDs when it recognizes the medium-range frequency.
+
# Program the Arduino to recognize the different frequencies.  When the Arduino recognizes the slowest of the 3 frequencies, it activates one LED.  When it recognizes the fastest frequency, it activates another LED.  Finally, it activates the last of the 3 LEDs when it recognizes the medium-range frequency.
# All LEDs should be off when the 6811 is not activating its output signal.
+
# All LEDs should be off when the 6811 is not activating its output signal.  For example, assume that you have picked 1Hz, 10Hz and 100Hz as your 3 frequencies.  Your Arduino is connected to 3 LEDs, one green, one yellow, and one red.  When the 6811 is not running your program, all LEDs are OFF.  When the 6811 generates a 1Hz output, the Arduino will activate the green LED, which will stay ON as long as the 1 Hz signal is active.  When you stop the 6811 program, the green LED will automatically turn OFF.  All LEDs will be OFF.  When you program the 6811 to generate a 10Hz signal, the Arduino will measure this signal and activate the yellow LED, which will stay ON as long as the 10Hz signal is active.  And similarly for the 100Hz and red LED.
 
# Demonstrate the correct behavior of your setup to your instructor for credit.  If your instructor is not around, take a detailed movie of your experiment, with explanations of what happens.   
 
# Demonstrate the correct behavior of your setup to your instructor for credit.  If your instructor is not around, take a detailed movie of your experiment, with explanations of what happens.   
 
<br />
 
<br />

Revision as of 12:05, 24 April 2016

--D. Thiebaut (talk) 10:09, 16 April 2016 (EDT)


...