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
Interrupts
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Interrupts
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Interrupts
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.
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.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Interrupts
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel