Page 1 of 1

Interrupts

Posted: Sat Mar 08, 2008 5:52 pm
by Pete
Hi, can anybody tell me how to set up the interrupt on change feature for the AT91SAM7S128?

I have done polling of portb using the periodical timer interrupt, but just want to test for a button press without using this method.

Thanks

Re: Interrupts

Posted: Tue Mar 11, 2008 12:29 pm
by Benj
Hello Pete

As long as the chip has this feature available then it should be possible to create the interrupt via a custom interrupt. Search the forum for custom interrupts and you should find all the info you need. Most of the info will be for the PICmicro devices but the data should transfer over to the AVR. Refer to the AVR device datasheet for correct register names.

Re: Interrupts

Posted: Wed Mar 12, 2008 9:25 am
by Pete
Thanks Benj,

It was for Arm7 btw not AVR. I have managed to sort it out now, I had to enable the peripheral Clock. I think it is good how you can associate interrupts with any port IO with these devices. So flexible.

Thanks Anyway.

Re: Interrupts

Posted: Thu Mar 20, 2008 3:55 pm
by Benj
Sorry Pete

Think I must have been in Flowcode mode. Glad you've got it all working now. Yes the ARM devices are certainly very flexible and powerful. Were all looking forward to the Flowcode for ARM release here at Matrix.