jakeselectronics
Member
If I'm using a timer driven interrupt (sayyyyy TMR2), and need to execute time crucial routines in the normal program (non ISR)...
Is it better at the begining of the time crucial routine to stop the timer, and start it again after the routine is finished, or is it better to mask interrupts during the routine.
If the latter, if the timer overflows during the routine, will the program still be interrupted when the interrupts are once again enabled?
Does this make sense?
Is it better at the begining of the time crucial routine to stop the timer, and start it again after the routine is finished, or is it better to mask interrupts during the routine.
If the latter, if the timer overflows during the routine, will the program still be interrupted when the interrupts are once again enabled?
Does this make sense?