for frdm k64 in mcuexpresso ide The following is the required sequence of the system’s operations:1. When the program starts, the onboard GREEN LED is ON (“regular operation”), pin PTC16 is Low (“alarmsound is OFF”), and the initial message is shown on the console:MCO556_FinalProject_Lastname1_Lastname2Then, the program will run continuously three tasks – Software Timer ISR, Task1, and Task2. Each task willprint one message to the console, on a new line, exactly as shown below:Software Timer ISR – sensors are readTask1 – sensor data is processedTask2 – display is updated2. When button SW2 is pressed, the button’s ISR will do the following actions:a) it will stop the Software Timer and print the following message:SW2 ISR – EMERGENCY SYSTEM SHUTDOWN! b) it will cause Task3 to start running to continue processing the “emergency-related procedures”,c) Task3 will output the following text messages:Task3 - EMERGENCY protocol is being executed...The system is haltedRED LIGHT is flashing and SOUND ALARM is ONPress button SW3 to clear the system and reboot…d) then, Task3 will make the onboard GREEN LED OFF, and pin PTC16 High (“alarm sound is ON”). Use anexternal LED connected to pin PTC16 to demonstrate the pin’s operations.e) Task3 will make the onboard RED LED to blink rapidly at 4Hz by using the PIT timer channel 0 interrupts.At this point, the system is supposed to be “halted”, because the software timer has been stopped by theSW2 ISR, and as a result, Task1 and Task2 will not be able to run, and this is the essential requirement forthis project.3. When button SW3 is pressed, the button’s ISR will do the following actions:a) print the following message:SW3 ISR - REGULAR system operation is resuming...b) turn the RED LED OFF and GREEN LED ON,c) make pin PTC16 Low,d) and restart the Software Timer.After this, the program will run the three initial tasks again – Software Timer, Task1, and Task2. The REDLED will be OFF, GREEN LED ON, and pin PTC16 will be Low.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

for frdm k64 in mcuexpresso ide

The following is the required sequence of the system’s operations:
1. When the program starts, the onboard GREEN LED is ON (“regular operation”), pin PTC16 is Low (“alarm
sound is OFF”), and the initial message is shown on the console:
MCO556_FinalProject_Lastname1_Lastname2
Then, the program will run continuously three tasks – Software Timer ISR, Task1, and Task2. Each task will
print one message to the console, on a new line, exactly as shown below:
Software Timer ISR – sensors are read
Task1 – sensor data is processed
Task2 – display is updated
2. When button SW2 is pressed, the button’s ISR will do the following actions:
a) it will stop the Software Timer and print the following message:
SW2 ISR – EMERGENCY SYSTEM SHUTDOWN!

b) it will cause Task3 to start running to continue processing the “emergency-related procedures”,
c) Task3 will output the following text messages:
Task3 - EMERGENCY protocol is being executed...
The system is halted
RED LIGHT is flashing and SOUND ALARM is ON
Press button SW3 to clear the system and reboot…
d) then, Task3 will make the onboard GREEN LED OFF, and pin PTC16 High (“alarm sound is ON”). Use an
external LED connected to pin PTC16 to demonstrate the pin’s operations.
e) Task3 will make the onboard RED LED to blink rapidly at 4Hz by using the PIT timer channel 0 interrupts.
At this point, the system is supposed to be “halted”, because the software timer has been stopped by the
SW2 ISR, and as a result, Task1 and Task2 will not be able to run, and this is the essential requirement for
this project.
3. When button SW3 is pressed, the button’s ISR will do the following actions:
a) print the following message:
SW3 ISR - REGULAR system operation is resuming...
b) turn the RED LED OFF and GREEN LED ON,
c) make pin PTC16 Low,
d) and restart the Software Timer.
After this, the program will run the three initial tasks again – Software Timer, Task1, and Task2. The RED
LED will be OFF, GREEN LED ON, and pin PTC16 will be Low.

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education