Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

Summarize training and development implementation issues.

Answered: 1 week ago