Embedded system is a combination of computer hardware and programmable software which is specifically designed for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Embedded system is a combination of computer hardware and programmable software which is specifically designed for a particular task. It involves hardware such as microcontroller and software such as the code written in assembly language or high level language programming. Microcontroller cannot be functioned without a code in it. One of the important parts in making an embedded system is loading the software/program we develop into the microcontroller. Usually it is called "burning program" into the controller. Before "burning a program" into a controller, we must do certain prerequisite operations with the program. This includes writing the program in assembly language or C language in a text editor, compiling the program in a compiler and finally generating the hex file from the compiled program. Then, this hex file will be loaded into the controller to perform a particular task. The following figure shows the code of assembly language for 8051 microcontroller that have been compiled to generate the hex file. However, due to the few errors, the hex file cannot be generated. As an engineer, you have been asked to troubleshoot the problem and required to achieve FOUR (4) objectives as follows: 1. to rewrite the correct assembly code for the compiler to be able to generate hex file, 2. to measure the approximate time delay for assembly program if the crystal frequency is 11.0592 MHz, 3. to generate the C programming code which have similarity function with assembly code by using appropriate timer register, 4. to construct a suitable circuit diagram that align with the C programming code. MAIN: MSDELAY1: HERE 1 HERE 2 HERE 3 Assembly code ORG OH MOV PO, #550 MOV P1, MOV P2, MOV R5, # 550 #550 #250 ACALL MS DELAY MOV PO, #ADH #ADH MOV P1, MOV P2, #ADH MOV R5, #250 ACALL MSDELAY SJMP MAIN -Time delay----- MOV R4, #35 MOV R4, #79 DJNZ R3, HERE 3 DJNZ R4, HERE 2 DJNZ R5, HERE 3 RET END MAIN Embedded system is a combination of computer hardware and programmable software which is specifically designed for a particular task. It involves hardware such as microcontroller and software such as the code written in assembly language or high level language programming. Microcontroller cannot be functioned without a code in it. One of the important parts in making an embedded system is loading the software/program we develop into the microcontroller. Usually it is called "burning program" into the controller. Before "burning a program" into a controller, we must do certain prerequisite operations with the program. This includes writing the program in assembly language or C language in a text editor, compiling the program in a compiler and finally generating the hex file from the compiled program. Then, this hex file will be loaded into the controller to perform a particular task. The following figure shows the code of assembly language for 8051 microcontroller that have been compiled to generate the hex file. However, due to the few errors, the hex file cannot be generated. As an engineer, you have been asked to troubleshoot the problem and required to achieve FOUR (4) objectives as follows: 1. to rewrite the correct assembly code for the compiler to be able to generate hex file, 2. to measure the approximate time delay for assembly program if the crystal frequency is 11.0592 MHz, 3. to generate the C programming code which have similarity function with assembly code by using appropriate timer register, 4. to construct a suitable circuit diagram that align with the C programming code. MAIN: MSDELAY1: HERE 1 HERE 2 HERE 3 Assembly code ORG OH MOV PO, #550 MOV P1, MOV P2, MOV R5, # 550 #550 #250 ACALL MS DELAY MOV PO, #ADH #ADH MOV P1, MOV P2, #ADH MOV R5, #250 ACALL MSDELAY SJMP MAIN -Time delay----- MOV R4, #35 MOV R4, #79 DJNZ R3, HERE 3 DJNZ R4, HERE 2 DJNZ R5, HERE 3 RET END MAIN
Expert Answer:
Answer rating: 100% (QA)
1 Rewriting the Correct Assembly Code for the Compiler to Generate Hex File The assembly code above contains several errors that must be corrected in ... View the full answer
Related Book For
Project Management A Systems Approach to Planning Scheduling and Controlling
ISBN: 978-0470278703
10th Edition
Authors: Harold Kerzner
Posted Date:
Students also viewed these computer network questions
-
A zoom lens system is a combination of lenses that produces a variable magnification while maintaining fixed object and image positions. The magnification is varied by moving one or more lenses along...
-
With the explosion of computer hardware and software during the 1970s and 1980s, companies began developing models to assess the technical risk for the computer hardware and software effort. One such...
-
The rapid evolution of computer hardware and software has made it easy for businesses to conduct computer-based and Web-based (i.e., electronic) surveys. Professors at Michigan State and DePaul...
-
Elevator Controller The block diagram for an elevator controller for a two-floorelevator follows. The inputs FB1 and FB2 are 1 when someone in the elevatorpresses the first and secondfloor buttons,...
-
What is the difference between the RFC 821 and RFC 822?
-
On January 1, 2015, Barwood Corporation granted 5,000 options to executives. Each option entitles the holder to purchase one share of Barwoods 5 par value ordinary shares at 50 per share at any time...
-
An aircraft cruises at a Mach number of 2.0 at an altitude of \(15 \mathrm{~km}\). Inlet air is decelerated to a Mach number of 0.4 at the engine compressor inlet. A normal shock occurs in the inlet...
-
Lawrence Corporation sells two ceiling fans, Deluxe and Basic. Current sales total 60,000 units, consisting of 39.000 Deluxe units and 21,000 Basic units. Selling price and variable cost information...
-
You've got a flat tire. To lift your car, you make a homemade lever. A very light 1.6-m -long handle part is pushed down on the right side of the fulcrum and a 0.050-m -long part on the left side...
-
Unexpected Indent /2 In Python, we increase the indentation level of our code to define a new block for statements like def. Indentation is expected to be consistent. The code below uses inconsistent...
-
solve problems of "LinkedList.java", problems are in comments of "LinkedList.java" Please showing the output There are some tested method in "LinkedListTest.java" (Please don't modify "Account.java"...
-
How do mentorship ecosystems transcend the confines of traditional hierarchical structures, fostering horizontal networks of mutual learning and knowledge exchange that transcend boundaries of age,...
-
Marion no longer needs a large house and has decided to sell the property and to purchase a townhouse. The expected proceeds from the sale of the large house is AUD2.5 million. From these proceeds,...
-
James invests $100,000 in a city of Athens bond that pays 8% interest. Alternatively, James could have invested the $100,000 in a bond recently issued by HighTech, Incorporated that pays 10% interest...
-
Explain the type of electromagnetic spectrum and how the electromagnetic spectrum is used of visible light, radio waves, microwaves, infrared radiation, ultraviolet radiation, and x-rays and gamma...
-
If you took $450,000 mortgage loan to be repaid over 30 years at 7.0%, calculate the amount of principal reduction in the first year.
-
What does they referenes have in common: References: Economics Help. (n.d.). Disadvantages of minimum wages. Retrieved from https://www.economicshelp.org/work markets/drawbacks least wages/ Economics...
-
What is EBIT/eps analysis? What information does it provide managers?
-
Once a project begins, a good project manager will set up checkpoints. How should this be accomplished? Will the duration of the project matter? Can checkpoints be built into a schedule? If so, how...
-
How should a project manager react when he finds inefficiency in the functional lines? Should executive management become involved?
-
A project manager discovers that his team has neglected to complete the network diagram for the project. The network diagram is shown in Figure P1228. However, the project manager has some...
-
The accountant for Elite Security Services Ltd reviewed the following information for accounts receivable: For the financial year 2022 - 2023 1. At 1 July 2022, Allowance for Doubtful Debts had an...
-
On 1 June, Sugar Rush Ltd had Accounts Receivable and Allowance for Doubtful Debts accounts as below. GST Inclusive. The following transactions occurred during the month of June: 5. Credit sales...
-
Outback Get Away Ltd sells four-wheel drive accessories and recovery equipment on credit. The accounting records at 30 June 2023 highlights the following. Ignore GST. In the past, the companys yearly...
Study smarter with the SolutionInn App