> 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:[EMAIL PROTECTED] -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
