A program will be written in C language for a microwave oven. The desired features of the microwave oven are as follows: • 2 buttons will be used to adjust how many seconds the microwave oven will work. One button is for increasing and the other for decreasing. Each time the button is pressed, the working time will be determined in 5 second intervals. • 1 button will be used to determine the operating power (watts) of the microwave oven. The power ratings are: 200, 300, 450, 600, 750, 800. (You can think of them as operating modes, not numerical values. Such as modl=200, mod2=300 etc. According to the selected mode number, the leds arranged side by side will be turned on. For example; If mod3 is selected, 3 leds will be on, if mod4 is selected, the 4th led will also be on.) After the operating time and operating mode are set, the start button will be pressed and the microwave oven will be started. When the oven starts to work, the timer will count down and the motor that rotates the table inside will rotate at a constant speed. When the operation of the microwave oven is completed, a message should be sent from the serial port as "operation complete" and the buzzer connected to P1.0 should operate at 1 second intervals for 20 seconds.

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

A program will be written in C language for a microwave oven. The desired features of the microwave oven are
as follows:
 2 buttons will be used to adjust how many seconds the microwave oven will work. One button is for
increasing and the other for decreasing. Each time the button is pressed, the working time will be determined
in 5 second intervals.
 1 button will be used to determine the operating power (watts) of the microwave oven. The power ratings
are: 200, 300, 450, 600, 750, 800.
(You can think of them as operating modes, not numerical values. Such as mod1=200, mod2=300 etc.
According to the selected mode number, the leds arranged side by side will be turned on. For example; If
mod3 is selected, 3 leds will be on, if mod4 is selected, the 4th led will also be on.)
 After the operating time and operating mode are set, the start button will be pressed and the microwave oven
will be started. When the oven starts to work, the timer will count down and the motor that rotates the table
inside will rotate at a constant speed.
 When the operation of the microwave oven is completed, a message should be sent from the serial port as
"operation complete" and the buzzer connected to P1.0 should operate at 1 second intervals for 20 seconds.

Write the required C code by adding your comments to the important places and test the code you wrote in proteus

A program will be written in C language for a microwave oven. The desired features of the microwave oven are
as follows:
• 2 buttons will be used to adjust how many seconds the microwave oven will work. One button is for
increasing and the other for decreasing. Each time the button is pressed, the working time will be determined
in 5 second intervals.
• 1 button will be used to determine the operating power (watts) of the microwave oven. The power ratings
are: 200, 300, 450, 600, 750, 800.
(You can think of them as operating modes, not numerical values. Such as modl=200, mod2=300 etc.
According to the selected mode number, the leds arranged side by side will be turned on. For example; If
mod3 is selected, 3 leds will be on, if mod4 is selected, the 4th led will also be on.)
After the operating time and operating mode are set, the start button will be pressed and the microwave oven
will be started. When the oven starts to work, the timer will count down and the motor that rotates the table
inside will rotate at a constant speed.
When the operation of the microwave oven is completed, a message should be sent from the serial port as
"operation complete" and the buzzer connected to P1.0 should operate at 1 second intervals for 20 seconds.
Write the required C code by adding your comments to the important places and test the code you wrote in proteus
Transcribed Image Text:A program will be written in C language for a microwave oven. The desired features of the microwave oven are as follows: • 2 buttons will be used to adjust how many seconds the microwave oven will work. One button is for increasing and the other for decreasing. Each time the button is pressed, the working time will be determined in 5 second intervals. • 1 button will be used to determine the operating power (watts) of the microwave oven. The power ratings are: 200, 300, 450, 600, 750, 800. (You can think of them as operating modes, not numerical values. Such as modl=200, mod2=300 etc. According to the selected mode number, the leds arranged side by side will be turned on. For example; If mod3 is selected, 3 leds will be on, if mod4 is selected, the 4th led will also be on.) After the operating time and operating mode are set, the start button will be pressed and the microwave oven will be started. When the oven starts to work, the timer will count down and the motor that rotates the table inside will rotate at a constant speed. When the operation of the microwave oven is completed, a message should be sent from the serial port as "operation complete" and the buzzer connected to P1.0 should operate at 1 second intervals for 20 seconds. Write the required C code by adding your comments to the important places and test the code you wrote in proteus
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Structure chart
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