Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me to write an assembly program for this assignment? The figure below shows the microcontroller for a microwave oven. The LED digital

Can someone help me to write an assembly program for this assignment?

image text in transcribed

The figure below shows the microcontroller for a microwave oven. The LED digital display is a countdown timer and shows the remaining time in minutes and seconds (MM:SS) until the unit turns off. All the pins in Portl and two pins in Port2, P2.0 & P2.1 are connected to the LED display. A library function 'DISPLAY" is available for use and does the conversion from seconds (R14) into minutes and seconds and displays this time on the LED (you do not need to code DISPLAY). When the pins connected to the LED are configured as outputs, this function will take the seconds value stored as a word in register R14, convert that into minutes and seconds and display the result on the LED Several pins in Port2 are used to control the oven. A 'SET' button is connected to P2.2. Each time this button is pressed, 3 minutes get added to the timer, up to a maximum of 15 minutes. While the timer shows a value greater that zero, the oven is on. The oven's heating element is connected to P2.4. A voltage level of 3.3 Volts (or logical 1) on P2.4 turns the heating element on, and a value of 0V (logical 0) on P2.4 turns in off. A 'RESET' button is connected to P2.3. When this button is pressed, the timer is reset back to 00:00 and the oven turns off. A 1 Hz stable oscillator is connected to P2.7. A)Write an MSP430 assembly program to control the operations of this system Make sure to add the interrupt vectors to vector section of the program B)If the oscillator connected to pin P2.7 is replaced by a 1 KHz (1000 Hz) clock, rewrite the affected part(s) of your program to accommodate this change C)A safety requirement is to reset the timer and turn the oven off any time the oven door is open. A motion sensor is connected to the door and will produce a 3.3 V reading on pin P2.6 when the door is open. Add the necessary logic to your program to satisfy this requirement P1 P1 P1 P1 P1 P1 P1 P1 PORT 1 MSP 430 P2.0 P2.1 P2.2 P2.3 SET RESET PORT 2 Cc P2.5 P2.6 DOOR 2.7 1 Hz The figure below shows the microcontroller for a microwave oven. The LED digital display is a countdown timer and shows the remaining time in minutes and seconds (MM:SS) until the unit turns off. All the pins in Portl and two pins in Port2, P2.0 & P2.1 are connected to the LED display. A library function 'DISPLAY" is available for use and does the conversion from seconds (R14) into minutes and seconds and displays this time on the LED (you do not need to code DISPLAY). When the pins connected to the LED are configured as outputs, this function will take the seconds value stored as a word in register R14, convert that into minutes and seconds and display the result on the LED Several pins in Port2 are used to control the oven. A 'SET' button is connected to P2.2. Each time this button is pressed, 3 minutes get added to the timer, up to a maximum of 15 minutes. While the timer shows a value greater that zero, the oven is on. The oven's heating element is connected to P2.4. A voltage level of 3.3 Volts (or logical 1) on P2.4 turns the heating element on, and a value of 0V (logical 0) on P2.4 turns in off. A 'RESET' button is connected to P2.3. When this button is pressed, the timer is reset back to 00:00 and the oven turns off. A 1 Hz stable oscillator is connected to P2.7. A)Write an MSP430 assembly program to control the operations of this system Make sure to add the interrupt vectors to vector section of the program B)If the oscillator connected to pin P2.7 is replaced by a 1 KHz (1000 Hz) clock, rewrite the affected part(s) of your program to accommodate this change C)A safety requirement is to reset the timer and turn the oven off any time the oven door is open. A motion sensor is connected to the door and will produce a 3.3 V reading on pin P2.6 when the door is open. Add the necessary logic to your program to satisfy this requirement P1 P1 P1 P1 P1 P1 P1 P1 PORT 1 MSP 430 P2.0 P2.1 P2.2 P2.3 SET RESET PORT 2 Cc P2.5 P2.6 DOOR 2.7 1 Hz

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

Students also viewed these Databases questions

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago