Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Project: The project has three active - low input switches S 1 , S 2 , and S 3 with external pull - up
The Project:
The project has three activelow input switches S S and S with external pullup resistors connected to PA PA and PBO, respectively; and four activelow LEDs connected to PA PA PA and PB respectively; activelow active buzzer connected to PB The complete circuit for the project is shown in Figure Practically this project is used in systems such as in roulette wheel. SK
When the power is connected, the patterns and should be displayed alternately at ms intervals continuously.
If St is pressed and held, all LEDs should toggle at ms intervals continuously, and there are two variables variable and variable that must be consistently random and displayed on the left and right of the digit segment display accordingly.
If S is released, the random numbers held by those variables are displayed on the left and right of the digit segment display. The content of the two variables should be limited from to
If the content of variable is equal to that of variable and equal to the buzzer sounds for ms and all LEDs should turn ON
If the content of variable and variable are the same, the buzzer sounds for ms and the LED pattern should be
If variable s content differs from variable s the buzzer sounds for ms and the LED pattern should be
The program sequence switches to step after completing any of steps or
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started