Updated timer module so timer frequency changes only after the timer
register is updated