Generate periodic timer interrupt. Implement interrupt handler.