Mikroone - Online Help
To Fire
an Interrupt click on the - Button.
Just enter the Number of
the Interrupt you want to have and press Fire.
You can fire Interrupts at
any time you want, if you have specified an Interrupt service routine for the
fired Interrupt,
the Simulator jumps to it, executes it
and after that resumes normal Simulation.
Example
You fire
Interrupt 10.
The Simulator
looks into Memory at address 10,
takes the Value of the Cell, stores old
Program Counter and Status Bits to Stack
and sets the Program Counter to the new
Value.
Note
Interrupts are disabled as default. To use
Interrupts you first have to call EI.
If Interrupts are disabled,
fired Interrupts will be ignored.
You can fire Interrupts
from 1 to 256.
You can not fire Interrupt
0.
This is the Non Maskable Interrupt.