Answered step by step
Verified Expert Solution
Question
1 Approved Answer
On the fourth button press, turns on both LEDs AFTER roughly one second ( don ' t worry about the exact timing, just make sure
On the fourth button press, turns on both LEDs AFTER roughly one second dont worry about the exact timing, just make sure there is a noticeable delay by using the timers NOTE: It would be a good idea to set a breakpoint inside a timer handler to test this. Also, you will need to toy with the timer prescaler registers to get a noticeable delay.
On the fifth button press, turns off both LEDs AFTER roughly one second.
On the next button press, starts in the initial state. Make sure that this process of button presses can be repeated ie I can go through this cycle as mal times as I want to
Programming in C i just need help making the code for this. I have the LED lignts working by button press i just dont know how to inplement the delay.
I use the program Keil uVision
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