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: interrupt
PostPosted: Thu Dec 01, 2011 11:40 am 
Offline

Joined: Tue Nov 29, 2011 10:25 am
Posts: 4
hello,
some questions about interruptions on an 9260 :
I've found one example called "Interrupt generation using AT91 timer/counter" on the atmel site, which is based on a AT91R40008. I have changed the register adresses to meet the AT91SAM9260 mapping.
this example configures the TC1 and AIC for generating an interrupt every 1s. It is made of two file :
Irq_timer.s : assembler timer interrupt handler
Timer_Interrupt.c : main (config) and c interrupt handler

my first question is :
do we really need an assembler file to install an asm_irq_handler who calls the c_irq_handler?
can we do its job in C ?

the second question is about the id of the interrupt generated by TC1. In this example TC1 is used, and the AIC is configured to wait an interrupt with 5 as id. I don't understand why (and how) interrupt id 5 is associated with the TC1..

actually this program runs partially, the interrupt part doesn't.


Top
 Profile  
 
 Post subject: Re: interrupt
PostPosted: Thu Dec 01, 2011 2:59 pm 
Offline

Joined: Tue Nov 29, 2011 10:25 am
Posts: 4
I've found a partial answer :
I found a table in the atmel doc
in the AT91R40008, TC1 is associated to id 5.
in the AT91SAM9260, TC1 is associated to id 18.
i've corrected my files but interrupts are not generated/catched yet...


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: Bing [Bot] and 1 guest


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: