Assgn3_Summer11 - CSC230 C SC 230 Summer 2011 Assignment 3...

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

View Full Document Right Arrow Icon
CSC230 Page 1 C SC 230 – Summer 2011 – Assignment 3 Due Monday July 11 at 4:00 pm; Total Marks = 50 The goal of this assignment is to develop your competence at programming good, robust and elegant ARM code, plus downloading it to a board to get real hardware to cooperate with you. Finally you will be giving a demo and receive one-on-one feedback on your work, in the hope that we can provide you with a construc- tive learning experience and good suggestions for the future. Do check the web pages after the posting of this assignment, as changes and/or clarifications will be added as necessary. The assignment overall contains the following main tasks: 1. Write a new program for the control of a small embedded system, following specifications provided here. 2. Learn how to fix problems in your programs and improve them with new features. 3. Test the program using the simulator with the board plug-in as the output peripherals. 4. Learn how to change existing working code to make it compatible with the Embest board, download it and run it on the board. 5. Give a demo of your work in person, discuss your design choices and receive feedback. The Application’ Requirements – An Embedded System for an Elevator Software requirements explain what a piece of software is expected to do, that is its functional requirements. Specifications explain how the functional requirements should be designed and implemented, and they are presented in separate sections below. We all have used elevators and would probably claim to have a pretty good idea of how they work. Yet there is a lot to learn about the different ways an algorithm can be designed for such an operation. The problem here is restricted to a single elevator travelling from floor 1 to floor 4. The simplest single elevator algorithm can be summarized as follows: Continue traveling in the same direction while there are remaining requests in that same direction. If there are no further requests in that direction, then stop and become idle, or change direction if there are requests in the opposite direction. The elevator algorithm has found an application in computer operating systems as an algorithm for schedul- ing hard disk requests. Modern elevators use more complex heuristic algorithms to decide which request to service next. An introduction to these algorithms can be found in the “Elevator traffic handbook: theory and practice” by G.C. Barney. Because we don’t have an actual elevator to control, we will program just the part of the embedded system responsible for handling user input and displaying information, so that the program will actually be a “simu- lation” of the movement of an elevator. Many details about the mechanics of the operation (opening doors,
Background image of page 1

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

View Full Document Right Arrow Icon
CSC230 Page 2 slow acceleration when first starting to move, slowing down when reaching a floor, speed, etc.) are ignored. In 4th year you might take the courses in Mechatronics and expand your competence by programming such
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 23

Assgn3_Summer11 - CSC230 C SC 230 Summer 2011 Assignment 3...

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

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