implement the interrupt method for cyclic mode