Question: Breif: like a 4 - digit access code - 2 3 3 7 . The keypad is designed as below, with numbers 0 - 9
Breif:
like a digit access code The keypad is designed as below, with numbers and ENTER E and CLEAR C buttons. To unlock the door, the right sequence of buttons must be pressed, followed by the ENTER button. Pressing the CLEAR button will reset the entered sequence. Now, Mr Keggs realises that one could just use trial and error to unlock the door, and so if an incorrect code is entered times in a row, an alarm must sound until a reset is applied
picture for reference
What I have so far:
logic diagram picture
FSM :
create a state diagram, state table and flip flop equations of a finite state machine for checking the lock keypad input. The correct digit access code is Therefore the inputs should be only and X Where X is the and gate output of numbers
Should produce two outputs, incorrect and correct.
States are Idel, input input input and, input
FSM :
If output of FSM is incorrect go to FSM which counts the number of incorrect codes. If or incorrect codes are counted in a row, return back to idle state in FSM If incorrect codes are counted in a row, trigger the alarm.
FSM if output of FSM is correct go to a counter which unlocks a door a counts to before returning to idle state in FSM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
