Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: configuring interrupt on AT91SAM
PostPosted: Fri Jan 21, 2011 4:20 pm 
Offline

Joined: Fri Apr 11, 2008 2:11 pm
Posts: 5
Location: Scotland
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


Top
 Profile  
 
 Post subject: Re: configuring interrupt on AT91SAM
PostPosted: Fri Jan 21, 2011 10:06 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
[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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: