Task One - Switch it Up! (20 marks) Using the software Assembly Language Implementation of Displaying...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Task One - Switch it Up! (20 marks) Using the software Assembly Language Implementation of Displaying Switch Values on LEDs (Switches_to_LEDs.asm) on page 1 of this assignment, you should have discovered that pressing one of the four Push Buttons SW2, SW3, SW4 or SW5 resulted in the associated LED being momentarily turned off until the switch was released - e.g. pressing SW2 momentarily turned off PB3. In this task you are to build upon that program. Your new program's (Push_Button_SW_Patterns.asm) requirements are detailed in the video (contains audio) embedded below. Note that the video is best viewed in Adobe Acrobat at 170% magnification and that right-clicking on the video while it is playing will cause the video to play in full-screen mode. The diagram to the right further explains the operation of the LEDs connected to their Output Port B (PORTB) and the Switch Input Port H (PTH). To assist you with this task, the problem solution flowchart and a partial code listing (skeleton code) has been provided on Blackboard. Flowchart for Push Button SW_Patterns.pdf Push Button SW Patterns.asm A notepad version of the code (Push_Button_SW_Patterns.txt) has also been supplied in case the .asm code becomes misaligned when loaded into ASMIde. LED ON 1 LED OFF-PB PB6 PB5 PB4 PS3 PB2 PSI PBO Dip Switches Button Pushed 000 Push Buttons Button-Pushed-1 su2 s3 s4 sw5 LEDs Example: If aw a pushed, then the value on the Switch Input Port (PTH) would be $11111110 As part of your solution, you are to complete to the program listing; complete the missing Switch values; use all of the CONSTANT values provided; ensure that your header information is complete and accurate; code properly aligned and commented; code conforms to the flow of the provided flowchart; code is totally functional as per the requirements in the supplied video You will demonstrate your solution using the Wytec Dragon 12+ Hardware board, Task One - Switch it Up! (20 marks) Using the software Assembly Language Implementation of Displaying Switch Values on LEDs (Switches_to_LEDs.asm) on page 1 of this assignment, you should have discovered that pressing one of the four Push Buttons SW2, SW3, SW4 or SW5 resulted in the associated LED being momentarily turned off until the switch was released - e.g. pressing SW2 momentarily turned off PB3. In this task you are to build upon that program. Your new program's (Push_Button_SW_Patterns.asm) requirements are detailed in the video (contains audio) embedded below. Note that the video is best viewed in Adobe Acrobat at 170% magnification and that right-clicking on the video while it is playing will cause the video to play in full-screen mode. The diagram to the right further explains the operation of the LEDs connected to their Output Port B (PORTB) and the Switch Input Port H (PTH). To assist you with this task, the problem solution flowchart and a partial code listing (skeleton code) has been provided on Blackboard. Flowchart for Push Button SW_Patterns.pdf Push Button SW Patterns.asm A notepad version of the code (Push_Button_SW_Patterns.txt) has also been supplied in case the .asm code becomes misaligned when loaded into ASMIde. LED ON 1 LED OFF-PB PB6 PB5 PB4 PS3 PB2 PSI PBO Dip Switches Button Pushed 000 Push Buttons Button-Pushed-1 su2 s3 s4 sw5 LEDs Example: If aw a pushed, then the value on the Switch Input Port (PTH) would be $11111110 As part of your solution, you are to complete to the program listing; complete the missing Switch values; use all of the CONSTANT values provided; ensure that your header information is complete and accurate; code properly aligned and commented; code conforms to the flow of the provided flowchart; code is totally functional as per the requirements in the supplied video You will demonstrate your solution using the Wytec Dragon 12+ Hardware board,
Expert Answer:
Related Book For
Posted Date:
Students also viewed these business communication questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Consider the rigid aircraft in planar flight indicated below with points P and R separated by distance L. Known measurement data includes components of translational velocity and acceleration vectors...
-
What do you think are the main threats to this service?
-
The following table was taken from the 2019 annual report of Merck & Company, a major U.S. pharmaceutical company (dollars in millions). INSTRUCTIONS: a. How much did market value accounting impact...
-
If a well-behaved investment alternative's internal rate of return (IRR) is equal to MARR, which of the following statements about the other measures of worth for this alternative must be true? 1....
-
Verona Pizza is a small neighborhood pizzeria that has a small area for in-store dining as well offering takeout and free home delivery services. The pizzerias owner has determined that the shop has...
-
Suppose a home's UATOTAL for heating is 1500 BTU/hr-F. Suppose the average outdoor temperature over a day is 28F and the desired indoor temperature is 68 F. Any electricity the heating system uses...
-
Esfandairi Enterprises is considering a new three-year expansion project that requires an initial fixed asset investment of $2.31 million. The fixed asset falls into the three-year MACRS class (MACRS...
-
Tomatoes and potatoes are produced in both U.S. and Canada. U.S. can produce as much as 180,000 kg of tomatoes or at most 135,000 kg of potatoes in a year. Canada can produce 80,000 kg of tomatoes...
-
If the frequency of oscillation of the wave emitted by an FM radio station is 103.6 MHz, determine the wave's (a) period of vibration and (b) wavelength. (Hint: Radio waves travel at the speed of...
-
2 A stereo speaker (considered a small source) emits sound waves with a L power output of 35.9 W. (Assume that the sound is emitted uniformly in all directions from the speaker.) (a) Find the...
-
What are the emerging trends in synthetic biology, and how do they offer novel solutions to environmental and societal challenges?
-
Can you explain the concept of allelic heterogeneity and its significance in understanding the genetic basis of complex diseases?
-
United Claim Processors provides claims processing services for major insurance companies. The Winnipeg location processes all health benefit claims for various insurance benefit providers. Claims...
-
Define deferred revenue. Why is it a liability?
-
Explain the GPC backup technique. Is it used for sequential files or direct access techniques? Explain.
-
What are the primary reasons for separating operational tasks?
-
Would the writing down of obsolete inventory be recorded in a special journal or the general journal? Why?
-
What are the functions of activator proteins and repressor proteins in transcription? Explain how these proteins work at the molecular level.
-
The gene that encodes the enzyme called tyrosine hydroxylase is known to be activated by the CREB protein. Tyrosine hydroxylase is expressed in nerve cells and is involved in the synthesis of...
-
The binding of small effector molecules, protein-protein interactions, and covalent modifications are three common ways to modulate the activities of transcription factors. Which of these three...
Study smarter with the SolutionInn App