Which is the easiest way for Global Interruptions Disable/Enable in CA for LPC2129? Varuzhan
Sure, without brackets
Each ARM controller is somehow different. A generic solution to disable all interrupts is to set the CPSR I + F flag (similar code as documented under: http://www.keil.com/support/docs/2910.htm). But tell my: why can you not use the __swi method? Reinhard
Thank you very much! The __swi method is really nice, but sometimes one will not want to have a function call overhead to protect only a couple of instructions. Another question: do the methods, mentioned in whole this topik, including the __swi, protect from Spurious Interrupts? Varuzhan
The __swi method is really nice, but sometimes one will not want to have a function call overhead to protect only a couple of instructions. Isn't the __swi call less code (and overhead) than disabling interrupts? do the methods, mentioned in whole this topik, including the __swi, protect from Spurious Interrupts? Masking interrupts inhibits interrupts (spurious or not). However, a spurious interrupt is an unexpected interrupt. Once interrupts are unmasked, the spurious interrupt triggers. Then, the interrupt handler will need to handle it. Jon