• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 

Exo

Active Member
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.

Latest threads

EE World Online Articles

Loading
Top