Quote Originally Posted by Ioannis View Post
Also if I want to disable TMR0 interrupts inside the timer0 INT Handler, will the Interrupts be enabled on exiting the routine? Like this:

Code:
INT_Service_TMR0:
@ INT_DISABLE TMR0_INT
    tmr0=21                 'Preload for 60msec time out
    timer0=1                'timer 0 has timed out flag
@ INT_RETURN    <<<<<<<<----------------Here I do not want to enable timer0
No it will not be re-enabled automatically.

And you won't get any more interrupts from the timer untill there's an @ INT_ENABLE TMR0_INT somewhere else in the program.

The Timer will continue to run and overflow, so the next time you Enable the timer ints ... make sure you clear the flag first or it will immediately jump into an unwanted INT.
@ INT_CLEAR TMR0_INT
<br>