Interrupt problem

Status
Not open for further replies.

huanyong

New Member
hii guys..recently i read through an article..it state that it is not a good habit of using 'PAUSE' instruction in interrupt sub-routine...coz it will stop other interrupt for coming in....
like :

on interrupt goto ISR
...
...
DISABLE
ISR:
....
PAUSE 40000
....
resume
enable

any comment?
 
Yes, of course. Interrupts are disabled when the interrupt routine starts, and new interrupts can only occur once the current interrupt is processed.

Interrupt routines are meant as a means to quickly handle certain events that require to be handled immediatly... makes no sense putting a pause in it.

If your interrupt routine is doing someting that can be paused then its more then likely it can be moved inside the normal program flow and not need interrupts
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…