When setting a new value in the TIMER0_ON_REG register, we've seen that Timer0 is not applying the setting immediately. In some circumstances, Timer0 applies the settings after some ON-counter reload interrupts have been generated according to the old TIMER0_ON_REG value.
A workaround has been set up by waiting some ON-counter reload interrupts to occur before considering the new value settled. But the number of interrupts to wait for is uncertain as it seems to vary with some interrupt load conditions.
Could anyone clarify what is the procedure to follow in order to be sure that the new TIMER0_ON_REG value is in force?