Program that will blink as led, Computer Engineering

Take the last two digits of your UTCID. This is your duty cycle in percent. If your duty cycle is less than 10%, add 30 to your number.

Create an assembly program that runs on the MSP430 that will blink as LED at a rate of exactly 1

Hz using the duty cycle you found from your UTCID.

For example, if your UTCID was ABC123, your duty cycle would be 23%. Your LED should then be ON for 0.23 seconds and OFF for 0.77 seconds, so that the combined cycle time is exactly 1.00 seconds.

Deliverables:

  • A flowchart of your program
  • Commented source code, see below
  • Analysis proving that your code blinks the LEDs at the specified rates. This must involve

a calculation including instruction cycle counts and your board's clock frequency, as determined from the tutorial exercise

  • Soft copy, emailed to instructor, of your code
  • Due Tuesday, 10/2 - hard copy at start of class

Comments:

  • Comment your code at a level of detail enough for someone to follow it. More detail than that is not helpful.
  • Include several comments lines at the very top of your program that describes the program, what it does, who wrote it, when it was written, what hardware it requires, and what inputs / outputs it uses. This is called a header. See below for an example.
  1. Example program for demonstrating header section, does nothing
  2. Targets MSP430G2231 on LaunchPad board
  3. Stephen Craven, ENEE 4700, 9/23/2010
  4. Program does what?
  5. Input is ... Output is... BE SPECIFIC. Include enough info for
  6. someone to configure and use your program.
Posted Date: 3/4/2013 8:07:38 AM | Location : United States







Related Discussions:- Program that will blink as led, Assignment Help, Ask Question on Program that will blink as led, Get Answer, Expert's Help, Program that will blink as led Discussions

Write discussion on Program that will blink as led
Your posts are moderated
Related Questions
Q. Structure of Input - Output Interface? Due to complexity and number of external devices that I/O interface control, there is not any standard structure of I/O interface. Let

Q. Can a vector have a component equivalent to zero and still have a nonzero magnitude? Answer:- Yes For example the 2-dimensional vector (1, 0) has length sqrt (1+0) = 1

Interconnection Network Introduction This unit discusses the types and properties of interconnection networks.  In multiprocessor systems, there are multiple I/O modules


Q. Show Division and multiplication operation? These operations can be represented as x + y = (N x   × 2 Ex-Ey + N y ) × 2 Ey and x-y = (N x × 2 Ex-Ey -N y ) × 2 Ey

The Prisoner's Dilemma is a well-known problem in game theory. Two thieves are arrested and held in custody separately. The police offer each the same deal. Inform on your partn

What is write miss? During the write operation if the addressed word is not in cache then said to be write miss.

What are subroutines? Subroutines are program modules, which can be known  from other ABAP/4 programs or within the similar program.

Andrew, a 17 zear old university student decided to hold a post exams party for his friends. Andrew asked Kath, a family friend and the owner of 'Kath's Katerers' to supply food

How many lines of address bus must be used to access 2048 bytes of memory when available RAM chips 128 × 8.  How many lines of these will be common to each chip? Ans. AS chips