Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Interrupts trouble...

2004-08-11 by Robert Adsett

At 11:02 AM 8/11/04 -0400, you wrote:

>ldr     pc, [pc, #-0xFF0]
>
>loads the program counter with the values read from the location of (PC -
>0xff0).  Essentially an indirect jump.  That location (PC - 0xff0) is the
>address of the VIC register that holds the vector for the interrupt that is
>currently the highest priority IRQ.

Oh, and don't forget that the VIC's vector register must be written to to 
signal the VIC that the end of the interrupt has been reached.  Otherwise 
the VIC will remain stuck on that interrupt.

That will be in the examples here and in the newlib lpc support.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.