Assignment 1

Download Report

Transcript Assignment 1

Assignment 1
Due : 26th February 2007
Rules :
•
•
•
Joint submissions by up to two people are allowed.
Students are encouraged to draw on other people’s work. Any
such use of the work of others must be specifically acknowledged
– failure to do so will attract penalties.
Plagiarism will be penalised severely.
Assignments should be emailed to :
[email protected] with CA480 Assign1 as subject
Real Time & Embedded Systems
1.1
CA480  Dublin City University 2007
Assignment 1 (cont.)
Assignment
The program stopwtch.c turns the D6 kit into a stopwatch.
(i) Identify how occasional errors, some of up to approximately ten
minutes, can occur in the time displayed. Modify the code so as
to remove the problem, explaining your reasoning clearly.
(ii)Repeated use of the control keys can cause individual errors of
as much as 1/100 second to accumulate to a larger total.
Identify why this can occur. Modify the code so as to remove the
problem, explaing clearly what you have done.
(iii)Give a technical specification of the timing performance of the
system
(iv)Break the programme into separate .c, .h and .asm files and
write a ‘make’ file or equivalent to create the executable.
Real Time & Embedded Systems
1.2
CA480  Dublin City University 2007