Embedded interrupt

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!

Reply to
terry
Loading thread data ...

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.

Reply to
Lewin Edwards

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

formatting link

Regards Anton Erasmus

Reply to
Anton Erasmus

Answer: Use sei() inside ISR.

Reply to
terry

GCC can be used to write interrupts for an AVR - see

formatting link
for an example. The priority is set by the hardware however.

Reply to
Richard

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.