Re: Timer interrupt
During an interrupt, other interrupts of equal or less priority are blocked.
If the interrupt is set by a timer overflow and your interrupt routine takes longer than the timer period, the interrupt flag will be set and the interrupt will be pending.
In the interrupt routine, it depends when you clear the interrupt flag.
If you clear it at the beginning of the interrupt, it will be set again by the timer, the interrupt will finish and the pending interrupt will immediatly execute.
if you clear it at the end of the interrupt routine, you will clear the pending interrupt but you will loose your 10mS timing interval.
The golden rule is that interrupts should be short and sweet.
Unless you are doing a psuedo dual tasking program.
That should make things as clear as mud!