Interrupt

udrkapuduwa:
Here is my code. it is not working. please help me to do my project.

OK, first and most critical thing to do (especial if you are new to this) is to forget any code to do with interrupts, and start by figuring out how you need to approach the problem - make a list of steps and work through them.

When you have a rough code to do it (read through a lot of other similar discussions), post it using the "code" tags generated by the [ # ] button above the submission window.