Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 (0). 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

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago