Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 5 (8 points) The Foreground/Background system is one of the most common architectures for embedded system. Consider the following simple embedded system. An on/off

image text in transcribed
Question 5 (8 points) The Foreground/Background system is one of the most common architectures for embedded system. Consider the following simple embedded system. An on/off switch (the switch can either be in the ON or OFF position at any time and will be in either position when the system is initialised) is connected to a GPIO input line where the line is high (1) when the switch is on and low (0) when the switch is off. It is used to control a conveyor whose electronics is also connected to a GPIO output line where the conveyor is running when the line is high (1) and not running when the line is low (O). Provide a design (DO NOT use code or pseudo-code) using the foreground/background architecture for the above system. Assume that the GPIO provides NO interrupt features and that a timer is available. In your design a. Identify two tasks for the system and describe each task, one invoked with interrupts (foreground) and one run in the idle thread (background). b. In your description, address how the on/off switch debouncing will be handled (provide details) c. Provide some detail on how the tasks are synchronized. Question 5 (8 points) The Foreground/Background system is one of the most common architectures for embedded system. Consider the following simple embedded system. An on/off switch (the switch can either be in the ON or OFF position at any time and will be in either position when the system is initialised) is connected to a GPIO input line where the line is high (1) when the switch is on and low (0) when the switch is off. It is used to control a conveyor whose electronics is also connected to a GPIO output line where the conveyor is running when the line is high (1) and not running when the line is low (O). Provide a design (DO NOT use code or pseudo-code) using the foreground/background architecture for the above system. Assume that the GPIO provides NO interrupt features and that a timer is available. In your design a. Identify two tasks for the system and describe each task, one invoked with interrupts (foreground) and one run in the idle thread (background). b. In your description, address how the on/off switch debouncing will be handled (provide details) c. Provide some detail on how the tasks are synchronized

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago