Go Down

Topic: Domanda sugli ATmega, bit di interrupt (Read 1 time) previous topic - next topic

leo72

Ma relativamente agli Atmega? O in generale?

astrobeed


Ma relativamente agli Atmega? O in generale?


In generale, ma sicuramente si applica anche agli ATmega.

Janos

Parlavamo degli ATmega, penso riferito a quelli, solo che mi ricordassi il motivo magari ti potrei dire se è una cosa generale o meno...  ;)

astrobeed


Mi sembrava di ricordarmi che il professore ci disse che c'era un motivo perché viene fatto così,


Sarebbe interessante sapere quale visto che poi i produttori fanno come gli pare :)


Janos

Anche qui ne parla:

Quote
There are basically two types of interrupts. The first type is triggered by an event that sets the
Interrupt Flag. For these interrupts, the Program Counter is vectored to the actual Interrupt Vector
in order to execute the interrupt handling routine, and hardware clears the corresponding
Interrupt Flag. Interrupt Flags can also be cleared by writing a logic one to the flag bit position(s)
to be cleared. If an interrupt condition occurs while the corresponding interrupt enable bit is
cleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag is
cleared by software. Similarly, if one or more interrupt conditions occur while the Global Interrupt
Enable bit is cleared, the corresponding Interrupt Flag(s) will be set and remembered until the
Global Interrupt Enable bit is set, and will then be executed by order of priority.


Pag. 19 del datasheet del ATmega2560

Go Up