It is intended to design a speedometer system to measure the speed of an object falling...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
It is intended to design a speedometer system to measure the speed of an object falling through a column of water and display it on a PC. You are equipped with the following: A 1MHz clocked AVR ATmega32. Note, datasheet excerpt appended to this paper. Two optical sensors namely START and STOP located one meter apart. Each sensor goes high when the object passes it. A PC running HyperTerminal software with a functioning serial interface. Assume the following; Only PORTD.2 and PORTD.3 and the USART serial communication interface pins available. You are only allowed to use TCNTO. The most logical implementation is required. Answer the following questions: a) Discuss with the help of a block diagram (with pin connections and interfaces) how to implement the system. [4] b) Determine the value to load in TCCRO at a prescaler value of 1024 operating in the normal mode. What is the maximum and minimum speed measured without timer rollovers at this setting. [3] c) For a baud rate of 1200, asynchronous operating mode, 8 data bits, no parity and 1 stop bit, determine the values to be loaded into the following registers; UCSRB, UCSRC, UBRRL. [3] d) Write the program to display the speed on the PC. [10] It is intended to design a speedometer system to measure the speed of an object falling through a column of water and display it on a PC. You are equipped with the following: A 1MHz clocked AVR ATmega32. Note, datasheet excerpt appended to this paper. Two optical sensors namely START and STOP located one meter apart. Each sensor goes high when the object passes it. A PC running HyperTerminal software with a functioning serial interface. Assume the following; Only PORTD.2 and PORTD.3 and the USART serial communication interface pins available. You are only allowed to use TCNTO. The most logical implementation is required. Answer the following questions: a) Discuss with the help of a block diagram (with pin connections and interfaces) how to implement the system. [4] b) Determine the value to load in TCCRO at a prescaler value of 1024 operating in the normal mode. What is the maximum and minimum speed measured without timer rollovers at this setting. [3] c) For a baud rate of 1200, asynchronous operating mode, 8 data bits, no parity and 1 stop bit, determine the values to be loaded into the following registers; UCSRB, UCSRC, UBRRL. [3] d) Write the program to display the speed on the PC. [10]
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
This case was written by Professor Michele Greenwald, Visiting Professor of Marketing at HEC Paris, for use with Advertising and Promotion: An Integrated Marketing Communications Perspective 7th...
-
Timer 0 is used to measure the speed of an object falling through a column of water. When the object passes an upper sensor, the timer starts counting from zero. When it passes the lower sensor, the...
-
At the current year-end, a company shows the following unadjusted balances for selected accounts. a. After an analysis of future sales discounts, the company estimates that the Allowance for Sales...
-
Why do proponents of variable costing prefer variable costing when making pricing decisions?
-
For each scenario, identify possible audit engagement acceptance/continuance risk(s)(A?F).Audit engagement acceptance/continuance risk(s):A. Firm?s ability to audit client (scope limitation)B. Firm?s...
-
Allan and Koraev both owned condominiums in the same building. Koraevs unit was directly above Allans. While Allan lived in her own unit, Koraev leased his. The leasing of Koraevs unit was managed by...
-
Closing down divisions. Belmont Corporation has four operating divisions. The budgeted revenues and expenses for each division for 2011 follows: Further analysis of costs reveals the following...
-
Explain why not all relationships go through every stage in Knapp's Relational Model. Give an example.
-
The December 31, 2024, adjusted trial balance for the Blueboy Cheese Corporation is presented below. Required: 1. Prepare an income statement for the year ended December 31, 2024, and a classified...
-
For the circuit given below find the state equations and draw a boxlaround your answers. R2 R3 R4. R1 Vs(t)
-
The iceberg of quality costs referenced in the text illustrates both the visible, as well as less visible, costs associated with poor quality. For this discussion, consider the quality costs "below...
-
1. What is Will's current operating income? 2. What is Will's contribution margin ratio? 3. What is the company's breakeven point in sales dollars? (Hint: The contribution margin ratio calculated in...
-
Write a function named naiveBayes. This function should get nxp feature matrix A of training data, nx1 label matrix C training data, 1xp feature matrix B of test sample, as inputs and return...
-
When law enforcement becomes involved, the need may arise to freeze systems as part of the evidence. There is also the likelihood that the incident will become known publicly. Do you think these...
-
A stock has an annual return of 11.8 percent and a standard deviation of 49 percent. What is the smallest expected gain over the next year with a probability of 2.5 percent? ( Do not round...
-
Calculate the heat released when 68.0 g of steam at 124C is converted to water at 45C.
-
A superior criticized a sales manager for selling high-revenue, low-profit items instead of lower-revenue but higher-profit items. The sales manager responded, My income is based on commissions that...
-
A beam of sunlight encounters a plate of crown glass at a 45.000 angle of incidence. Using the data in Table, find the angle between the violet ray and the red ray in theglass. VacuumIndex of...
-
A series RCL circuit includes a resistance of 275 , an inductive reactance of 648 , and a capacitive reactance of 415 . The current in the circuit is 0.233 A. What is the voltage of the generator?
-
A standard door into a house rotates about a vertical axis through one side, as defined by the doors hinges. A uniform magnetic field is parallel to the ground and perpendicular to this axis. Through...
-
Use the technique discussed in Section9.4 to develop a GEE approach for zeroinflated Poisson model for count responses in longitudinal studies. Section9.4: 9.4 Marginal Models for Longitudinal Data...
-
The price of a non-dividend paying stock is \($19\) and the price of a three-month European call option on the stock with a strike price of \($20\) is \($1.\) The risk-free rate is 4% per annum. What...
-
A U.S. Treasury bond pays a 7% coupon on January 7 and July 7. How much interest accrues per \($100\) of principal to the bond holder between July 7, 2013, and August 9, 2013? How would your answer...
Study smarter with the SolutionInn App