Complete implementation of periodic timer with
interrupt based led blinking