I need to design a circuit using 8051, with 2 button and 2 LED. The circuit suppose to act this way, every time a button A is pressed, LED A will lit for 10 sec and so is when button B is pressed.
So I connected the circuit and wrote the program. But there is something I notice, if I press button A and when the program is delayed 10 sec before clearing the port for LED A, button B has no effect.
Basically I need to have those 2 button to work seperately, any idea how?
So I connected the circuit and wrote the program. But there is something I notice, if I press button A and when the program is delayed 10 sec before clearing the port for LED A, button B has no effect.
Basically I need to have those 2 button to work seperately, any idea how?