Impose a time limit on entering the correct combination

Assignment Help Other Engineering
Reference no: EM131148635

Design with Microcontrollers

Lab: Timers and Pulse-Width Modulators

Starting with the code snippet, develop the following enhancements as part of your program. The combination entered by the user must be processed one button-push at a time.

• If in the UNLOCKED state, the user must be able to lock the system by pushing ‘1' anytime.

• Limit the number of unsuccessful attempts allowed by locking out the user permanently after three consecutive failed attempts. In this state, the system must not respond any more to user input. (For extra credit, you may implement a SUPERVISOR state in which the system can only be unlocked by a supervisor using a different five-digit code.)

• Impose a time limit on entering the correct combination in that after the user enters the first symbol of the combination, he or she has five seconds to enter the entire sequence. If the time expires during this process, the user has to enter the entire code again from the beginning.

• Finally, the finite-state machine developed in the function assumes that the combination to the lock is hard-coded. Relax this assumption by extending the functionality of the program to accept new combinations at run time as follows. In the UNLOCKED state, the user must be able to push the button ‘2' to reprogram a new five-digit combination for the system. The system displays a

Enter New Key:

prompt on the terminal. After a new five-digit code is entered, the screen displays

Enter Key Again to Confirm:

and the user enters the code again. If the code is confirmed, system goes back to the UNLOCKED state and the new key is used from hereon. Otherwise the system displays an error and remains in the UNLOCKED state while maintaining the old key. During the reprogramming
phase, the LED blinks.

Attachment:- Lab-Timers and Pulse-Width Modulators.pdf

Reference no: EM131148635

Questions Cloud

Indicate whether each statement is true or false : One reason managers use the full cost of products as the cost base in their pricing decisions is to promote price stability.- When there is price discrimination, pricing is not linked closely to the cost of the product.
Prepare the cash budget for iguana : Iguana, Inc., manufactures bamboo picture frames that sell for $30 each. - Compute the budgeted cash payments for Iguana.- Prepare the cash budget for Iguana.
Conduct external research from reputable and quality sources : Write a report on how relevant legislation, codes of practice, ethical principles, and national standards affect marketing operations - Briefly describe the following statistical methods and techniques to evaluate marketing opportunities, including..
Describe the importance of rare earth elements in science : Describe the importance of rare earth elements in science and technology. Assess the most common uses of these elements, particularly as encountered in your daily life, as well as projections for future demand of these minerals resources.
Impose a time limit on entering the correct combination : Impose a time limit on entering the correct combination in that after the user enters the first symbol of the combination, he or she has five seconds to enter the entire sequence.
What is the monthly total cost equation : razier Manufacturing Company collected the following production data for the past month:- If the high-low method is used, what is the monthly total cost equation?
What would you expect to happen to the yield to maturity : Based on the material you learn in this Phase, what would you expect to happen to the yield to maturity and market value of the bonds if the time to maturity was increased or decreased by 5 years
Develop a work breakdown structure for the project : Evaluate the four projects by preparing a weighted decision matrix using the template provided. Develop at least four criteria, assign weights to each criterion, assign scores, and then calculate the weighted scores. Write a one-page paper that de..
The purpose motivating regulators to impose interest ceiling : What was the purpose motivating regulators to impose interest ceilings on bank savings accounts? What effect did this eventually have on the money markets?

Reviews

Write a Review

Other Engineering Questions & Answers

  Collection and comparison of different companion systems

Title - Research Seminar: Collection and Comparison of different Companion Systems. Cognitive Systems or Intelligent Systems - Read as many papers as possible, look into publications, projects, etc for how many systems are there

  How long after the arrival of the first vehicle will it take

If uniform deterministic processing of vehicles (collecting of fees) begins 20 minutes after the first arrival and the total delay is 3200 veh-min, how long after the arrival of the first vehicle will it take for the queue to be cleared?

  Calculate the average dry and web bulb temperatures

Calculate the average dry and web bulb temperatures and find the relative humidity using the Psychometric chart and submit with your assignment

  The removal of eschar from burned skin

------------------is the removal of eschar from burned skin.  _____________ investigates the body's structure, whereas __________ investigates the processes or functions of living things.

  Justify a need for digital forensics methodology

Justify a need for digital forensics methodology and consider scope of the case including nature of alleged misconduct leading to consideration of how electronic and digital evidence may support the investigation.

  Compute the per-unit reactance of the transformer

Compute the per-unit reactance of the transformer - what value of the per-unit reactance should be used to represent this transformer?

  Esfandyar illustrate the preferred quality of societal stand

This discussion continues our examination of the hero. Esfandyar is the quintessential hero in Persian culture. We will investigate and discuss how Esfandyar may set standards for his culture and how his journey and interactions with other char..

  What is value of gm at which source follower is operating

The transfer function of the source follower is measured as RL is varied. At what value of RL will the transfer function be maximally flat? At this value of RL the dc gain is found to be 0.9 V/V. What is the 3-dB frequency? What is the value of gm..

  Uniform cross-sectional area

SHM of a Floating Object An object with height h, mass M, and a uniform cross-sectional area A floats upright in a liquid with density p.

  Discrete op amp

Discrete Op Amp - designing an amplifier which has the capabilities - Calculations and circuit design graph.

  Design at least four broadcast protocols for a cube system

Design at least four broadcast protocols for a cube system with 8 nodes using message-passing, shared-memory and mobile agent communication models

  Determine the maximum tension

Express the tension in the rod at a distance z from end B in terms of z, m, g, and L for the vertical position.  Knowing that the weight of the rod is 2 lb, determine the maximum tension in the rod for the vertical position.

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