Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 1st November 2003, 01:26 AM   (permalink)
Default Interrupt problem

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?
huanyong is offline  
Old 1st November 2003, 02:26 AM   (permalink)
Default

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
Exo is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 10:02 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker