Ask Question, Ask an Expert


Ask Programming Language Expert

Assignment1 – Analog Measurements
Review the description of a wind vane on the next page.
You are to make an assembly program for the MSP430 that correctly measures the wind direction, to a precision of 45° (N, NW, W, SW, S, SE, E, NE), using the MSP430’s ADC. 
Your program will output the direction by using four LEDs, one each for N, S, E, and W. If the wind direction is out of the N, only the N LED will light. If the wind direction is out of NW, both the N and W LEDs with be ON.
Note that the actual circuit interfacing to wind vane will use the 3.6V supply on the Launchpad board itself. A 10kohm resistor will be used in the voltage divider.
As only one wind vane is available for use, test your code using a pot connected between ground and 3.6 V (the supply voltage for your board). The wind vane will be accessible in 310 for final check-out. Pots, LEDs, and resistors will be provided in 310.
Your program must use at least one subroutine. You are free to select which functionality to place in the subroutine.
Extra Credit: 

(1) Correctly measure all 16 directions probable by the vane. Develop some mechanism for visually displaying the added directions.

(2) Store the voltages corresponding to the specific directions as constants in a memory array (see ex below). Have your code cycle through this array till a match is found.

ORG 0xD000 DC 0x1234, 0xABCD, … ;replace w/ find outd voltages


• Pseudo code for algorithm

• Concise description in words of how program works


• Comment your code at a level of detail adequate for someone to follow it. More detail than that is not helpful.

• Include some comments lines at the top of your program which 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 ex.
; 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 detail for
; someone to configure and use your program.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91593

Have any Question? 

Related Questions in Programming Language

Programming logic and design questions1 given the

Programming Logic and Design Questions 1 given the following pseudocode module header: module calculate something (real x,real y, real z,) when the following call executes: call calculate something (21.6, 43.1, 15.2) sho ...

Assignmentwrite a program to converts temperatures between

Assignment Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter "1" if they would like to convert a ...

Programming oneusing jgrasp and the software development

Programming One Using jGrasp and the Software Development Kit, write a program in response to the following prompt: Write a program that prompts the user to input three numbers. This program should then output the number ...

Program 1the local yogurt shop is expanding its selection

Program #1 The local yogurt shop is expanding its selection of frozen treats, and would like you to modify the program you wrote to calculate and print their customer's bills. You will also write a test plan to test the ...

First write a program that reads students names followed by

First... Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highe ...

Complete case programming assignment at the end of chapter

Complete Case Programming Assignment at the end of Chapter 4, page 283. Be sure to create an event planning document for each event in the program prior to writing code. Write the code that will execute the program requi ...

Develop a pac and flowcharts for a program that does the

Develop a PAC and flowcharts for a program that does the following. A warehousing company has contracted you to develop a computer program that determines shipping costs for items by size. If the item is over 4 cubic fee ...

Complete the below two problems each problem is a separate

Complete the below two problems. Each problem is a separate program (project). Question 1 Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the follow ...

Assignment introduction to computer sciencepart a this

Assignment: Introduction to Computer Science Part A: This question is to be submitted to the instructor in the form of a Word (or OpenOffice) document containing the Java code and appropriate screen capture(s) of the out ...

Develop a program that displays information about a family

Develop a program that displays information about a family member or friend. This program should print out information about what you like best about him or her. You might even describe your pet, if you have one. Present ...

  • 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

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen