HOME SYLLABUS HOMEWORK LABS LINKS NOTES
|
The goal of this assignment is to gain experience using Interrupt Service Routines, WatchDog Timer, improve your assembly language style, and practice using the integrated debugger in the CCS IDE.
Part 1: Just Blink ItInitial part of the lab is just being able to blink P1.0 using an Interrupt Service Routine (ISR). Use the code from the slides or notes and make sure that your ISR code blinks every 1 second by using the WatchDog Timer at your preferred frequency (just be aware of using the proper timing constants & number of interrupts that will occur)
Part 2: Scroll to the LeftMake sure that within the ISR you start with lighting up LED on P1.0 and then begin scrolling to the LEFT every 1 sec. Set the WDT to do your timing. Once the LED is lid up at P1.7, make sure it wraps around back to P1.0 and continues scrolling.
Part 3: Push Button & Scroll to the RightSame as Part 2; however when pressing P1.3 button, the program will start scrolling to the RIGHT from its current position. Be aware that debouncing of the button may occur and skipping will be noticeable. You may have to reconnect your circuit differently for this part of the lab.
Extra Credit: Toggle Scroll Direction10%: Each time the P1.3 Button is pressed, the LEDs toggle its direction from its current position. To submit extra credit: Print out hard copy of the code and have it checked out by Matt, Clint or Damian
Submission:1 - Have each part of the lab checked out by Matt, Clint or Damian by showing your code, flashing your code to the board, and display working circuit. 2 - Print your final code from Part 3 with the following header: /*************************************************** 3 - Make sure you have a well commented code
Copyright © 2011 by Keith Vertanen. |
Montana Tech --
College of Letters, Science &
Professional Studies -- Computer Science
Department
All Rights Reserved and Copyright
© 2013 by Damian Valles