.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

  The security policy document outline

Using the GDI Case Study below, complete the Security Policy Document Outline

  Discuss website design basics

Juan arrived the end of his online course program. His family was so proud of him. Juan's wife wish to throw a party to celebrate Juan's online graduation together with all of his family, and started planning the special event.

  Practices for web graphics

Assume your Web design firm has just hired a talented graphic artist with years of expertise in print media and no experience with creating image production.

  Differences in database design models

Make a poster or presentation, which graphically depicts differences between database design models.

  Design a program that show passing arguments byval and byref

Require to design a program that show passing arguments ByVal and then ByRef. It is suggested that I create a square function process and get an integer from the user then send it ByVal one time.

  Shadow effect while rolling a sphere

Shadow effect while rolling a sphere as well as the options of shading and lighting.

  Describe hardware flow control''s advantage over software

Describe hardware flow control's advantages over software flow control in terms of improving modem speed.

  Find spanning tree of g with maximum number of vertices

Given an undirected graph G = (V, E). Find a spanning tree of G with the maximum number of vertices that have degree 1. Show that this problem is NP-complete.

  Rank document relevance by number of times input keyword

You should also rank document's relevance by number of times input keyword occurs in document. How to rank document's relevance by number of times input keyword occurs in document.

  Determine transfomation of triangle

Determine a transfomation of triangle A(1,0),B(0,1),c(1,1)by:- a) rotating 45 degreeabout origin and then translatingin x and y direction.

  Explain the use of web standards

Describe the use of web standards. Why are they important when designing and developing websites? List three examples of these standards and discuss how they are used.

  Write program to animate two circles bouncing around window

Write a program to animate two circles bouncing around a window. The basic idea is to start the two circles somewhere in the interior of the window.

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