What does the code segment do assuming that p3.5

Assignment Help Basic Computer Science
Reference no: EM13165595

Consider the following code segment. Assume that processor clock in the active mode is set to 1,000,000 Hz. In this mode

the platform draws 0.5 mA.

1. while(1) {

2. int i;

3. for(i = 2000; i>0; i--); // one loop iteration takes 5 clock cycles

4. P3OUT |= BIT5; // Set P3.5

5. for (i = 2000; i>0; i--); // Delay

6. P3OUT &= ~BIT5; // Clear P3.5

7. }

1).What does the code segment do assuming that P3.5 is configured as a digital output. You may ignore delay

needed to execute instructions in lines 1, 4 and 6.

 

2).What will happen if you connect P3.5 at the buzzer?

 

3). How would you implement functionality achieved by the code segment above using TimerB. Port P3.5 is

multiplexed with the output signal from the capture and compare block 4 of TimerB. Give details. How would you initialize the system? What would you do in the main loop?

Reference no: EM13165595

Questions Cloud

Represent processor demand in the time interval : Let the function D[i, j] represent processor demand in the time interval (i, j). Prove the following theorem.
How many grams of br2 would there be moles of br2 : How many grams of Br2 would there be in 8.00 moles of Br2?
What is the formula weight of cu(no3)2 : What quantity of Cu(NO3)2 is present in 201 mL of a 0.50 M solution?
How many photons does such a laser emit in one minute : Small helium-neon lasers emit 3.60 mJ/s of light at 634 nm. How many photons does such a laser emit in one minute?
What does the code segment do assuming that p3.5 : What does the code segment do assuming that P3.5 is configured as a digital output. You may ignore delay needed to execute instructions in lines 1, 4 and 6.
Which of the following molecules are polar : Which of the following molecules are polar? (There may be more than one; choose ALL the polar molecules for full credit)
Draw line-angle structural formulas : Draw line-angle structural formulas for 8 constitutional isomers that have a molecular formula C4H8O.
Calculate the molar mass of the biomolecule : a 200 gram sample of a large biomolecule was dissolved in 15 grams of carbon tetrachloride. the boiling point of this solution was determined to be 77.85 degees celcius. calculate the molar mass of the biomolecule.
Context of a software system : Identify some examples of testing a safety requirement and a reliability requirement in the context of a software system that controls the electrical components of a roller coaster at an amusement park

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The assignment has been designed

The assignment has been designed to assess students' understanding of the usage of data communications and computer networking technologies in real life and to demonstrate their engagement with the subject.

  Program that reads a file of computer data names computers

write a program that reads a file of computer data names computers.txt. creates an array of Computer objects.

  Solve decanting problem using euclidean algorithm

Use Euclidean algorithm to solve decanting problem for decanters of sizes 1317 and 1075. Or we can say, determine integers x and y.

  What is the total password population

A phonetic password generator picks two segments randomly for each six-letter password. the form of each segment is consonant, voul, consonant, where V= and C= (V)

  Determine access time when there is cache miss

Determine the access time when there is cache miss? Suppose that cache waits until line has been fetched from main memory and then re-executes for hit.

  Write a program to prompt the user to enter a postfix expres

Write a program to prompt the user to enter a postfix expression. When the user presses enter, the stack based method for constructing expression trees will be executed

  Explain how has science enhanced quality of life

Explain typical day in your life from time you wake up, until time you go to bed. Explain how science influences you and your routine throughout the day.

  Java application that prints the table

Create a JAVA application that prints the table using the sqrt () method in the Math class. Use a for loop to produce the output results.

  With replacement order matters

Given an alphabet of size N=9. Write a c++ program that compares the number of possible sequences of the length L that can be generated inder the following assumptions: With replacement order matters, without replacement order matters, and without..

  Find commercial web site show bleeding edge technology error

Visit the Internet and discover commercial Web sites which show each of the common errors listed below. Give links to those Websites in Microsoft Word document.

  Compare time complexity of convolution with kernel

Compare the time complexity of convolution with a n x n kernel when using: direct convolution with the 2-D mask, and separable kernel.

  Explaining gui differences and security differences

With that being said, its great that each of you pointed out the GUI differences. What about the Security differences?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd