Calculate fr change
disable TIM 50mks