Interrupt

@udrkapuduwa
You don't need to use an interrupt to do this.
Is this an assignment and are you forced to use interrupts?

@rohanth
Click the new topic button in the top right hand corner of the forum you want.