Question: #include #include #include #include / * * CODE: Write your code for Ex 7 . 7 below this line. * / / * * CODE:

#include
#include
#include
#include
/** CODE: Write your code for Ex 7.7 below this line. */
/** CODE: Write your code for Ex 7.7 above this line. */
#include "qutyio.h"
/** Tutorial 07
INTRODUCTION:
In this week's tutorial you will implement a stopwatch. This stopwatch
is controlled using the pushbuttons and increments every one sixteenth
of a second. The elapsed time is displayed on the 7-segment display in
hexadecimal sixteenths of a second (i.e.,0x01 represents 0.0625 s).
Pushbutton functionality is described below:
- Pushbutton S1 starts the stopwatch
- Pushbutton S2 stops the stopwatch
- Pushbutton S4 resets the elapsed time back to 0x00
Once the stopwatch reaches 0xFF, it will stop increasing.
*/
/** EX: 7.0
See include/initialisation.c.
*/
/** EX: 7.1
See include/initialisation.c.
*/
/** EX: 7.2
See src/timer.c.
*/
/** EX: 7.3
See src/timer.c.
*/
/** EX: 7.4
See src/timer.c.
*/
/** EX: 7.5
See include/timer.h.
*/
/** EX: 7.6
See src/buttons.c.
*/
int main(void)
{
// Configures pins PA1, PC0, and PC2, to drive the 7-segment display
display_init();
// Drives DISP EN net HIGH
display_on();
/** EX: 7.7
TASK: Include the header file containing the initialisation
functions you wrote in Ex 7.0, and call these functions below.
NOTE: This header file should be included at the top of this file.
*/
/** CODE: Write your code for Ex 7.7 above this line. */
// This program is interrupt-driven and therefore does not need any
// additional code in main().
while (1)
; // Loop indefinitely
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!