Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Disable()/Restore()

2004-05-06 by Sten Larsson

James,

You have two options in Thumb mode:

(1) Switch to ARM mode and disable interrupts in the CPSR, then switch back.
(2) Disable interrupts in the interrupt controller.

There is no trick...

/sten
Nohau Corp

----- Original Message ----- 
From: "James Dabbs" <jdabbs@...>
To: <lpc2000@yahoogroups.com>
Sent: Thursday, May 06, 2004 9:56 AM
Subject: [lpc2000] Disable()/Restore()


> I'm looking for some assembler reference code to disable and restore
> interrupts -- in thumb mode.  Working through something by hand, I just
> seem to require a lot of instructions to do it.  In fact ARM takes a few
> instructions to do it..  I suspect there is some trick to this but
> Google has failed me..
>
> Any tips would be most welcome!
>
> Thanks,
>
> James Dabbs, TGA
>
>

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.