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

  Environmental engineeringquestion 1 although it is rarely

environmental engineeringquestion 1 although it is rarely considered as such sulfur could potentially be a limiting

  The following describes a mineral deposit

The following describes a mineral deposit. For the deposit the candidate is required to select a suitable mining method for the deposit based on the information given and to describe the mining system in detail. The candidate should include in their ..

  Add a linear trendline with the equation

Plot the following points on a rectilinear grid. Add a linear trendline with the equation and R2 value. Re-plot the graph on a semilog grid to determine if an exponential equation (y = bemx) is a good representation of the data. Add a trendline with ..

  Compare the meter reading with the oscilloscope reading

Compare the meter reading with the oscilloscope reading. Use the digital voltmeter to measure the AC voltage of the sine wave. Enter this value in Table I. Repeat steps 3.4 and 5 for the square wave and the trianeular wave.

  Does the operation of this circuit rely on charge storage

Figure shows a commonly used circuit of a D flip-flop that is triggered by the negative-going edge of the clock φ. (a) For φ high, what are the values of Q and Q in terms of D? Which transistors are conducting? If Dis high and φ goes low, which tr..

  Calculate the thickness of the active region of a photodiode

The detectors have coating on the front face that make the reflectivity at the design wavelength negligibly small. Calculate the thickness of the active region of a photodiode designed to absorb 90% of the light.

  What frequency defined in terms of ?ß

For a sufficiently high frequency, measurement of the complex input impedance of a BJT having (ac) grounded emitter and collector yields a real part approximating rx . For what frequency, defined in terms of ωβ , is such an estimate of rx good to ..

  Define what is meant by a process in a process model

Define what is meant by a process in a process model. How should the process be named? What information about a process should be stored in the CASE repository?

  Discrete op amp

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

  Compare performances of above mentioned configurations

Compare the performances of the above mentioned configurations. Identify the best configurations which functions as a diode with suitable justification.

  Evaluating the locations of charging stations

Tesla Motors recently announced their new model 3, which is a less expensive version of their model S. The company received over a quarter of a million pre-orders. Since the launch, potential buyers have been evaluating the locations of charging s..

  Barker spectrum-convolution

Porblem-1. Barker Spectrum-Derive analytically the spectrum of the Barker code (11 chips)

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