implemented interrupt based timer ctc