You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door and window in certain building and each of them is equipped with a sensor that when any one of them is opened the sensor will be activated leading to activate a siren signal generated by the microcontroller, knowing that there are two sirens generate different tone when operating for 5 seconds. Write an AVR ATmega16 program to control this security issue. Note: Door and window sensors are connected to PCO&PC1 respectively, while sierens1&2 are connected to PC2&PC3 You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door and window in certain building and each of them is equipped with a sensor that when any one of them is opened the sensor will be activated leading to activate a siren signal generated by the microcontroller, knowing that there are two sirens generate different tone when operating for 5 seconds. Write an AVR ATmega16 program to control this security issue. Note: Door and window sensors are connected to PCO&PC1 respectively, while sierens1&2 are connected to PC2&PC3
Expert Answer:
Answer rating: 100% (QA)
AVR code define FCPU 1000000UL CLOCK FREQUENCY IMHz include include FOR USING HEADER FILE DELAY ... View the full answer
Related Book For
Posted Date:
Students also viewed these accounting questions
-
In designing a security system based on eye (iris) recognition, we must consider the standing eye heights of women, which are normally distributed with a mean of 59.7 in. and a standard deviation of...
-
For the following statement determine whether each of them is "True" or "False". "True" means "always true" and "False" means "not necessarily true". A subdivision of a connected graph is connected....
-
A feedback control system with sensor noise and a disturbance input is shown in Figure AP4.7.The goal is to reduce the effects of the noise and the disturbance. Let R(s) = 0. (a) Determine the effect...
-
PIM Industries, Inc., manufactures electronics components. Each unit costs $30 before the final test. The final test rejects, on average, 5 percent of the 50,000 units manufactured per year. The...
-
Barry Swifter is 60 years of age and considering retirement. Barrys retirement portfolio currently is valued at $750,000 and is allocated in Treasury bills, an S&P 500 index fund, and an...
-
Find dy/dx by implicit differentiation for the following. 5x 3 = 3y 2 + 4y
-
Anthropologists have long been interested in kinship, especially in societies without centralized government. Why should this be the case?
-
EL Computer produces its multimedia notebook computer on a production line that has an annual capacity of 16,000 units. EL Computer estimates the annual demand for this model at 6000 units. The cost...
-
As a healthcare provider and manager, you are faced with the challenge of providing high quality, accessible and timely care. Understaffing is common and is seen in diminished quality, staff burnout...
-
Write down the first three terms of the Taylor series expansions of the functions dx (t + h) and dt about x(t). Use these two equations to eliminate dx (t) and d'x (1) dr dt dx (t-h) dt from the...
-
PREVIS Sulfur ylldes can be generated in a manner similar to that used to produce phosphonium ylldes. For example, treating a sulfonium salt with a strong base gives the sulfur ylide. Ph strong base...
-
Suppose a researcher obtains a grant to study the health and nutrition (or lack thereof) at a university with a large undergraduate population. To begin the study, a random sample of n = 100...
-
Your team has identified several key aspects for the project. The following table shows the base-case assumptions, together with the best case and worst case. Parameter Worst Case First-year sales...
-
You are given the following information about stock X, stock Y, and the market: The required return and volatility for the market portfolio are 0.08 and 0.25, respectively. The required return and...
-
Financial engineering deals with the design of new assets. Draw the payoff (at t=1) of the following bull butterfly spread: Purchase I call with exercise price a Sell 2 calls with exercise price...
-
Which of the following is NOT a risk associated with an electronic transfer payment system? a) Daylight overdraft risk b) Wholesale and retail risk c) International technology transfer risk d)...
-
What is the purpose of the journal wizard?
-
The given expression is used to determine the size of the sample necessary to estimate the proportion of college students who have the profound wisdom to take a statistics course. Find the value and...
-
Use the given information to find the number of degrees of freedom, the critical values X2L and X2R, and the confidence interval estimate of S. The samples are from Appendix B and it is reasonable to...
-
Large stadiums rely on backup generators to provide electricity in the event of a power failure. Assume that emergency backup generators fail 22% of the times when they are needed (based on data from...
-
In 2023-24, Kenneth (who is not a Scottish taxpayer) has business profits of 59,120 and bank interest of 980. His personal allowance for the year is 12,570. He makes no Gift Aid donations or pension...
-
In 2023-24, Philippa has business profits of 10,000. She also receives bank interest of 3,450 and net loan interest of 36,680. Her personal allowance is 12,570 and she makes no Gift Aid donations or...
-
In 2023-24, Roberta (who is not a Scottish taxpayer) has rental income of 16,770 and receives building society interest of 1,100. Her personal allowance is 12,570. Calculate the income tax liability...
Study smarter with the SolutionInn App