Introduction to Embedded Systems :: CSCI 255
Lab Assignments
Lab 6
-- Scroll LEDs


HOME        SYLLABUS        HOMEWORK        LABS        LINKS        NOTES









Due:  End of Lab Session (10.28.2013)

Requirement:  Bread Board, Jump Wires, MSP430, LEDs, and work with your lab partner on the code

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 It

Initial 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)

See how it works

 

Part 2: Scroll to the Left

Make 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.

See how it works

 

Part 3: Push Button & Scroll to the Right

Same 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.

See how it works

 

Extra Credit: Toggle Scroll Direction

10%: 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:

/***************************************************
* Names
* Lab x assignment
* filename: yyyyyyyyy.asm
*
* Description of the assignment
*
***************************************************/

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