Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Pulse-width measurement. Use the input-capture function to measure the pulse width. The procedure is as follows:

Step 1

Set the function generator output to be square wave and adjust the output to between 0 and 5 V. Connect the signal to the PAI (PT7) pin.

Step 2

Connect the signal to an oscilloscope or a frequency counter to verify your measurement.

Step 3

Output the message "Do you want to continue to measure the pulse width? (y/n)".

Step 4

Set up the appropriate period (frequency) of the signal to be measured and enter y or n to inform the microcontroller if you want to continue the measurement.

Step 5

Your program would read in the answer from the user. If the character read in is n, then stop. If the answer is y, then repeat the measurement. If the character is something else, then repeat the same question.

Step 6

Perform the measurement and display the period in μs in decimal format on the screen and go back to step 3. Use as many digits as necessary. The output format should look like

The signal period is xxxxxx microseconds.

Crank up the frequency until the measurement becomes inaccurate. What is the shortest period that you can measure?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91826916

Have any Question?


Related Questions in Computer Engineering

Suppose you are given a connected graph g with edge costs

Suppose you are given a connected graph G, with edge costs that are all distinct. Prove that G has a unique minimum spanning tree.

With respect to the needham-schroeder 0v0ap authentication

With respect to the Needham-Schroeder (0V0AP) authentication protocol, assume that a client (point A in the 0V0AP description) is holding the wrong key Describe in PRECISE terms (in terms of the contents of the packets t ...

Sheridan company plans to introduce a new product and is

Sheridan Company plans to introduce a new product and is using the target cost approach. Projected sales revenue is $1770000 ($6.00 per unit) and target costs are $1563500. What is the desired profit per unit? $0.70 $3.0 ...

Identify and evaluate at least three considerations that

Identify and evaluate at least three considerations that one must plan for when designing a database. Suggest at least two types of databases that would be useful for small businesses, two types for regional level organi ...

Quesiton for completion of the program use arrays and

Quesiton: For completion of the program, use arrays and files. Instead of prompting the user for the prices of the book, update the website program to reflect the following changes: • Read the prices into an array from a ...

How technology government regulations international

How technology, government regulations, international factors, expectations about the future, and the macroeconomy play a role in managerial decision-making? Carefully explain each by giving example.

Select one of the discussion topics and respond begin your

Select one of the discussion topics and respond. Begin your response by indicating which question you chose. Discussion topics: Section 4.1 Would you prefer a class in which 10 percent get A's and everyone competes for g ...

Why does the marginal cost curve always intersects the

Why does the marginal cost curve always intersects the average total cost curve and AVC?

Search treestry to adopt all four traversal algorithm

Search trees. Try to adopt all four traversal algorithm procedures for any binary tree. Write methods to count the number of nodes in a binary tree to count the number of leaves to count the number of right children to f ...

Question complete the lab 5-5 programming challenge 1 - yum

Question: Complete the Lab 5-5, "Programming Challenge 1 - Yum Yum Burger Joint," of Starting Out with Programming Logic and Design. Note: You are only required to create the flowchart for this activity; however, notice ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As