.what will happen if you connect p3.5 at the buzzer

Assignment Help Computer Graphics
Reference no: EM13165330

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: EM13165330

Questions Cloud

What is the density of the ore\ : A piece of metal ore weighs 8.25 g. When a student places it into a container of water, the liquid level rises from 21.25 mL to 26.47 mL. What is the density of the ore?
Submap that accepts two maps from strings : Write a method called subMap that accepts two maps from strings to strings as its parameters and returns true if every key in the first map is also contained in the second map and maps to the same
Write a subroutine in marie assembly that multiplies two val : Write a subtoutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers (each pointer pointing to a value).
Source code of visual basic 6 : Give me the source code of visual basic 6 , a program that reads a logical expression in p, q, and r prints and truth table of the expression
.what will happen if you connect p3.5 at the buzzer : 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.
Each clone will communicate to the parent process : Write a program that will create 3 clones. Each clone will communicate to the parent process over a pipe (There are 3 pipes) Each process will write Process n.
Determine the number of lollipops that must be sold : Determine the Number of lollipops that must be sold to reach this target and determine the DL and DM budget needed to reach this target.
Classification and nomenclature of igneous rocks : Classification and nomenclature of igneous rocks - what is the three principal categories of igneous rocks? what characterizes each?
True and false : A.  (True | False) In the MSP430's active mode, the MCLK and SMCLK clocks are up and running and ACLK is not running (it is turned off).

Reviews

Write a Review

Computer Graphics Questions & Answers

  How many minutes of uncompressed digital video can be stored

Approximately how many minutes of uncompressed digital video could be stored and played from a standard (single-speed) CD-ROM at 640 X 480 resolution using 256 colors?

  Relative positioning and interactive positioning

Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation

  Modifying the product program through gui

Modify the product Program to use a GUI. The GUI should show the data one product at a time, including the product number, the name of the item, the number of units in stock.

  Essential elements of a design pattern

configuration of an Iterator pattern, patterns could be used in a Library System, Singleton, Template, Decorator, Façade,What does Alexander means by the following declaration "But it is impossible to form anything which has the temperament of natu..

  Concepts of computer graphics

Concepts of Computer Graphics and develop a program using OpenGL

  Storage available for a computer system

Discuss the different types of storage available for a computer system? Regardless of the type of storage used through your computer systems, why would you want to back it up?

  Website designs with exemplary design features

Identify two Web websites that you feel exhibit exemplary design features. Explain why you selected each site. What design features stand out on each website?

  Program that bounces a blue ball inside jpanel

Create a program that bounces a blue ball inside a JPanel. The ball should start moving with a mousePressed event. When the ball hits the edge of the JPanel, it should bounce off the edge and continue in the reverse direction.

  Calculate and plot projection of rectangle on image plane

There is a rectangle with vertices at (-6,-3,6)T, (3,-3,6)T, (3,3,9)T, and (-6,3,9)T. What is the 3x4 perspective camera matrix? Calculate and plot the projection of the rectangle on the image plane.

  Network design based question

Suggest a network design for a customer that has fifty remote locations in addition to a central headquarters. Half of the remote locations are needed to connect or stay on line with central headquarters.

  Create a set of criteria for assessment of video clips

Create a set of criteria for assessment of video clips suitable for inclusion in Multimedia presentations over the web.

  Determine when would a transition be appropriate

Some animation schemes include slide transitions and some do not. Determine when would a transition be appropriate? When would it not be appropriate?

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