Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/08/04 09:45
Read: times


 
#68161 - RE: Changing Interrupt Priority
Responding to: ???'s previous message
btw, just a note if you still need to change interrupts` priority:
- never change priority of interrupt which ISR program executes in. In your example: do not change the priority of timer 2 interrupt inside its ISR. It is because the priority of processed interrupt is pushed (locked) into internal priority hardware stack (yes, there are some "hidden" areas inside core you may not access with program). And such modification does not take effect during current ISR is executed - MCU core still "thinks" that current ISR is at previous level. In your example: if you still need to avoid timer 0 ISR then change the priority of the timer 0 interrupt (here: set it temporally to low level with CLR PT0). This way you do not allow its ISR but remember: other interrupts which have high priority level still be processed during timer 2 ISR is executed.

Regards,
Oleg

List of 6 messages in thread
TopicAuthorDate
Changing Interrupt Priority            01/01/70 00:00      
   RE: Changing Interrupt Priority            01/01/70 00:00      
   RE: Changing Interrupt Priority            01/01/70 00:00      
      RE: Changing Interrupt Priority            01/01/70 00:00      
         RE: Changing Interrupt Priority            01/01/70 00:00      
            RE: Changing Interrupt Priority -Thanks            01/01/70 00:00      

Back to Subject List