Ask Question, Ask an Expert


Ask Assembly Expert

Blinky Lights II: The Hard Way
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 by using the duty cycle you found from your UTCID. 
For illustration: 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.

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


• 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 illustration.
; ex program for demonstrating header section, does nothing
; Targets MSP430G2231 on LaunchPad board
; Stephen Craven, ENEE 4700, 9/23/2010
; Program does what?
; Input is ... Output is... BE SPECIFIC. Include enough info for
; someone to configure and use your program.

Assembly, Programming

  • Category:- Assembly
  • Reference No.:- M91345

Have any Question? 

Related Questions in Assembly

1write build and run an assembly language program that

1. Write, build, and run an assembly language program that displays 0 through 9 on the screen. You can only use the following data segment: message BYTE "0",13,10,0 2. Write an Assembly Language program that will write o ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate