lab2_C09

lab2_C09 - ECE2801: Foundations of Embedded Systems Lab...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE2801: Foundations of Embedded Systems Lab Exercise #2 -- C Term 2009 Timers and Interrupts -- A Controller and Display for a Gasoline Pump In this laboratory you will use MSP430 to implement a control and display  system suitable for use in a gasoline pump.  The main purpose of the assignment  is to understand the operation of the MSP430's timers and to gain experience  writing software which depends on interrupts. However, you will have to other  more mundane tasks (like ASCII-to-decimal and decimal-to-ASCII conversion) to  make your system work.  You have 2 weeks to complete this lab but you will need  to start right away. There are a large number of functionalities that must  implemented in order to complete the whole project. Assignment:   Most common gas pumps have a digital display and user interface. This  interface prompts the user for payment method and product selection. It then  shows a running of the amount of gas pumped as well as the cost.  In this lab you  will use the four buttons on the Olimex MSP430 board to simulate a gas pump  capable of “dispensing” three grades of gas and diesel. Button 1 will represent  regular gas, button 4 will be for diesel, etc.  It is assumed that fuel in being  dispensed at a fixed rate (gallons per second) while the button is pressed.  Your  controller must be able to accurately measure the amount of time that the button  has been pressed in order to calculate the cost of the “fill-up”.  In order to display  the gallons dispensed and cost you will need to perform multi-digit ASCII to  integer conversion.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course ECE 2801 taught by Professor Jarvis during the Spring '08 term at WPI.

Page1 / 4

lab2_C09 - ECE2801: Foundations of Embedded Systems Lab...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online