Embedded interrupt

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi,

Could anyone know whether it is possible to enable and use embedded
interrupt in AVR ATMega using GCC? If yes, how to determine the
interrupt priority?

Thanks!

Re: Embedded interrupt
Quoted text here. Click to load it

Not sure what you're asking here exactly - interrupt priority in the AVR
series is determined by hardware. Vectors lower in memory have higher
priority.

Re: Embedded interrupt

Quoted text here. Click to load it

Hi,

The interrupt priorities on the AVR is fixed. If you want to change
this you need to play around with enableing/disabling interrupts
inside interrupt routines. Get the avr-libc documentation
http://www.nongnu.org/avr-libc /

Regards
   Anton Erasmus



Re: Embedded interrupt
Answer: Use sei() inside ISR.

Re: Embedded interrupt
Quoted text here. Click to load it

GCC can be used to write interrupts for an AVR - see
http://www.freertos.org/implementation/a00012.html for an example.
The priority is set by the hardware however.



Site Timeline