Quote Originally Posted by xnihilo View Post
Reseting the TMR0 ovf flag and the TMR0 preload value before leaving handler and checking what int flag are set upon entering the int handler did the trick.
More funny, the int period is now all right (about 10ms)... What is strange is that I did not change a lot of things besides setting the preload for TMR0 before leaving the int handler...
I guess my main point about ENABLE was that if you ENABLE'd while still processing the interrupt, it'll 'interrupt' right there and you could get stuck in that same loop until you just happen to get lucky and can get out.