Hello guys!

I'm using the 18 legged chip PIC16F84A

Button 1 is RA.2
Button 2 is RA.3
Button 3 is RA.4
Reset is on RB.1
The Diode is on RB.0

So I have 3 push buttons, 1 reset button and 1 diode.

When I'm pressing the first button a timer should start counting to 15s and then the diode starts emitting light for a short period of time.

Exactly the same thing should happen when I'm pressing button 2 and 3 except that the timer counts to 30s when I'm pressing the 2nd button and 45s when I'm pressing the 3rd.

When the reset button is pushed the program should stop immidiately and go back to the start to await further commands.

Thanks, Kuklarz.