reset timer regesters to avoid missing the interrupt