![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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? | |
| |
| | (permalink) |
| 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 | |
| |