Consider that a PIC18 is with a frequency of 8MHz (a) Find the time delay for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider that a PIC18 is with a frequency of 8MHz (a) Find the time delay for the subroutine shown below (no need to compute the overhead). Show your steps. (4 marks) Delay: HERE Delay: AGAIN (c) MOVLW MOVWE REGB NOP NOP NOP NOP NOP NOP NOP DECF BNZ REUTURN 2 MOVLW Ox?? MOVWE TOCON MOVLW 0x?? MOVWE TMROH MOVLW Ox?? MOVWF TMROL ??????? ??????? ??????? RETURN MOVLW MOVWF Consider the following subroutine that uses Time0 for generating 10 ms delay. Complete code BCF INTCON, TMROIF BSF TOCON, TMROON NOP DECF BNZ RETURN d'100' PORTS RDO PIC18 Sender (7 marks) Suppose the PIC18 sender use Simple Strobe for handshaking, where PORTD is for data output and RB0 is used for STB signal. STB PORTO Machine Cycle Data Instruction 1 1 1 I REGB, FI HERE 2 1 1 1 1 DATA Line DO-07 Receiver (i) Write a PIC18 subroutine for the PIC18 sender to send out a byte from WREG. Assume that the STB signal should be hold for 4 MC. Also, write several lines of code to initialize the PORTD. C) What are disadvantages of using Simple Strobe for IO. STB DATA MC 1 1 1 1 2 (branch) 1 (falling through) 2 (9 marks) Consider that a PIC18 is with a frequency of 8MHz (a) Find the time delay for the subroutine shown below (no need to compute the overhead). Show your steps. (4 marks) Delay: HERE Delay: AGAIN (c) MOVLW MOVWE REGB NOP NOP NOP NOP NOP NOP NOP DECF BNZ REUTURN 2 MOVLW Ox?? MOVWE TOCON MOVLW 0x?? MOVWE TMROH MOVLW Ox?? MOVWF TMROL ??????? ??????? ??????? RETURN MOVLW MOVWF Consider the following subroutine that uses Time0 for generating 10 ms delay. Complete code BCF INTCON, TMROIF BSF TOCON, TMROON NOP DECF BNZ RETURN d'100' PORTS RDO PIC18 Sender (7 marks) Suppose the PIC18 sender use Simple Strobe for handshaking, where PORTD is for data output and RB0 is used for STB signal. STB PORTO Machine Cycle Data Instruction 1 1 1 I REGB, FI HERE 2 1 1 1 1 DATA Line DO-07 Receiver (i) Write a PIC18 subroutine for the PIC18 sender to send out a byte from WREG. Assume that the STB signal should be hold for 4 MC. Also, write several lines of code to initialize the PORTD. C) What are disadvantages of using Simple Strobe for IO. STB DATA MC 1 1 1 1 2 (branch) 1 (falling through) 2 (9 marks)
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these accounting questions
-
Suppose that call options on a stock with strike prices $30 and $ 40 cost $8 and $4, respectively. To create a bull spread by buying $30 call and selling the $40 call. Show a table that shows the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
(a) Identify and explain 5 key evaluation criteria a new single-family home buyer is likely to use in selecting a home builder (to buy the house from)? Use research to support your answer. (b) How...
-
The table lists the actual annual cost y to drive a midsize car 15,000 miles per year for selected years X. (a) Predict whether the correlation coefficient is positive, negative, or zero. (b) Find a...
-
Consider the following data, which relate to the two divisions of McIntyre Products: Required Compare the two divisions in terms of return on investment and residual income. In the past year, which...
-
Fill in the blanks in the following passage by choosing the most appropriate term from the following list: debt issues, higher, internally generated cash, lower, risen, financial deficit, fallen,...
-
Tristate Recreation Park (TRP) finances operations with both bonds and stock. Suppose TRP issued \(\$ 200,000\) of 10 -year, \(6 \%\) bonds payable under various market conditions. Match each market...
-
Beta Corporation is in the process of completing a contract to produce 150 units for a given customer. The contract consisted of R&D, testing and qualification, and full production. The industrial...
-
1. Mitchell West is a new entry-level accountant at Spectacular Specs and has been working on allocating costs to jobs that have been completed for the month. Mitchell notices that the job cost sheet...
-
A. Create a budget (using the Budget tab in the Final Project Workbook) based on your second year of operations. [ACC-325-01] B. Summarize your budget and make suggestions for the future of your...
-
Consider a consumer who is deciding to buy insurance for his beachfront house. Suppose the probability that the house will get damaged by the rising sea level is 0.4. Let us assume that the valuation...
-
Use the diagram to fill in the following chart. If you are working on paper, you can rewrite the chart instead of print. The mass of the bob is 200g.
-
Instructions Using Microsoft word, write a blog post that addresses the following issues. You must include at least one (1) hyperlink to a web article in each section of the blog post, e.g., a link...
-
Find the components of the vector with length c = 1.00 and angle - 30.0" as s = Enter numerically, separated by a comma, the x component followed by the y co View Available Hint(s)
-
A baseball rolls into the outfield at a speed of 20.2m/s and travels a distance of 14m into the outfield in 0.71s until fielded by the player. How fast is the baseball going once it reaches the...
-
4. Evaluate the speed and period for an orbital altitude of 500 km (G= 6.67 10- newton- metre-kilogram 2. RE = 6.371 x 106 m, ME = 6.0456104 kg)
-
How would the investor record his purchase of a $ 100,000, 10%, 14 year bond, at 96? Question 39 options: a) Bond investment 96,000 Cash 96,000 b) Bond investment 100,000 Cash $ 100,000 c ) Bond...
-
An annual report of The Campbell Soup Company reported on its income statement $2.4 million as equity in earnings of affiliates. Journalize the entry that Campbell would have made to record this...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
David and Darlene Jasper have one child, Sam, who is 6 years old. The Jaspers reside at 4639 Honeysuckle Lane, Los Angeles, CA 90248. David's Social Security number is 577-11-3311, Darlene's is...
-
Charlie's Green Lawn Care is a cash basis taxpayer. Charlie Adame, the sole proprietor, is considering delaying some of his December 2012 customer billings for lawn care into the next year. In...
-
Explain the limitations that auditors face when they perform the attest function.
-
Indicate whether you think the following third-party groups would normally represent a (1) primary beneficiary, (2) foreseen party, or (3) foreseeable party. Give reasons for your answers. a. A...
-
Use and Dispose Company was organized to manufacture and sell inexpensive golf clubs that can be used during the golf round and then thrown away at the end of the round. In order to keep the business...
Study smarter with the SolutionInn App