Yahoo Groups archive

Lpc2000

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

Message

Re: Simpliest working FIQ example - please help.

2004-03-08 by haack0815

Hi Robert,

take a look at the Usermanual at page 40 table 8.

You must wait until your signal is '1' to reset the flag.

Unfortunately the external interrupts at the 210x is level-sensitive.


Andreas


--- In lpc2000@yahoogroups.com, "hansklos2003" <hansklos2003@y...> wrote:
> Hi!
> 
> My problem is: how to make an application with EINT0 assigned to FIQ.
> I try with someting like below - but it does not work.
> The source of interrupt is a pushbutton.
> I use IAR EWARM Kickstart compiler.
> 
> A fragment of code with init procedure:
> 
>   ...
>   VICIntSelect = 0x4000;   // Select EINT0 as FIQ.
>   VICIntEnable = 0x4000;   // Enable EINT0 interrupt.
>   PINSEL1 = 0x00000001;    // configure P0.16 pin as EINT0.
>   ...
> 
> A code with FIQ handler:
> 
>   ...
>   EXTINT = 0x01;       // Try to reset external interrupt flag.
>   if (!(EXTINT & 0x01))// Check if flag was reset (button not pressed.
>   {
>     AND I CAN NOT REACH THIS POINT
>   }
>   ...
> 
> What I may say - something is working - after pushing interrupt
> button program hangs.
> 
> Robert

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.