Yahoo Groups archive

Lpc2000

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

Thread

Software Interrupts

Software Interrupts

2004-10-12 by peterburdine

Can someone point out a short quick example on how to get software
interrupts to work.  I'm using the Keil's toolset, but I can probably
figure it out if it works w/ GNU.

Basically what I am trying to do is get back into supervisor mode so I
can enable/disable IRQs and FIQs.  I have the enable/disable code
already, but it doesn't do anything since I'm not in supervisor mode.

Re: [lpc2000] Software Interrupts

2004-10-12 by Robert Adsett

At 03:22 PM 10/12/04 +0000, you wrote:
>Can someone point out a short quick example on how to get software
>interrupts to work.  I'm using the Keil's toolset, but I can probably
>figure it out if it works w/ GNU.
>
>Basically what I am trying to do is get back into supervisor mode so I
>can enable/disable IRQs and FIQs.  I have the enable/disable code
>already, but it doesn't do anything since I'm not in supervisor mode.

Just a question, why did you switch to user mode (rather than staying in 
supervisor or switching to system mode) on startup?

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

Re: Software Interrupts

2004-10-12 by peterburdine

> 
> Just a question, why did you switch to user mode (rather than
staying in 
> supervisor or switching to system mode) on startup?
> 
> 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

The startup code that was provide from Keil switches me to user mode.
 I guess that I could just remove that, but I'd still like to learn
how to setup and jump to software interrupts via SWI.

--Peter

Re: Software Interrupts

2004-10-24 by c51dude

--- In lpc2000@yahoogroups.com, "peterburdine" <lordofdawn@h...> 
wrote:
> 
> Can someone point out a short quick example on how to get software
> interrupts to work.  I'm using the Keil's toolset, but I can 
probably
> figure it out if it works w/ GNU.
> 

The following manual page may help.

http://www.keil.com/support/man/docs/ca/ca_le_swi.htm

Best regards,
Jon

Re: Software Interrupts

2004-10-25 by peterburdine

--- In lpc2000@yahoogroups.com, "c51dude" <jonw@k...> wrote:
> 
> --- In lpc2000@yahoogroups.com, "peterburdine" <lordofdawn@h...> 
> wrote:
> > 
> > Can someone point out a short quick example on how to get software
> > interrupts to work.  I'm using the Keil's toolset, but I can 
> probably
> > figure it out if it works w/ GNU.
> > 
> 
> The following manual page may help.
> 
> http://www.keil.com/support/man/docs/ca/ca_le_swi.htm
> 
> Best regards,
> Jon

Wow, that seems too easy.

--Peter

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.