|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: What is the Best Way to Disable/Re-Enable Interrupts?Information in this article applies to:
QUESTIONWhat's the best way to disable interrupts (for ISR configuration) and reenable them when I'm done? I know that the 8051 has an EA (enable all) flag for interrupts, but is it guaranteed that the interrupt does not occur after the instruction EA=0? ANSWERThere are 2 good ways to accomplish this.
The hardware of the 8051 guarantees that interrupts are disabled after execution of EA = 0. So you need not to worry about any pipeline effects. MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.