This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: How to handle IRQ0 interrupt?
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "eCos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 8 Mar 2007 09:38:26 -0800
- Subject: RE: [ECOS] How to handle IRQ0 interrupt?
> From: Neeraja
>
> I am working on at91rm9200 board. I want to catch the
> interrupt when the button is pressed which is connected to IRQ0 line.
> But what is happening is that when I run the application
> the interrupt isr is being called always irrespective of the
> button press.
Do you mean it interrupts over and over, and never leaves time for the
application? This can happen if it's programmed to be level-sensitive
instead of edge-sensitive.
Also, remember that mechanical switches need debouncing. This is why I
prefer polling switches at a 10ms-20ms rate, since that's fast enough for
human input, and slow enough not to see the bounce.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss