??? 03/25/09 13:21 Read: times |
#163845 - ... including this one? Responding to: ???'s previous message |
Erik,
there's no much reason in storing/restoring EA in an ISR, as EA's state is known: it must have been set if the interrupt occured...(unless one calls the ISR directly, which is an another very bad idea). Not to say that there's no much reason to disable interrupts in ISR - same and lower priority interrupts are disabled anyway regardless of the EA state (due to internal priority mechanism, which cannot be explicitly manipulated); and only in very extreme cases is there a real reason to temporarily disable higher priority interrupts in an ISR. JW |
Topic | Author | Date |
EA in "Interrupt service routine" | 01/01/70 00:00 | |
yes,no | 01/01/70 00:00 | |
both are wrong | 01/01/70 00:00 | |
... including this one? | 01/01/70 00:00 | |
well, I'll be | 01/01/70 00:00 | |
thanks >> it's working >> further | 01/01/70 00:00 | |
but WHY are you doing that? | 01/01/70 00:00 | |
Now i am not doing EA=0 in ISR. | 01/01/70 00:00 | |
ah, then it's OK![]() | 01/01/70 00:00 |