Only if everything else was happening correctly. IMHO your code had more than 1 problem as it was originally presented.Then in that case didn't my code already have a periodic interrupt, where I preloaded the timer where the roll over was 30 ticks, and this would cause the interrupt and in the interrupt i reloaded the timer.