pruittjr5161
pruittjr5161
05.05.2020 • 
Mathematics

3. Assume you have a button which is subject to bounces which last 10-20ms. An actual button press lasts between 100 and 150 ms and two button presses are separated by at least 300 ms. The system should turn on an LED while the button is pressed and turn it off when the button is released. It should not react to bounces. Assume a sampling rate of 30 ms. Draw a state machine which represents this system (button presses with values of 0 or 1 are your input, and the LED being 1 (on) or 0 (off is our output). (20 points)

Solved
Show answers

Ask an AI advisor a question