configuring interrupt on AT91SAM

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

samie
Location: Scotland
Posts: 5
Joined: Fri Apr 11, 2008 2:11 pm

configuring interrupt on AT91SAM

Fri Jan 21, 2011 4:20 pm

Hi
We are using AT91SAM9263 in our design and are using Adeneo's BSP.

We have setup an interrupt on PB22 using the standard InterruptInitialize() routine. However, it looks like we are getting interrupt on BOTH rising and falling edge on PB22. We would appreciate if somebody could please provide feedback on the following:

a. Is there any way we can setup to have interrupts happening only on positive OR negative edge on PB22?

b. Any pointers to sections of code relating to this? We looked at \PLATFORM\COMMON\SRC\SOC\ATMEL\AT91SAM926x\KERNEL\INTR\intr.c and there is a statement in OALIntrInit() in this file that seems to indicate that ALL interrupts are by default being configured for level sensitive operation. May be we are holding the wrong end of the stick so any comments on this would be appreciated.

Thanks,
Samie
gerhardf
Posts: 554
Joined: Thu Dec 02, 2004 2:28 pm

Re: configuring interrupt on AT91SAM

Fri Jan 21, 2011 10:06 pm

[quote]
a. Is there any way we can setup to have interrupts happening only on positive OR negative edge on PB22?
[/quote]
no, this feature is only available at IRQ0, IRQ1 and FIQ.

[quote]
b. Any pointers to sections of code relating to this? We looked at \PLATFORM\COMMON\SRC\SOC\ATMEL\AT91SAM926x\KERNEL\INTR\intr.c and there is a statement in OALIntrInit() in this file that seems to indicate that ALL interrupts are by default being configured for level sensitive operation. May be we are holding the wrong end of the stick so any comments on this would be appreciated.
[/quote]
sorry no idea about android.

regards
gerhard

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 4 guests