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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
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 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
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY