Overview

The purpose of this lab is to gain some experience with input, output, and subroutine calls.

Problem Statement

In this lab, you will design, code, assemble, simulate, download and run a program. The program is similar to last week's assignment in that it will cause the LEDs to flash to the left or right. This week your program must exihibit the following behavior:

  1. Rotate the LEDs to the right continuously until a switch is pressed.
  2. When a switch is pressed, the LEDs should rotate in the opposite direction.
  3. While rotating, each LED should remain on for 0.25 seconds.

Program Notes:

Pre-laboratory activity (due on entering the week 4 lab)

Write a delay loop subroutine that has a duration of exactly 0.25 seconds. You should include the time required to call and return from the loop in the 0.25 seconds. Your paper submission should include your timing calculations in addition to your code listing.

Laboratory Demonstration (due 11pm the day prior to week 5 lab)

You must demonstrate your program working on your board and use the oscilloscope to show that your delay loop duration is accurate.

Laboratory Report (due 11pm the day prior to week 5 lab)

You should submit the .lst for your program using the online submission form.

In addtion, you must log the time you spent on this assignment (including the pre-laboratory activity) in FAST.

Acknowledgment

This assignment is based on a similar assignment developed by Prof. William Barnekow.

I am responsible for all content posted on these pages; MSOE is welcome to share these opinions but may not want to.
© 2001-2007 Dr. Christopher C. Taylor Office: L-343 Phone: 277-7339