Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

LPC2129 ARM7 Disable/Enable Interrupt..

2005-05-12 by unikum888

Hello,
I need to disable the interrupt completely for a short while. I have 
found that the ARM7 can disable interrupts with the DI and EI asm. 
Theese does only work for me in the startup.s file (I made a test) and 
not as inline asm where I really need them.

I have found some code that may work inline, but can someone tell me 
about their experiences, if any?

Inline asm, that I have found and plan to use:

#define IENABLE                       \
  __asm { MSR     CPSR_c, #0x1F }    /* Enable IRQ (Sys Mode)   */   \

#define IDISABLE                      \
  __asm { MSR     CPSR_c, #0x92 }     /* Disable IRQ (IRQ Mode)  */   \

Will this work or does anybody have a better sollution?

Thanks,
Regards Kasper

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.