Question: make me a flowchart explain this process : For this assignment, you will write a main routine that implements a finite state machine. You will
make me a flowchart explain this process :
For this assignment, you will write a main routine that implements a finite state machine. You will use LEDs on the LED module that is connected to the Launchpad board to indicate the current state and output operation. You will use the two switches on the Launchpad board as the inputs. Your program will implement a combination lock. The lock will require a sequence of switch inputs in the proper sequence to open the lock. The lock must use at least two presses of SW and at least two presses of SW for the combination and there must be no more than consecutive presses of either switch in the combination. If both buttons are pressed, the system should lock and return to the start state, regardless of the current state. Your combinations will be recorded to ensure that you are working individually.
You will use the LEDs to indicate the current state in accordance with the table below.
For the LEDs, use GPIO port E bits PEPE You will assign state numbers to the individual states and light LED LED and LED to indicate the state number on the LED module. I recommend Your initial state number will be or all three
LEDs unlit. You will use LED to indicate when the lock is unlocked. Similar to the photo i uploaded
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
